Updating pdf settings without changing offset

I would like to allow users to change pdf settings without the offset and zoom being lost. My current code works most of the time, however, when a file is zoomed in on or in horizontal scrolling mode, the offset sometimes resest. Is there any way to avoid this?



Attachment: PDFViewerPage_e2476063.txt

2 Replies

IK Imman Kumar P Syncfusion Team June 12, 2025 06:15 PM UTC

Hi Daniel,

 

The Syncfusion Flutter PDF Viewer retains the offset value when the scroll direction is changed in both Single and Continuous page layout modes. Please refer to the video below for reference.

 

We are able to replicate the issue where the offset is not maintained when changing the page layout modes while the page is zoomed. Currently we are validating this issue and will provide further update on June 16, 2025.

 

Regards,
Imman Kumar P



Attachment: Screen_Recording_92569a6c.7z


IK Imman Kumar P Syncfusion Team June 18, 2025 10:54 AM UTC

Hi Daniel,

In SfPdfViewer, due to the lack of minimum zoom level support, pages are stretched or shrunk to fit the available space. That is, in Continuous page layout mode, pages are laid out to fit the width, while in Single Page layout mode, pages are laid out in fit-to-page mode (the entire page is visible at zoom level 1).

As a result, at zoom level 1, pages appear with different sizes across different page layout modes. Due to these differences, the offset and zoom level are not maintained when switching between layout modes (Continuous and Page-by-page)

While implementing minimum zoom level support, we plan to make page sizes consistent across all layout modes. We will also address this case of maintaining the visible content when switching page layout modes as part of this enhancement.

Please find the feedback link for the minimum zoom level support.

Support to set minimum and maximum zoom level

Regards,

Imman Kumar P


Loader.
Up arrow icon