Skip to main content
Skip table of contents

Adding a cover page to an existing PDF

These examples were written in answer to the question Click How to add a cover page to an existing PDF document?

addcover1

##GITHUB:https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/merge/AddCover1.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/merge/AddCover1.cs##

addcover2

We've encountered an issue exporting this macro. Please try exporting again later.
We've encountered an issue exporting this macro. Please try exporting again later.

Resources

https://github.com/itext/itext-publications-examples-java/blob/develop/src/main/resources/pdfs/hero.pdf

https://github.com/itext/itext-publications-examples-java/blob/develop/src/main/resources/pdfs/pages.pdf

Results

https://github.com/itext/itext-publications-examples-java/blob/develop/cmpfiles/sandbox/merge/cmp_add_cover.pdf

https://github.com/itext/itext-publications-examples-java/blob/develop/cmpfiles/sandbox/merge/cmp_add_cover2.pdf

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.