react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

Generate PDF/A compliant documents

Open Skywalker13 opened this issue 4 years ago • 5 comments

Hello

react-pdf is great, nevertheless it's not possible to generate PDF/A compliant documents.

I found this thread where someone has a way to generate (easily) PDF/A document with pdfkit:

Maybe it should be possible to generate this sort of document directly with react-pdf.. or maybe react-pdf should provide hooks (advanced) in order to create and play with the pdfkit context ?!

Regards

Skywalker13 avatar Sep 24 '21 08:09 Skywalker13

Any updates on this?

youbek avatar Oct 30 '21 02:10 youbek

Thanks for the great tool. As PDF/A is requested for the current project I'm involved in, I hope this is reachable. Please, any updates?

oybekalimat avatar Oct 30 '21 02:10 oybekalimat

As a workaround, I used https://github.com/crabbly/Print.js this library to call the browser's native print of my react-pdf generated PDF document. And I was able to successfully generate PDF/A complaint document.

youbek avatar Oct 31 '21 07:10 youbek

I'd love to know more about this standard. How can I check if a document is PDF/A compliant? Should all PDFs be rendered with this spec or should we add a prop to control it? If so, how that prop would look like?

diegomura avatar Jun 07 '22 03:06 diegomura