Remove page from PDF

前端 未结 5 642
日久生厌
日久生厌 2020-12-19 00:40

I\'m currently using iText and I\'m wondering if there is a way to delete a page from a PDF file?

I have opened it up with a reader etc., and I want to remove a page

5条回答
  •  情话喂你
    2020-12-19 01:15

    You can use a PdfStamper in combination with PdfCopy.

    In this answer it is explained how to copy a whole document. If you change the criteria for the loop in the sample code you can remove the pages you don't need.

提交回复
热议问题