Skip to content

Support multiple compatible PDF standards at once #7183

Closed

Description

@ramkumarkb

Description

I am testing the v0.14-rc2 release. The compiler help says that -

--pdf-standard <PDF_STANDARD>
One (or multiple comma-separated) PDF standards that Typst will enforce conformance with

But when I tried the below -

typst compile --root ./ --pdf-standard a-3b,ua-1 ./my-project/test_pdfua.typ
error: Typst currently only supports one PDF substandard at a time

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on Oct 19, 2025
  2. added
    docs
    pdf
    accessibility
    and removed
    bug
    accessibility
    on Oct 19, 2025
  3. ramkumarkb commented on Oct 19, 2025

    @ramkumarkb
    SponsorAuthor

    @Enivex - I am not sure if this is a docs issue. A PDF document needs to both PDF/A and PDF/UA-1 standard.
    In the v0.14-rc2 - am able to choose either one and that is a problem.

    If I choose ua-1, then I do not get the blue notification bar (that the doucment is of Archive standard) when I open the document in Adobe Reader.

  4. LaurenzV commented on Oct 19, 2025

    @LaurenzV
    Collaborator

    A PDF document needs to both PDF/A and PDF/UA-1 standard.

    Do you mean in the general case? If so, that's not true, it is perfectly fine for a document to be PDF/UA-1 but not PDF/A.

    But to answer your question, yes, choosing two standards at the same time is currently not supported, unfortunately. Although it shouldn't be too hard to add. There is also an upstream issue about this: LaurenzV/krilla#101

  5. Enivex commented on Oct 19, 2025

    @Enivex
    Collaborator

    @Enivex - I am not sure if this is a docs issue. A PDF document needs to both PDF/A and PDF/UA-1 standard.
    In the v0.14-rc2 - am able to choose either one and that is a problem.

    If I choose ua-1, then I do not get the blue notification bar (that the doucment is of Archive standard) when I open the document in Adobe Reader.

    I guess it would be docs or feature request depending on the point of view, but not a bug at least.

  6. added
    feature request
    on Oct 19, 2025
  7. ramkumarkb commented on Oct 19, 2025

    @ramkumarkb
    SponsorAuthor

    @LaurenzV - Thank you for the feedback.

    Yes, in general - PDF/UA-1 and PDF/A are distinct. However, as per what I understand of the EAA conformance - a doc needs to be both PDF/A and PDF/UA-1.

    Some references (am sure you might have seen them) -

    1. EN 301 549 (see Section 10): https://www.etsi.org/deliver/etsi_en/301500_301599/301549/03.02.01_60/en_301549v030201p.pdf
    2. https://pdfa.org/resource/conforming-to-both-pdf-a-and-pdf-ua-best-practice-guide/
  8. LaurenzV commented on Oct 19, 2025

    @LaurenzV
    Collaborator

    Yeah, fair enough! I'm just not sure if this will make it into 0.14 since it's very late in the release cycle, is this urgent for you?

  9. ramkumarkb commented on Oct 19, 2025

    @ramkumarkb
    SponsorAuthor

    @LaurenzV - Again thanks for the message.
    I dunno how difficult the work is and therefore hard for me to comment. (May be a v0.14 for PDF/UA and a post-release that has support for both the standards 🤷‍♂️ ?)

    But, it probably requires some discussions with the authors ( @reknih & @laurmaedje ) - as main highlight around the v0.14 release has been EAA and ADA. Also given the general struggle across the industry (read proprietary tools) to support PDF/A + PDF/UA properly. And also (in all probability) warrants an update to the Accessibility Guide.

  10. Enivex commented on Oct 19, 2025

    @Enivex
    Collaborator

    https://www.etsi.org/deliver/etsi_en/301500_301599/301549/03.02.01_60/en_301549v030201p.pdf

    What part of the standard are you referring to exactly? I can't find anything relating to archivability

  11. ramkumarkb commented on Oct 20, 2025

    @ramkumarkb
    SponsorAuthor

    @Enivex - The intrepretation of the EAA regulation is not 100% black-n-white within the organizations. The basic story goes like below -

    1. PDF/A is widely adopted today for Archiving (PDFs are most suited format for archiving unlike web). This is the main usecase of the PDF format in general
    2. PDF/UA has come into picture due to EAA (& in 2026, it will come in for ADA)
    3. So why render PDF twice - one for UA usecases and one for Archiving usecases ?

    This is what I know so far.


    I asked AI and it gave me the below answer -

    Under the European Accessibility Act (EAA), compliance for PDFs is based on the technical requirements defined in EN 301 549, specifically Clause 10: Non-Web Documents. This clause references WCAG 2.1 AA principles and recognizes PDF/UA (ISO 14289) as the relevant ISO standard for PDF accessibility under European law.[^1][^2][^3]

    The actual requirement: PDF/UA (not PDF/A)

    The EAA requires that PDF documents be accessible, meaning they must conform to PDF/UA-1 or PDF/UA-2.
    PDF/UA ensures that the document structure, reading order, alt text, and tagging are in place so that assistive technologies (like screen readers) can interpret them correctly.[^4][^3]
    EN 301 549 does not require conformance to PDF/A (the archival standard). PDF/A focuses on long-term preservation and self-containment, not accessibility, so while combining both is possible, only PDF/UA is mandated under the Act.[^2][^5]

    When PDF/A is relevant

    PDF/A (ISO 19005) is a separate archiving standard, ensuring that files are self-contained for long-term reproducibility.
    There are cases—especially in regulated industries—where dual conformance (PDF/UA + PDF/A-3a) is advantageous.
    PDF/A-3a supports both archiving and accessibility requirements, which can address both EAA and recordkeeping laws.[^6][^7]

    In summary:

    Purpose Required by EAA? Description
    PDF/UA (ISO 14289) Yes Defines accessibility for PDFs per EN 301 549 §10
    PDF/A (ISO 19005) No (optional) Defines long-term archiving and document fidelity
    PDF/A‑3a Optional (dual use) Combines accessibility (PDF/UA-like) and archiving

    Therefore, for EAA compliance:

    • PDFs must be PDF/UA compliant.
    • PDF/A compliance is not required by the EAA, but PDF/A‑3a may be beneficial if you also need long-term document retention or regulatory archiving.

    References:

  12. Enivex commented on Oct 20, 2025

    @Enivex
    Collaborator

    I'm not saying it's not desirable, but you specifically claimed that both were required for compliance

  13. ramkumarkb commented on Oct 20, 2025

    @ramkumarkb
    SponsorAuthor

    @Enivex - noted. EAA, per se, does not warrant PDF/A

  14. removed
    docs
    on Nov 20, 2025
  15. changed the title [-]CLI argument `--pdf-standard` does not seem to support multiple PDF standards[/-] [+]Support multiple compatible PDF standards at once[/+] on Nov 20, 2025
  16. reknih commented on May 8, 2026

    @reknih
    Member

    Now supported upstream by LaurenzV/krilla#352

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

    feature requestpdf

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions