packages.flutter
packages.flutter copied to clipboard
PDFx: page resize with different aspect ratio
Is your feature request related to a problem? Please describe. Cannot resize a page with different aspect ratio.
PDFx caches the pages of PDF documents it renders. If we try to resize a page with a different aspect ratio, it just fetches the page from the page cache. Thus aspect ratio of the page doesn't change.
Describe the solution you'd like When the aspect ratio of the container changes, PDFx should re-render the pages. Or there can be an option to opt into this behaviour.
Additional context
Here we start the pdf display without fullscreen. Then we go to the fullscreen mode, the pdf page doesn't take up the full screen. It shows the page it already rendered.
If we start with the fullscreen, the pdf page takes up the whole screen. But we go out of the fullscreen, the it doesn't resize the page. It just shows the fullscreen version it rendered before.
@SergeShkurko Can you please give us any suggestion like where to look in the code to add this feature? We will try to submit a PR for this feature.