Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed XML? PDF/A-3 format? #2769

Closed
AuspeXeu opened this issue Aug 16, 2024 · 2 comments
Closed

Embed XML? PDF/A-3 format? #2769

AuspeXeu opened this issue Aug 16, 2024 · 2 comments

Comments

@AuspeXeu
Copy link

AuspeXeu commented Aug 16, 2024

Is it possible to include an XML file when generating a PDF by using the PDF/A-3 format?

This would enable the generation of e-invoices source

@Seemeile
Copy link

you could use the pdfmake document's getStream (https://pdfmake.github.io/docs/0.1/getting-started/client-side/methods/#get-pdfkit-document-object-as-stream) method to access the underlaying pdfkit document. There were some approaches to enable pdf/a-3 compatibility there, see foliojs/pdfkit#369

pdfkit's release https://github.com/foliojs/pdfkit/releases/tag/v0.14.0 introduced official support for PDF/A-3a but it's not yet available in pdfmake. However, I guess the authors would be delighted if you open up a new PR for this. Good Luck 👍

@liborm85
Copy link
Collaborator

liborm85 commented Nov 1, 2024

PDF/A support implemented, more here: #950 (comment)

@liborm85 liborm85 closed this as completed Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants