PDF libraries

foetusinc

Ars Scholae Palatinae
1,409
Subscriptor++
This is probably a longshot, but I'm getting mildly desperate. Does anybody here have any PDF library recommendations? I am looking for something with the following features:

- Read/write document metadata, including custom Document Info Dictionary and Document Catalog values.
- Read/write document text, including adding new pages and text blocks to existing documents.
- Read/write raw image data. Can't use parsed abstractions like System.Drawing.Bitmap - I need the actual raw JPG/PNG/TIFF data with headers and all.
- Linux and Windows x64 support at a minimum, MacOS and Linux ARM would be a bonus.
- Ideally .NET Standard, but I'm open to interop with native libraries as long as they have sane cdecl exports and cross-platform binaries.
- Commercial licensing - Realistically we need some kind of unlimited use license covering SaaS. Redist is a bonus but not a hard requirement yet. MIT or Apache license is OK, GPL is not, but we can pay $$ for commercial licensing, maybe even $$$, just not $$$$. Deployment will be serverless and/or on large k8s clusters, so per-server, per-user, or per-cpu is not an option.

Candidates so far:
IronPDF - excellent license terms, but fails most of the actual feature requirements.
iText / PDFTron - licensing terms are suspiciously vague when it comes to SaaS and large scale deployment. Still working on proof of concept code.
Adobe - $$$$$$. We actually talked to them at one point, and as I recall the number they came up with was within spitting distance of our projected gross revenue for this product.
Foxit/Debenu - This is actually what we use currently, and it does work, but it's slow as molasses and only recently added Linux support.

What else is out there? I feel like PDF should be a solved problem at this point, but apparently not...
 

kefkafloyd

Ars Tribunus Angusticlavius
6,369
Subscriptor
PDFLib from datalogics is what we use and is likely what you're referring to as the Adobe one. They are the standard.

https://www.datalogics.com/products/pdf/pdflibrary/

An alternative is the SDK version of the Callas PDFToolbox, which may be able to do many of your functions. But their server product is very powerful and I've integrated the SDK into other products. You can always shoot them a line and see what they say.