Skip to content

Commit

Permalink
Preliminary PDF/UA support (#1972)
Browse files Browse the repository at this point in the history
* Add properties for PDF/UA and generate metadata
* Set DisplayDocTitle and infer language from locale
* Create tagged PDF (but wrong)
* Minor Performance tuning hints
* Correct PDF tags - start with uppercase
* Mark content in page header/footer as artifact
* Remove forbidden image transparency for PDF/A-1
* PDF/UA image support WIP, alt text is at wrong level
* Add PDF/UA support for images at block level (WIP)
* Add PDF/UA support for images - alt text (WIP)
* Add PDF/UA support for images (WIP), avoid PAC error about missing BBox
* Working on tables and HTML, but it is a mess
* Add support for rowspan and colspan
* Mark background colors and borders as artifacts
* Workaround for PAC 2024 error message regarding RG operator: Do not call setStrokeColor when a system property is set
* Basic support for adding TH structure element wehn creating PDF/UA
* Fix PAC 2024 parser error when color is used
* Remove launch artifact needed for Black&White mode
* Add support for complex PDF/UA tables, fix some compiler warnings
* Generate tag structure only when needed (PDF/A-1A or PDF/UA-1)
* Some example reports for PDF/UA
* Fixed EngineIRIOTest failure and simplified code
* Corrected version numbers
  • Loading branch information
hvbtup authored Nov 22, 2024
1 parent ce3548e commit 8099b94
Show file tree
Hide file tree
Showing 43 changed files with 1,890 additions and 164 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.26" id="1">
<property name="author">Henning von Bargen</property>
<property name="createdBy">Eclipse BIRT Designer Version 4.17.0.qualifier Build &lt;@BUILD@></property>
<text-property name="title">Das ist der Titel</text-property>
<property name="units">in</property>
<property name="iconFile">/templates/blank_report.gif</property>
<property name="bidiLayoutOrientation">ltr</property>
<property name="imageDPI">96</property>
<property name="locale">de_DE</property>
<property name="pdfVersion">1.7</property>
<property name="pdfConformance">PDF.A1A</property>
<property name="pdfUAConformance">PDF.UA-1</property>
<property name="pdfaDocumentTitleEmbed">true</property>
<styles>
<style name="report" id="6">
<property name="fontFamily">"Arial"</property>
</style>
</styles>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<property name="type">a4</property>
<page-header>
<label id="7">
<text-property name="text">Das ist ein Label im Header der MasterPage</text-property>
</label>
</page-header>
</simple-master-page>
</page-setup>
<body>
<label id="8">
<property name="fontSize">12pt</property>
<property name="fontWeight">bold</property>
<text-property name="text">Überschrift auf Ebene 1</text-property>
<property name="tagType">H1</property>
</label>
<label id="9">
<property name="fontSize">11pt</property>
<property name="fontWeight">bold</property>
<text-property name="text">Erste Überschrift auf Ebene 2</text-property>
<property name="tagType">H2</property>
</label>
<label id="5">
<text-property name="text">Und das ist normaler Text.</text-property>
</label>
<label id="10">
<text-property name="text">Noch mehr Text</text-property>
</label>
<label id="11">
<property name="fontSize">11pt</property>
<property name="fontWeight">bold</property>
<text-property name="text">Zweite Überschrift auf Ebene 2</text-property>
<property name="tagType">H2</property>
</label>
<label id="12">
<text-property name="text">Und das ist normaler Text innerhalb der zweiten Überschrift 2.</text-property>
</label>
<image id="13">
<property name="height">5.171717171717172in</property>
<property name="width">5.171717171717172in</property>
<expression name="altText">"Eine gemalte Sonne mit Gesicht"</expression>
<property name="source">file</property>
<expression name="uri" type="constant">./sonne.png</expression>
</image>
</body>
</report>
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.26" id="1">
<property name="author">Henning von Bargen</property>
<property name="createdBy">Eclipse BIRT Designer Version 4.17.0.qualifier Build &lt;@BUILD@></property>
<text-property name="title">Das ist der Titel</text-property>
<property name="units">in</property>
<property name="iconFile">/templates/blank_report.gif</property>
<property name="bidiLayoutOrientation">ltr</property>
<property name="imageDPI">96</property>
<property name="locale">de_DE</property>
<property name="pdfVersion">1.7</property>
<property name="pdfConformance">PDF.A1A</property>
<property name="pdfUAConformance">PDF.UA-1</property>
<property name="pdfaDocumentTitleEmbed">true</property>
<styles>
<style name="report" id="6">
<property name="fontFamily">"Arial"</property>
</style>
</styles>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<property name="type">a4</property>
</simple-master-page>
</page-setup>
<body>
<label id="4">
<property name="fontSize">12pt</property>
<text-property name="text">Das ist die Überschrift</text-property>
<property name="tagType">H1</property>
</label>
<label id="5">
<text-property name="text">Und das ist normaler Text.</text-property>
</label>
</body>
</report>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8099b94

Please sign in to comment.