Save pages from a pdf file.

1 Answer 22 Views
PdfViewer and PdfViewerNavigator
Claude
Top achievements
Rank 1
Iron
Veteran
Claude asked on 15 Jan 2022, 12:27 AM
I wish to open a pdf document and iterate through the pages and save each page as a seperate file.  Struggling to do this.   Would like some guidance.  

1 Answer, 1 is accepted

Sort by
0
Svilen
Telerik team
answered on 17 Jan 2022, 03:47 PM

Hello, Claude,

Svilen here, I will be glad to help out with this question!

Splitting, merging, and other manipulations of PDF files can be achieved by using the PDFStreamWriter class. I've prepared a small demo for you, where a pdf file is imported, split into pages and each page is exported as a separate file. I've attached it to this message.

You can find more useful manipulation examples such as merging PDFs in our WinForms Demo application. To navigate to the proper demo select Explore all controls > PDF processing > Merge, Split or Add Content (see attached images). You can view the code by selecting your programming language in the top right corner (also attached image).

I hope this will be useful. Should you have further questions, I would be glad to help. Have a great day!

Regards,
Svilen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
PdfViewer and PdfViewerNavigator
Asked by
Claude
Top achievements
Rank 1
Iron
Veteran
Answers by
Svilen
Telerik team
Share this question
or