How to Scroll PDF Pages in page break mode?

Hi,

To my knowledge, the SfPdfViewer scrolls PDF pages in continuous scrolling modes. How can I change the scrolling behavior? I want when I scroll down the mouse wheel, the PDF jumps directly to the next pages.

Thanks and best reg


9 Replies

SS SalmanBaris ShahulHameed Syncfusion Team March 6, 2024 10:16 AM UTC

Hi Thanh,

 

We are analyzing the feasibility of changing the scrolling behavior in PdfViewer. We will provide the details on March 08, 2024.

 

Regards,

Salman




TH Thanh Hai Dang March 7, 2024 02:24 AM UTC

Thanks for your replay. I'm looking forward to your great news.

Regards,

TH




SS SalmanBaris ShahulHameed Syncfusion Team March 11, 2024 01:46 PM UTC

Hi Thanh,

 

We have already implemented internal handling for mouse wheel scrolling in PDF pages. However, when we attempted to provide custom behavior for mouse wheel scrolling at the sample level, it affected PDF page scrolling.

 

We have already provided support navigate to the next or previous page in MAUI PdfViewer. So you can easily navigate from one page to another using GoToPage, GoToNextPage, and GoToPreviousPage Methods. We have already provided a keyboard shortcut to navigate pages. You can navigate the page the below mentioned shortcut keys on your keyboard.

 

Ctrl + Page down

Goes to next page

Ctrl + Page up

Goes to previous page

Ctrl + Home

Goes to first page

Ctrl + Up

Goes to last page

 

Page Navigation :Page Navigation in .NET MAUI PDF Viewer control | Syncfusion

 

Please let us know whether above solution was helpful to you and if you need any further assistance.

 

Regards,

Salman



TH Thanh Hai Dang March 12, 2024 04:19 AM UTC

Hi Salman,

Thank for your reply. However, I want to switch mouse scrolling behavior from Continuous to Page by Page ​and vise versa.

Continuous: ​ that allows users to scroll through content on a pdf file without having to click on a separate page. As I see, this is default scroll behavior in SfPdfViewer.

Page by Page (Page Break): allows the user to scroll through the entire page content when the user scrolls to the top of the page.

Thanks and regards,

TH



SS SalmanBaris ShahulHameed Syncfusion Team March 13, 2024 03:14 AM UTC

Hi Thanh,

 

Thank you for your details.

 

We are analyzing the feasibility of changing the scrolling behavior in PdfViewer. We will provide the details on March 14, 2024.

 

Regards,

Salman



SS SalmanBaris ShahulHameed Syncfusion Team March 14, 2024 12:03 PM UTC

Hi Thanh,

 

We have tried to achieve your requirement at the application level, but we found that it is not possible. Therefore, we will analyze to achieve the behavior at the source level. We will update further details on March 18, 2024.

 

Regards,

Salman



DR Deepika Ravi Syncfusion Team March 19, 2024 02:56 PM UTC

Hi Thanh,


We have logged your request for "Support for page-by-page mouse scrolling" as a feature request in SfPdfViewer. We do not have any immediate plans to implement this feature. At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. Kindly use the below feedback link for track the status of the feature,

https://www.syncfusion.com/feedback/51907/support-for-page-by-page-mouse-scrolling


Regards,

Deepika R



TH Thanh Hai Dang March 22, 2024 03:35 PM UTC

Hi  Deepika Ravi,

I've seen that the new syncfusion released provided support for view PDF in other layout mode: continuous and single page.

But seem it's still worked not properly.

Regards,

TH



DR Deepika Ravi Syncfusion Team March 25, 2024 06:37 AM UTC

Hi Thanh Hai Dang,

To enable the single-page layout mode in SfPdfViewer, please refer to the following UG documentation link: https://help.syncfusion.com/maui/pdf-viewer/page-navigation#singe-page-layout-mode . The following code snippet explains the same:


// Enable or activate the Single Page Layout mode.

void EnableSinglePageLayoutMode()

{

    // Set the PageLayout mode to Single using the `SfPdfViewer` instance.

    PdfViewer.PageLayoutMode = PageLayoutMode.Single;

}


For your reference, I have attached the complete working sample for the single page layout, and it can be downloaded from the attachment. If you are still experiencing the issue on your end, please kindly share the steps to replicate the issue or provide a screen recording of the output or modified code snippet. This will help us to provide a prompt solution as soon as possible.

Regards,

Deepika R


Attachment: Custom_Toolbar_(2)_984c94c8.zip

Loader.
Up arrow icon