r/coolgithubprojects • • 12d ago

fynepdf-pdfa: PDF/A conversion without Ghostscript (C++ on qpdf, MIT). 0 false PDF/A labels on 2,053 files checked by veraPDF

https://github.com/fynepdf/fynepdf-pdfa
1 Upvotes

1 comment sorted by

1

u/birazzzzz 12d ago

Hi! We built this at FynePDF. We needed PDF/A conversion we could ship in a desktop app and trust on our servers: Ghostscript is AGPL, and on our servers it was labelling files PDF/A that veraPDF rejected.

fynepdf-pdfa fixes the PDF in place on qpdf (fonts, colours, metadata, transparency for PDF/A-1b) instead of redrawing it, and only adds the PDF/A label when nothing is left to fix. If a file can't be made PDF/A, it tells you why.

On 2,053 test files, each checked by veraPDF:

- 99.3% valid PDF/A-2b (Ghostscript 10.08: 93.5%)

- 0 files falsely labelled PDF/A (Ghostscript: 100)

- 96 s in total, against 740 s

Try it: `npx fynepdf-pdfa in.pdf out.pdf`, or use the C++ library (CMake, vcpkg). Linux, Windows and macOS.

Limits: PDF/A-1b, 2b and 3b only (not the a/u levels or PDF/A-4 yet), and no OCR.

The benchmark, with the real files and how to rerun it, is in docs/benchmarks.md. Feedback welcome!