Hi, Does this describe the problem?
https://github.com/openjdk/jdk/pull/3631 https://bugs.openjdk.org/browse/JDK-8265761 If so, it may be fixed by updating Java (11.0.13 I believe is where the patch landed) - tres.finocchi...@gmail.com On Wed, May 24, 2023 at 2:34 PM Tilman Hausherr <thaush...@t-online.de> wrote: > Hi, > > The problem is the PDF itself, it references a font that isn't embedded. > PDFBox then tries to find such a font on the local system. > > To confirm this, (temporarly) copy the calibri font from another system > to the linux system. If it works, buy the calibri font. If not, delete it. > > Is there more log output? You mention "Given that we have to substitute > Carlito for Calibri, this may be relevant." Does PDFBoox attempt to use > Carlito for Calibri? > > Tilman > > On 24.05.2023 17:28, Daniel Skiles wrote: > > All, > > I'm trying to convert a PDF to an image and I'm encountering problems > with > > some font rendering on some Linux systems. If anyone could provide any > > ideas on how to fix this I'd appreciate it. > > > > The PDF is too large to attach, so it's available at this link: > > > https://drive.google.com/file/d/1dNXgHsfn0cy2Gx9HxhSTQdeWAAjaDplk/view?usp=sharing > > > > So far as I can tell, the attached file comes from some sort of mail > > merge-style application that is injecting text into a template. The > > injected text uses a different font than the rest of the document. > > > > On Windows systems, this works fine, but on Linux systems, PDFBox renders > > the text as gibberish glyphs in a way that I've never seen before. > > > > When I reproduce the issue with logging increased to trace, I get the > > following line in the log. > > > > 15:55:15.622 [main] WARN org.apache.pdfbox.pdmodel.font.PDCIDFontType2 - > > Using non-embedded GIDs in font Calibri > > > > When I list the fonts in the PDF, Calibri is listed as both an embedded > > *and *an Identity-H font. Given that we have to substitute Carlito for > > Calibri, this may be relevant. > > > > In the source code > > < > https://github.com/apache/pdfbox/blob/d6ebddf07f99bcc04f5b106c84623048b697bee7/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFontType2.java#L241 > >, > > a comment line suggests there's a mismatch that involves GIDs, CIDs, and > > embedded vs non-embedded fonts. > > > > Has anyone here ever seen behavior like this before? Is this a bug? If > it > > is a bug, what is the procedure to report it? > > > > If it's not a bug, does anyone have any suggestions on what I might need > to > > fix in my environment? > > > > Any input that anyone might have would be helpful. > > > > Thank you, > > Daniel > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org > >