[ https://issues.apache.org/jira/browse/PDFBOX-5917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17902417#comment-17902417 ]
Tilman Hausherr commented on PDFBOX-5917: ----------------------------------------- Thanks for reporting this. Snapshots are available here: https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.33-SNAPSHOT/ https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/3.0.4-SNAPSHOT/ There should now no longer be any such exceptions. Please test with the other files just to be sure. > Particular PDF fails on renderImageWithDPI call > ----------------------------------------------- > > Key: PDFBOX-5917 > URL: https://issues.apache.org/jira/browse/PDFBOX-5917 > Project: PDFBox > Issue Type: Bug > Components: FontBox > Affects Versions: 2.0.32, 3.0.3 PDFBox > Reporter: Noor Khan > Assignee: Tilman Hausherr > Priority: Major > Fix For: 2.0.33, 3.0.4 PDFBox, 4.0.0 > > Attachments: image-2024-12-02-19-52-41-092.png, test.pdf > > > Hello, > > The pdf attached to this ticket fails in this following test code block I > wrote: > > {code:java} > try (PDDocument pdDocument = Loader.loadPDF(Path.of("path to > test.pdf").toFile())) { > PDFRenderer pdfRenderer = new PDFRenderer(pdDocument); > for (int page = 1; page <= pdDocument.getNumberOfPages(); page++) { > pdfRenderer.renderImageWithDPI(page - 1, 300, ImageType.RGB); > } > } {code} > The error I get is: > {code:java} > Dec 02, 2024 11:59:23 AM org.apache.pdfbox.rendering.GlyphCache > getPathForCharacterCode > SEVERE: Glyph rendering failed for code 32 in font Arial-BoldMT > java.io.EOFException: EOF at 108, b1: -1, b2: -1 {code} > The pdf appears to load fine in the browser for me. > > I am using pdfbox 3.0.3: > {code:java} > implementation("org.apache.pdfbox:pdfbox:3.0.3") {code} > I have many other PDFs who are failing in a similar way, but I thought to > just include one for now. I can add more if it'll help. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org