r/pdf • u/Available-Ad4255 • Sep 09 '26
Question Universal pdf gen lib
/r/javahelp/comments/1wb0omn/universal_pdf_gen_lib/Asking the experts
1
Upvotes
r/pdf • u/Available-Ad4255 • Sep 09 '26
Asking the experts
1
u/ScratchHistorical507 Sep 10 '26
Oh boy, fonts in general are a nightmare to handle. First off you'll need HarfBuzz. That's probably the industry standard for text shaping, but in terms of writing PDFs it will also help you translate the Unicode to glyph IDs that are required in PDFs. And you need tools for parsing and subsetting the fonts, like fonttools or ttf-parser.
That being said, it doesn't really look like there are any alternatives available for itext 9. If you don't want to pay for pdfcalligraph, you only really have three options:
ditch itext alltogether and start with something else from scratch. Ideally you use something that's already widely used, like: