Subject: | Corrupt fonts |
Date: | Tue, 28 Apr 2020 21:03:09 +0000 |
To: | "bug-PDF-API2 [...] rt.cpan.org" <bug-PDF-API2 [...] rt.cpan.org> |
From: | Mike Edwards <mike.edwards [...] ceprinter.com> |
Not sure if this is a bug, per se, but I am getting different results on two different Ubuntu Linux boxes...
My project involves taking many individual PDFs, combining them into one, and adding a 2D barcode to every other page as I go. This works just fine on one machine (Ubuntu 16.04), and does not throw errors on my other machine (Ubuntu 18.04) during run-time, but the end result gives errors in Acrobat, such as "The font 'OFCCJF+MyriadPro-Bold' contains bad /Flags", "...contains bad /Widths", etc., with many glyphs being scrambled. (The source PDFs that I am combining do not exhibit this behavior.) I am guessing this is an issue with embedded fonts and the environment in which PDF::API2 finds the fonts to embed, but I'm not sure. The font paths on both machines contain the fonts that are crashing, but I must be missing something. Is there a way to force a font to be explicitly and fully embedded in the final PDF that gets written out?
I am somewhat stymied as I have been running this same code (with minor tweaks) for a few years on this annual project but haven't figured this out yet. I could run everything on the box I know that works, but am trying to spread out the load.
Thanks,
Mike
--
Mike Edwards
[cid:9531e9c1-d5f0-4776-b636-c7a5acccb664]
2700 Bell Avenue | Des Moines, IA
w: 515-280-9765
www.cprinters.com<http://www.cprinters.com/>
COVID-19 Update
At Christian Edwards we have a comprehensive plan in place. We are focused on ensuring stability of services for our clients, as well as providing for the wellbeing of our employees. We will take action to respond to situations as they arise. We thank you for your continued trust and wish you health and safety during this unprecedented situation.