Skip to content

Commit

Permalink
Add WTPDF profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Apr 30, 2024
1 parent 12f826f commit d022223
Show file tree
Hide file tree
Showing 7 changed files with 2,050 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/update-PDFUA-profiles-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- 'PDF_UA/1/**'
- 'PDF_UA/2/**'
- 'PDF_UA/WCAG/**'
- 'PDF_UA/WTPDF/**'
- 'PDF_UA/ISO-32005-Tagged.xml'

jobs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
git-user: "Git User"
git-commit-message: ${{ github.event.head_commit.message }}
git-commit-sign-off: "false"
excludes: 1a:1b:2a:2b:2u:3a:3b:3u:4:4e:4f:PDFUA-1.xml:PDFUA-2-ISO32005.xml:validationProfile.xsd
excludes: 1a:1b:2a:2b:2u:3a:3b:3u:4:4e:4f:PDFUA-1.xml:PDFUA-2-ISO32005.xml:WTPDF-1-0-Reuse.xml:WTPDF-1-0-Accessibility.xml:validationProfile.xsd

- name: Notify slack if library wasn't updated
if: failure()
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/update-library-PDFUA-profiles-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
paths:
- 'PDF_UA/PDFUA-1.xml'
- 'PDF_UA/PDFUA-2-ISO32005.xml'
- 'PDF_UA/WTPDF-1-0-Accessibility.xml'
- 'PDF_UA/WTPDF-1-0-Reuse.xml'

jobs:
update-files:
Expand Down
1,077 changes: 1,077 additions & 0 deletions PDF_UA/WTPDF-1-0-Accessibility.xml

Large diffs are not rendered by default.

921 changes: 921 additions & 0 deletions PDF_UA/WTPDF-1-0-Reuse.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WTPDF_1_0_ACCESSIBILITY">
<details creator="veraPDF Consortium" created="2024-02-15T10:58:04.766+03:00">
<name>WTPDF 1.0 - 6.1.3 Conformance level for accessibility - PDF Declaration</name>
<description>File conforming to the WTPDF 1.0 conformance level for accessibility shall include a PDF Declaration with the URI
identifier "http://pdfa.org/declarations/wtpdf/#accessibility1.0" as its pdfd:conformsTo entry</description>
</details>
<hash></hash>
<rules>
<rule object="MainXMPPackage" tags="metadata">
<id specification="WTPDF_1_0" clause="6.1.3" testNumber="1"/>
<description>File conforming to the WTPDF 1.0 conformance level for accessibility shall include a PDF Declaration with the URI
identifier "http://pdfa.org/declarations/wtpdf/#accessibility1.0" as its pdfd:conformsTo entry</description>
<test>declarations.split(',').filter(declarations =&gt; declarations == 'http://pdfa.org/declarations/wtpdf#accessibility1.0').length == 1</test>
<error>
<message>File conforming to the WTPDF 1.0 conformance level for accessibility doesn't include a PDF Declaration with the URI
identifier "http://pdfa.org/declarations/wtpdf/#accessibility1.0" as its pdfd:conformsTo entry</message>
<arguments/>
</error>
<references/>
</rule>
</rules>
<variables/>
</profile>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WTPDF_1_0_REUSE">
<details creator="veraPDF Consortium" created="2024-02-15T10:58:04.766+03:00">
<name>WTPDF 1.0 - 6.1.2 Conformance level for reuse - PDF Declaration</name>
<description>File conforming to the WTPDF 1.0 conformance level for reuse shall include a PDF Declaration with the URI
identifier "http://pdfa.org/declarations/wtpdf/#reuse1.0" as its pdfd:conformsTo entry</description>
</details>
<hash></hash>
<rules>
<rule object="MainXMPPackage" tags="metadata">
<id specification="WTPDF_1_0" clause="6.1.2" testNumber="1"/>
<description>File conforming to the WTPDF 1.0 conformance level for reuse shall include a PDF Declaration with the URI
identifier "http://pdfa.org/declarations/wtpdf/#reuse1.0" as its pdfd:conformsTo entry</description>
<test>declarations.split(',').filter(declarations =&gt; declarations == 'http://pdfa.org/declarations/wtpdf#reuse1.0').length == 1</test>
<error>
<message>File conforming to the WTPDF 1.0 conformance level for reuse doesn't include a PDF Declaration with the URI
identifier "http://pdfa.org/declarations/wtpdf/#reuse1.0" as its pdfd:conformsTo entry</message>
<arguments/>
</error>
<references/>
</rule>
</rules>
<variables/>
</profile>

0 comments on commit d022223

Please sign in to comment.