Legacy notice!

iText 5 is the previous major version of iText's leading PDF SDK. iText 5 has been EOL, and is no longer developed. Switch your project to iText 7, integrating the latest developments.
Check related iText 7 content!

In this chapter, we're going to solve some problems when working with existing PDFs that need to be split into different files, merged or stamped. Usually, we are going to use a combination of PdfReader to read the document and PdfStamper, PdfCopy or PdfSmartCopy to create a new PDF. Note that we'll skip filling out interactive forms for now. We'll deal with AcroForm and XFA technology in the next chapter

How can I crop the pages of an existing PDF document?

How do I add XMP metadata to each page of an existing PDF?

How to add a cover page to an existing PDF document?

How to add a watermark to a page with an opaque image?

How to add alternative text for an image in Tagged PDF?

How to add an image watermark to a PDF file?

How to add blank pages to an existing PDF in java?

How to change the order of Optional Content Groups?

How to change the zoom factor in link annotations?

How to convert PdfStamper to a byte array?

How to convert an A4 size PDF to a PDF booklet?

How to convert an existing A4 PDF document to an A3 booklet?

How to create a TOC when merging documents?

How to crop out a part of PDF file?

How to decrypt a PDF document with the owner password?

How to extend the page size of a PDF to add a watermark?

How to fix the orientation of a PDF page in order to scale it?

How to load a PDF from a stream and add a file attachment?

How to merge PDFs and add bookmarks?

How to merge documents correctly?

How to move the content inside a rectangle inside an existing PDF?

How to position text relative to page?

How to reorder pages in an existing PDF file?

How to reorder the pages of a PDF file?

How to reuse a page from one PDF document into another PDF document?

How to rotate a page 90 degrees?

How to rotate and scale pages in an existing PDF?

How to set the OCG state of an existing PDF?

How to shrink pages in an existing PDF?

How to superimpose pages from existing documents into another document?

How to tile a document and add margins to the tiles?

How to update a PDF without creating a new PDF?

How to watermark PDFs using text or images?

Why do I get an error saying that "use of extended features is no longer available"?

Why does PdfStamper create a file with 0 bytes?