Skip to main content
Skip table of contents

ZUGFeRD Tutorial: examples for chapter 2

These are some examples that were written in the context of Chapter 2 of the tutorial ZUGFeRD: The Future of Invoicing.

  • C2E1_SimplePdf creates a simple "Quick brown fox jumps over the lazy dog" PDF with some images, but without any structure. This results in a regular PDF.

  • C2E2_TaggedPdf.java uses the same code as the first example, but now we ask iText to introduce structure. This results in a Tagged PDF.

  • C2E3_PdfA3b.java adapts the first example, so that it conforms to the PDF/A-3 standard, level B (for Basic). The resulting PDF is not a Tagged PDF.

  • C2E4_PdfA3a.java adapts the third example, so that it conforms to the PDF/A-3 standard, level A (for Accessibility). The resulting PDF is a Tagged PDF.

c2e1_simplepdf

##GITHUB:https://raw.githubusercontent.com/itext/i5js-sandbox/master/src/main/java/zugferd/pdfa/C2E1_SimplePdf.java##

c2e2_taggedpdf

##GITHUB:https://raw.githubusercontent.com/itext/i5js-sandbox/master/src/main/java/zugferd/pdfa/C2E2_TaggedPdf.java##

c2e3_pdfa3b

##GITHUB:https://raw.githubusercontent.com/itext/i5js-sandbox/master/src/main/java/zugferd/pdfa/C2E3_PdfA3b.java##

c2e4_pdfa3a

##GITHUB:https://raw.githubusercontent.com/itext/i5js-sandbox/master/src/main/java/zugferd/pdfa/C2E4_PdfA3a.java##

Resources

dog.bmp
fox.bmp
sRGB_CS_profile.icm
FreeSans.ttf

Results

cmp_quickbrownfox1.pdf
cmp_quickbrownfox2.pdf
cmp_quickbrownfox3.pdf
cmp_quickbrownfox4.pdf

JavaScript errors detected

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

If this problem persists, please contact our support.