Repository navigation
Add PDF/A-4 (ISO 19005-4) - #17
Merged
Merged
Conversation
PdfAProfile.PdfA4 writes a PDF 2.0 document with pdfaid:part 4 and no conformance element — the base level of ISO 19005-4 — with the embedded fonts, sRGB output intent and transparency the other profiles already allow. PDF/A-2u and -3u were already shipped in 1.6.0 and stay as they are. The archive example writes archive-4.pdf and archive-source-4.pdf, compliance.yml validates them with veraPDF, and the manual's chapter 24 lists the new profile. The cross-validators have no PDF/A-4 mode, which the workflow now states. Tests: 1196 passed on both legs. Closes #10.
veraPDF PDF/A-4 rejects two things the first draft wrote: pdfaid:rev must be 2020, and the document information dictionary is forbidden (a trailer /Info is allowed only beside a catalog /PieceInfo). The packet now carries the revision year, and a PDF/A-4 conversion writes no Info dictionary at all — the packet is the only copy, which is what ISO 19005-4 asks for. The three rules (6.1.3-4, 6.1.3-5, 6.7.3-5) were read from the failed compliance report, not guessed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #10 by adding the one profile that was genuinely missing: PDF/A-4 (ISO 19005-4). PDF/A-2u and -3u were already shipped in 1.6.0 and are unchanged; this PR verifies them with the same CI run and adds the PDF 2.0 base level.
PdfAProfile.PdfA4— the base level of ISO 19005-4.PdfAProfileRules— part 4, PDF 2.0, no conformance level, transparency allowed, embedded files refused.XmpPacket— writespdfaid:part4 and nopdfaid:conformanceelement for the base level.ArchiveExamples— writesarchive-4.pdfandarchive-source-4.pdfbeside the other five profiles.compliance.yml— the veraPDF loop now includes4; the cross-validators (PDFBox 3.0.8, Ghostscript) have no PDF/A-4 mode, which the workflow states.Evidence
archive-4.pdfis%PDF-2.0,pdfaid:part = 4, nopdfaid:conformance, one output intent,qpdf check: no problems, 6 streams decoded, 0 failed.net10.0andnet11.0, including the new PDF/A-4 row inWrites_the_structures_the_profile_requires.Validate the archival outputjob incompliance.ymlvalidatesarchive-4.pdfandarchive-source-4.pdfwith veraPDF 1.30.4 on this PR; the run is the conformance evidence (this library never claims conformance itself).check: ok.Out of scope
PDF/A-4f (arbitrary attachments) and PDF/A-4u (Unicode), and level A. The base PDF/A-4 refuses embedded files, which the requirements analysis enforces.
Closes #10.