Coder Social home page Coder Social logo

Comments (10)

SergeShkurko avatar SergeShkurko commented on July 4, 2024 1

added in pdfx

from packages.flutter.

SergeShkurko avatar SergeShkurko commented on July 4, 2024

in version 1.5.0 added crop attributes in render options

from packages.flutter.

deakjahn avatar deakjahn commented on July 4, 2024

Yes, the crop is there but the view makes no attempt at reloading the contents when the zoom changes. :-)

from packages.flutter.

deakjahn avatar deakjahn commented on July 4, 2024

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.

SergeShkurko avatar SergeShkurko commented on July 4, 2024

@deakjahn ExtendedImage uses also for image switch

from packages.flutter.

deakjahn avatar deakjahn commented on July 4, 2024

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.

SergeShkurko avatar SergeShkurko commented on July 4, 2024

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.

deakjahn avatar deakjahn commented on July 4, 2024

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.

SergeShkurko avatar SergeShkurko commented on July 4, 2024

I will be glad to any help :)

from packages.flutter.

SergeShkurko avatar SergeShkurko commented on July 4, 2024

I start work on this issue

see #238

from packages.flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.