Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

itext/wtpdf-demo

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 add-on (html2pdf) for the iText Core PDF library.

Archived

Note: the Well-Tagged PDF (WTPDF) sample is moved to itext-publications-examples-java, and this repository is archived:

Description Link
Create WTPDF document Java example

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 version="1.0" encoding="utf-8"?>
<report>
    <buildInformation>
        <releaseDetails id="core" version="1.26.1" buildDate="2024-05-16T16:30:00+02:00"></releaseDetails>
        <releaseDetails id="validation-model" version="1.26.1" buildDate="2024-05-16T18:13:00+02:00"></releaseDetails>
        <releaseDetails id="gui" version="1.26.2" buildDate="2024-05-19T13:33:00+02:00"></releaseDetails>
    </buildInformation>
    <jobs>
        <job>
            <item size="107852">
                <name>D:\prototypes\itext-wtpdf-pdfademo\wtpdf.pdf</name>
            </item>
            <validationReport jobEndStatus="normal" profileName="PDF/A-4 validation profile" statement="PDF file is compliant with Validation Profile requirements." isCompliant="true">
                <details passedRules="108" failedRules="0" passedChecks="14462" failedChecks="0"></details>
            </validationReport>
            <duration start="1721198489436" finish="1721198489720">00:00:00.284</duration>
        </job>
    </jobs>
    <batchSummary totalJobs="1" failedToParse="0" encrypted="0" outOfMemory="0" veraExceptions="0">
        <validationReports compliant="1" nonCompliant="0" failedJobs="0">1</validationReports>
        <featureReports failedJobs="0">0</featureReports>
        <repairReports failedJobs="0">0</repairReports>
        <duration start="1721198489430" finish="1721198489727">00:00:00.297</duration>
    </batchSummary>
</report>

PDF/UA-2 veraPDF report

<?xml version="1.0" encoding="utf-8"?>
<report>
    <buildInformation>
        <releaseDetails id="core" version="1.26.1" buildDate="2024-05-16T16:30:00+02:00"></releaseDetails>
        <releaseDetails id="validation-model" version="1.26.1" buildDate="2024-05-16T18:13:00+02:00"></releaseDetails>
        <releaseDetails id="gui" version="1.26.2" buildDate="2024-05-19T13:33:00+02:00"></releaseDetails>
    </buildInformation>
    <jobs>
        <job>
            <item size="107852">
                <name>D:\prototypes\itext-wtpdf-pdfademo\wtpdf.pdf</name>
            </item>
            <validationReport jobEndStatus="normal" profileName="PDF/UA-2 + Tagged PDF validation profile" statement="PDF file is compliant with Validation Profile requirements." isCompliant="true">
                <details passedRules="1744" failedRules="0" passedChecks="24382" failedChecks="0"></details>
            </validationReport>
            <duration start="1721198712059" finish="1721198712345">00:00:00.286</duration>
        </job>
    </jobs>
    <batchSummary totalJobs="1" failedToParse="0" encrypted="0" outOfMemory="0" veraExceptions="0">
        <validationReports compliant="1" nonCompliant="0" failedJobs="0">1</validationReports>
        <featureReports failedJobs="0">0</featureReports>
        <repairReports failedJobs="0">0</repairReports>
        <duration start="1721198712053" finish="1721198712354">00:00:00.301</duration>
    </batchSummary>
</report>

About

Examples for creation of Well-Tagged PDF (WTPDF) with iText

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.