Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

delete first page from PDF using iTextSharp

Tags:

c#

itextsharp

Is there a way we can delete the first page of the PDF using iTextSharp?

like image 688
acadia Avatar asked May 25 '10 18:05

acadia


1 Answers

There's no direct way to remove pages from a PDF using iTextSharp.

However, you can copy all the pages you want from a PDF and skip the pages you don't want. In your case you'd copy out all but the first page.

I wrote a method that does this based on the code I found on this blog entry.

like image 154
Jay Riggs Avatar answered Sep 29 '22 15:09

Jay Riggs