PdfiumViewer
PdfiumViewer copied to clipboard
Create new pdf with some pages of Pdf
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.
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");