PDFiumSharp
PDFiumSharp copied to clipboard
Examples of splitting and merging PDFs?
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.
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.
I wrote a method that should work see this https://github.com/1000374/PDFiumSharp/blob/master/PDFiumSharp/PdfSupport.cs