PDFiumSharp icon indicating copy to clipboard operation
PDFiumSharp copied to clipboard

Examples of splitting and merging PDFs?

Open edwilson97 opened this issue 2 years ago • 2 comments

Are there are examples of how to use this API to split and merge PDFs? I'm guessing it has to do with the PDFPage and PDFPageCollection, but I wasn't sure.

edwilson97 avatar Jun 08 '22 19:06 edwilson97

Haven't seen much sample code for PDFiumSharp out there. I've used PDFiumSharp for rendering and text extraction but not pagination, as we've been using PdfSharp for that for a long time (and there's no reason to change that existing code right now). Pdfium.NET is based on the same underlying API has a lot of sample code, but not sure how that would or could translate to PDFiumSharp.

bradleypeet avatar Jun 09 '22 20:06 bradleypeet

I wrote a method that should work see this https://github.com/1000374/PDFiumSharp/blob/master/PDFiumSharp/PdfSupport.cs

1000374 avatar Nov 14 '23 10:11 1000374