iText

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

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

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

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