https://github.com/itext/wtpdf-demo
Examples for creation of Well-Tagged PDF (WTPDF) with iText
https://github.com/itext/wtpdf-demo
Last synced: 3 months ago
JSON representation
Examples for creation of Well-Tagged PDF (WTPDF) with iText
- Host: GitHub
- URL: https://github.com/itext/wtpdf-demo
- Owner: itext
- Created: 2024-07-18T09:54:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-17T09:53:59.000Z (over 1 year ago)
- Last Synced: 2025-09-08T09:47:04.067Z (10 months ago)
- Language: HTML
- Size: 647 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# itext-wtpdf-pdfademo
## Introduction
This repository contains the code and resources used to create the Well-Tagged PDF (WTPDF) example posted on https://pdfa.org/wtpdf.
It uses the [pdfHTML](https://github.com/itext/itext-pdfhtml-java) add-on (html2pdf) for the [iText Core](https://github.com/itext/itext-java) PDF library.
## Archived
Note: the Well-Tagged PDF (WTPDF) sample is moved to [itext-publications-examples-java](https://github.com/itext/itext-publications-examples-java/tree/master), and this repository is archived:
| Description | Link |
|--------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|
| Create WTPDF document | [Java example](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/pdfua/Wtpdf.java) |
## Validation with veraPDF
In addition to WTPDF conformance, the example also conforms to the PDF/A-4 (ISO 19005-1) and PDF/UA-2 (ISO 14289-2) standards. To validate conformance with PDF/A-4 and PDF/UA-2, we used veraPDF.
The veraPDF tool is an open-source, industry-supported PDF/A and PDF/UA validator, and is available as a command-line tool and as a Java library. The tool can be downloaded from https://verapdf.org/software/.
### PDF/A-4 veraPDF report
```xml
D:\prototypes\itext-wtpdf-pdfademo\wtpdf.pdf
00:00:00.284
1
0
0
00:00:00.297
```
### PDF/UA-2 veraPDF report
```xml
D:\prototypes\itext-wtpdf-pdfademo\wtpdf.pdf
00:00:00.286
1
0
0
00:00:00.301
```