Pdfkit: Would it be possible to generate a PDF/A compliant document?

Created on 9 Feb 2015  路  13Comments  路  Source: foliojs/pdfkit

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

For info on PDF/A: http://en.wikipedia.org/wiki/PDF/A

Thanks.

Most helpful comment

Somethings got better since last test i did but still not validates.

Will take a look what needs to be done

All 13 comments

I don't know a lot about PDF/A, but it looks like just a restriction of the allowed features, most of which are not supported by PDFKit anyway (such as embedded JS, audio, video, etc.). Have you tested your generated PDFs for compliance? If so, what issues did you find?

Thanks for the swift reply.

I'm by no means a PDF expert unfortunately. The most obvious 'feature' of PDF/A I can find is: 'All fonts must be embedded and also must be legally embeddable for unlimited, universal rendering. This also applies to the so-called PostScript standard fonts such as Times or Helvetica.' Does PDFKit comply with this?

Properties of an PDF/A file (Format: PDF/A - 1b):
pdf-a

Properties of PDFKIT generated file (Format: PDF 1.3):
pdfkit

Is there a way for you to change the format property on a rendered file?

Thanks!

There's a similar discussion in Prawn which provides some of the low-level changes necessary for compliance. See https://github.com/prawnpdf/prawn/issues/877

Any update yet? Would be cool if there would be a PDF/A compliance in pdfkit, sadly it throws some errors when trying to validate an example pdf
bildschirmfoto 2015-11-24 um 14 16 53

Hello,

I'm working on this here: https://github.com/chab/pdfkit/tree/PDF_A_3

My specific need is to create "ZUGFeRD invoices" using PDFKit. ZUGFeRD requires:

  • PDF/A-3 compliance, (aka PDF/A with embedded files)
  • Additional XMP metadata entries

More information: http://www.pdflib.com/knowledge-base/pdfa/zugferd-invoices/ (section "PDF Requirements for ZUGFeRD Invoices")

Run the demo on my fork with "make pdfa-demo".

@devongovett, would you be interested in this feature? If yes, don't hesitate to comment the code. I'll be glad to follow your standards. And thanks for the great lib :)

capture d ecran 2016-06-09 a 14 50 46

Do you plan to work on this issue in the next Time ?
For me this is very important.

+1

@devongovett : PDF/A support would be cool to add! This commit would be nice to merge into main lib: https://github.com/chab/pdfkit/tree/PDF_A_3

Are there any news on this?
@chab I'm trying to generate ZUGFeRD invoices. So long i tried with ghostscript but I encountered some problems generating the metadata. Did you achieve something regarding ZUGFeRD?

@GodOfCrimson Did you find a solution for ZUGFeRD invoices?

Is there news on PDF/A-3 generation ?

Somethings got better since last test i did but still not validates.

Will take a look what needs to be done

An example how to create PDF/A-2b or PFD/A-3b documents using PDFKit: https://github.com/foliojs/pdfkit/pull/1019#issuecomment-699642226

Was this page helpful?
0 / 5 - 0 ratings

Related issues

edmelly picture edmelly  路  5Comments

nqgajanan picture nqgajanan  路  4Comments

tadarao picture tadarao  路  5Comments

liubin picture liubin  路  4Comments

akaleeroy picture akaleeroy  路  4Comments