We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Extract or delete pages from a PDF Viewer Control or a PDF Document View

I am trying to figure out how to make a custom toolbar that will let me grab pages from a PDF Viewer Control and put them into a PDFDocument, or delete pages from those controls.

'Extract current page
dim doc as PDFDocument
doc.ImportPage(PdfViewerControl1.[somehow get to pages], PdfViewerControl1.CurrentPageIndex)

'Delete current page

I realize that pages is not an object in either PDFViewerControl or PDFDocumentViewer. 

1 Reply

US Uthistran S Syncfusion Team July 11, 2014 10:44 AM UTC

Hi Andy,

Thank you for your update.

We do not have support for removing certain pages in PdfViewer control. But, we can achieve this by a workaround to remove particular page from  Pdf loaded document and can reload it to the viewer.

Attached the sample for your reference

Attachment: http://www.syncfusion.com/downloads/support/directtrac/general/CustomToolbar_-_RemovePage2140074995.zip

Please, run the sample and click “Custom toolbar” radio button. In the custom toolbar, you can type the page to remove and press enter, the particular page will get removed and the loaded document with remaining pages gets loaded in the PdfViewer control.

Please, let us know whether this work around suits your requirement.


Uthistran S.

Live Chat Icon For mobile
Up arrow icon