limit the pages

in the pdf viewer is it possible to limit the pages to be displayed ??

if a pdf has 100 pages we would like to display only the first 10 pages according to the user's profile

Thx
GT

1 Reply

AA Akshaya Arivoli Syncfusion Team February 13, 2020 11:01 AM UTC

Hi Gianfranco, 

Thank you for contacting Syncfusion support. 

Currently PDF Viewer do not have support to limit the pages to be displayed. However, we can achieve your requirement by importing the pages using the Syncfusion PDF Base library in the sever side of the PDF Viewer. Please find the below UG to import the PDF document pages, 


We have created simple workaround sample for the same and shared in the below link, 


Note: We can send additional fields to Load web action method using the setjsondata() API in ajaxRequestInitiate event of the PDF Viewer. Using that we can send the start and end index of the page which we are going to import. 

Please try it and revert us with more details about your requirement and the use case scenario if you have any concerns on this. 

Regards, 
Akshaya 


Loader.
Up arrow icon