PdfiumViewer icon indicating copy to clipboard operation
PdfiumViewer copied to clipboard

Create new pdf with some pages of Pdf

Open okonca opened this issue 6 years ago • 1 comments

Hi Is there a way to create new pdf with some page of the file. For example I want to create a new pdf file with 2nd and 3rd page of the file.

okonca avatar Mar 04 '18 14:03 okonca

It is possible to create a new pdf file with some pages of the file, by deleting pages that are not desired.

var foo = PdfDocument.Load("pdf_sample.pdf");
// 0-based.
foo.DeletePage(1);
foo.Save(@"D:\test.pdf");

noctis0430 avatar Jan 16 '19 05:01 noctis0430