Comments (10)
added in pdfx
from packages.flutter.
in version 1.5.0 added crop attributes in render options
from packages.flutter.
Yes, the crop is there but the view makes no attempt at reloading the contents when the zoom changes. :-)
from packages.flutter.
I found a possible solution, if you would like to check it out. Instead of ExtendedImage
, you might want to switch to FlutterMap
. Yep, I know, it seems strange at first. But, although it's conceived for maps, it could be used all right. It has full support for tiling smaller parts to show a larger picture, with pinch zoom and everything. And a FileTileProvider
that you could extend to return the actual tiles of the PDF. When at zoom level 1, nothing would change but at higher zoom levels, you could generate (and cache) the smaller tiles using the crop approach.
I tried to experiment with it a little but I don't know if I can dedicate enough time to it right now. So I thought I'd mention it up front if you think you're interested to look into it. :-)
from packages.flutter.
@deakjahn ExtendedImage uses also for image switch
from packages.flutter.
No, I didn't mean that. ExtendedImage can just replace it with a larger image but if you want to allow higher zoom levels without quality loss, you simply cannot generate ten times the size, the bitmap would be too large. Using tiled images would mean that only the part the user is actually looking at gets generated.
from packages.flutter.
I understand your idea, it's just that this library is used not only for scaling, but also for turning pages. This is also quite an important factor.
from packages.flutter.
Yes, sure. I would think about a PageView, just like now, where each page is a FlutterMap. I'll try to come up with something if I have the time. :-)
from packages.flutter.
I will be glad to any help :)
from packages.flutter.
I start work on this issue
see #238
from packages.flutter.
Related Issues (20)
- Null check operator used on a null value
- Error in iOS: Could not build the precompiled application for the device.
- LiveList.options not working with NotificationListener
- Drawing annotations on the pdfx
- pdfx: Migrate to `package:web` to support WASM HOT 2
- PDFx: page resize with different aspect ratio HOT 1
- When the PDF is one-page-long and user zooms in, he cannot zoom out completely.
- Printing and pdfx are incompatible in windows
- How can i custom Widget?
- Support for js ^0.7.1
- pdfx 2.6.0 does not build on Windows
- Support for Signature widgets/annotations ?
- getting cfi as null "/6/0[null]!/4/2/4" in middle HOT 1
- [pdfx] Android : Close document throw a PlateformException with an Unknown error HOT 1
- [pdfx] Update to `device_info_plus` >= 10.0.1 HOT 12
- Support js 0.7.1 in pdfx
- Can you update the image package to be compatible with other packages ?
- An unhandleable error is thrown when attempting to display unsupported files, such as password-protected PDFs
- updagre to photo_view 0.15.0
- Please update to support photo_view 0.15.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packages.flutter.