Skip to main content
Skip table of contents

Header and footer examples

These examples were written in answer to a question on Stack Overflow regarding stamping content on an existing document in iText5. They have been ported to the latest iText version.


stampheader1

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


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


stampheader2

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


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


stampheader3

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


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

Resources

Right.pdf
Wrong.pdf

Results

cmp_stamp_header1.pdf

cmp_stamp_header2.pdf

cmp_stamp_header3.pdf

JavaScript errors detected

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

If this problem persists, please contact our support.