Skip to content

Add functionality to convert to PDF/A #98

@gflohr

Description

@gflohr

Describe your idea

There should be a straightforward way to convert a PDF to PDF/A with pdf-lib.

How could this be implemented?

I have a complete implementation for such a feature that works in the context of electronic invoicing: https://github.com/gflohr/e-invoice-eu/blob/main/packages/core/src/format/format-factur-x.service.ts

But the implementation is specific to the requirements of Factur-X/ZUGFeRD, an electronic invoice format mostly in use in France and Germany.

What problem are you trying to solve?

It is possible to create PDF/A documents with pdf-lib. But it is not documented.

Why does this matter to you?

I have received a lot of questions about this in the last couple of months.

Would others find this helpful?

In Germany and France, electronic invoices can be in the so-called Factur-X aka ZUGFeRD format. In a nutshell, that is a PDF/A with the machine-readable invoice attached as XML. In Germany, such invoice are mandatory starting with January 1st, 2025. Therefore, there is a great demand for such a feature.

Are you interested in implementing your proposal?

Yes

Why are you submitting a proposal?

I could create a PR with a basic implementation based on my current code in @e-invoice-eu/core. But I would like to hear your ideas first.

My implementation creates PDF/A-3; I hope so, at least. But I must admit that I have no clue what exactly has to be changed to be able to also create other conformance levels and versions of PDF/A.

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions