Skip to content

Pages imported into a PDF/X document are not checked against the standard #399

Open

Description

@jakejackson1

On #324 (feature/pdfx4-support), pages imported with FPDI (SetSourceFile() / ImportPage() / UseTemplate()) go into a PDF/X document unchecked.

Nothing inspects the imported content for:

  • DeviceRGB or DeviceCMYK that doesn't match the output intent
  • unembedded fonts
  • transparency, under PDF/X-1a
  • optional content with /AS
  • annotations and actions

So a PDF/X document built from imported pages can claim conformance it does not have, even with PDFXauto on. #388 only caps the header version, so an import can no longer raise it past 1.6 or 1.4.

Options:

  • walk the imported resources and record PDF/X warnings, so that strict mode throws and auto mode refuses the page;
  • convert what can be converted;
  • document imports as the caller's responsibility under PDF/X.

The same question applies to PDF/A imports under #330.

Found while auditing #324 (#388).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfork-only

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions