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
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