packages.flutter icon indicating copy to clipboard operation
packages.flutter copied to clipboard

PDFx: page resize with different aspect ratio

Open musaffa opened this issue 6 months ago • 1 comments

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. pdf-issue

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. pdf-issue-2

musaffa avatar Feb 18 '24 16:02 musaffa

@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.

musaffa avatar Mar 06 '24 12:03 musaffa