feat(preflight): report PDF/X-5 and PDF/A-3 claims as unsupported, not produced (#665) - #671
Merged
Merged
Conversation
…orted (#665) Loop does not produce or validate PDF/X-5n, PDF/X-5g, or PDF/A-3. A document that declares one of those levels is reported unsupported instead of passing that class in silence. Co-authored-by: michael berry <mberrys@users.noreply.github.com>
Co-authored-by: michael berry <mberrys@users.noreply.github.com>
mberrys
marked this pull request as ready for review
September 22, 2026 03:06
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.
What changed
Loop does not produce PDF/X-5n, PDF/X-5g, or PDF/A-3. Core has no external-resource or n-colorant output-intent rules for those levels, so this is not a converter and not a renamed PDF/X check. A document that declares one of those levels used to pass with nothing looking at the claim. The new
conformance-claimscheck parses the declaration once and reports check statusunsupported(reasonunsupported-conformance-level:<ids>), which leaves the run incomplete. A file that does not declare them gets no finding. PDF/VT stays on #605. Refs #665.Protected paths:
LoopLibCore/sources/pdfconformanceclaim.h,LoopLibCore/sources/pdfconformanceclaim.cpp, andLoopLibCore/sources/preflightengine.cpp. The claim table and the check belong in Core and do not depend on Widgets. No report schema or central type was added;unsupportedis already a check status.Release changelog
Proof
python scripts/agent/check-change.py --base origin/dev --build-dir buildreportspass(headb2c56079109a5c5728f2931173f9416c8cefa35e, 71 checks)changes/feat-0.3.0-665-pdfx5-pdfa3-claims.mdfragment added (Category, Audience, Breaking-Change, Summary)UnitTestsPreflightEngine, 110 passed, including declared PDF/X-5n, PDF/X-5g, and PDF/A-3 versus PDF/X-1a, PDF/X-4, PDF/A-2, and PDF/VT)Internal logic (touched behavior-bearing code)
Anti-slop pass
anyor equivalent cast added only to suppress a type errorAnti-slop summary (1-3 sentences):
The claim table is the only place production and validation are recorded. Metadata is parsed once into level ids, and undecodable catalog metadata stays
not_inspectedrather thanok. The profile severity is not promoted to an error, because a declared level is outside the validator.Security and rollback
conformance-claims; the default profile is unchanged.Docs
Self-review (BSP-002 §4.3)
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.