Display PDF files in single page mode.

I am hosting the WPF PDFViewer in a Winform application. Is there a way to display the PDF documents in a single page mode. I have tried the following

        Viewer.ZoomMode = Syncfusion.Windows.PdfViewer.ZoomMode.FitWidth

        Viewer.ShowVerticalScrollBar = False

Neither of these options keeps the document from scrolling continously.

Thanks

ToddH


4 Replies 1 reply marked as answer

DD Divya Dhayalan Syncfusion Team May 24, 2021 03:09 PM UTC

Hi Todd, 
 
Thank you for contacting Syncfusion support. 
 
Based on the details you have provided; we suspect that your requirement is to display PDF documents in single page mode and prevent the scrolling by hiding the vertical scrollbar. We can achieve this by setting the ZoomMode as FitPage and it will hide the scrollbars by default and prevent the continuous scrolling. 
 
Please refer the below code snippet for the same. 
pdfViewerControl.Load("../../Data/HTTP Succinctly.pdf"); 
pdfViewerControl.ZoomMode = Syncfusion.Windows.PdfViewer.ZoomMode.FitPage; 
 
We have also created a sample for your reference, please download the sample from the below link, 
 
Please let us know if the above details are helpful or kindly share some more details if our understanding of your requirement is different from yours. 
 
Regards, 
Divya 


Marked as answer

TH Todd Holliday May 24, 2021 07:02 PM UTC

Thanks for the prompt response, that was exactly what I was looking.


AA Anitha Azhagesan Syncfusion Team May 25, 2021 04:49 AM UTC

Sent: Monday, May 24, 2021 2:40 PM
To: Syncfusion Support <[email protected]>
Subject: RE: Syncfusion support community forum 165705, Display PDF files in single page mode., has been updated. 
Thanks for the prompt reply, that was exactly what I was looking for. 



DD Divya Dhayalan Syncfusion Team May 25, 2021 05:44 AM UTC

Hi Todd, 
  
Most Welcome, 
  
Please let us know if you need any further assistance on this. 
  
Regards, 
Divya 


Loader.
Up arrow icon