[ https://issues.apache.org/jira/browse/PDFBOX-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17944391#comment-17944391 ]
Tilman Hausherr commented on PDFBOX-5987: ----------------------------------------- Something goes wrong converting from type2 to type1: type2Sequence: [618, 1979, 7, DIV|, HMOVETO|, -57, 35, DIV|, 0, -41, 36, DIV|, 22, 27, DIV|, -13, 20, DIV|, 96, 59, DIV|, RRCURVETO|, -8125, 32, DIV|, 27019, 40, DIV|, RLINETO|, -49, 43, DIV|, 83, 30, DIV|, 42, 43, DIV|, 65, 47, DIV|, 235, 76, DIV|, 0, RRCURVETO|, 1626, 37, DIV|, HLINETO|, 55, 26, DIV|, 0, 65, 47, DIV|, -40, 41, DIV|, 13, 20, DIV|, -41, 21, DIV|, RRCURVETO|, 5501, 43, DIV|, -6475, 19, DIV|, RLINETO|, 2207, 40, DIV|, -6835, 46, DIV|, 5809, 166, DIV|, -97, 548, 37, DIV|, -1453, 32, DIV|, RRCURVETO|, 42, 43, DIV|, HLINETO|, 201, 19, DIV|, 6829, 197, DIV|, 1187, 34, DIV|, 97, 2903, 49, DIV|, 9719, 61, DIV|, RRCURVETO|, 2948, 23, DIV|, 341, RLINETO|, 28, 43, DIV|, 34, 19, DIV|, 56, 43, DIV|, 17, 19, DIV|, 41, 21, DIV|, 0, RRCURVETO|, 1375, 32, DIV|, HLINETO|, 126, 43, DIV|, 0, 40, 41, DIV|, -56, 43, DIV|, -40, 41, DIV|, -125, 48, DIV|, RRCURVETO|, -8387, 33, DIV|, -21623, 32, DIV|, RLINETO|, -28, 43, DIV|, -96, 59, DIV|, -18, 17, DIV|, -22, 27, DIV|, -41, 28, DIV|, 0, RRCURVETO|, ENDCHAR|] type1Sequence: [618, 1979, 7, DIV|, HMOVETO|, -57, 35, DIV|, 0, -41, 36, DIV|, 22, 27, DIV|, -13, 20, DIV|, 96, 59, DIV|, -8125, 32, DIV|, 27019, 40, DIV|, -49, 43, DIV|, 83, 30, DIV|, 42, 43, DIV|, 65, 47, DIV|, 235, 76, DIV|, 1626, 37, DIV|, 55, 26, DIV|, 0, 65, 47, DIV|, -40, 41, DIV|, 13, 20, DIV|, -41, 21, DIV|, 5501, 43, DIV|, -6475, 19, DIV|, 2207, 40, DIV|, -6835, 46, DIV|, 5809, 166, DIV|, -97, 548, 37, DIV|, -1453, 32, DIV|, 42, 43, DIV|, 201, 19, DIV|, 6829, 197, DIV|, 1187, 34, DIV|, 97, 2903, 49, DIV|, 9719, 61, DIV|, 2948, 23, DIV|, 28, 43, DIV|, 34, 19, DIV|, 56, 43, DIV|, 17, 19, DIV|, 41, 21, DIV|, 1375, 32, DIV|, 126, 43, DIV|, 0, 40, 41, DIV|, -56, 43, DIV|, -40, 41, DIV|, -125, 48, DIV|, -8387, 33, DIV|, -21623, 32, DIV|, -28, 43, DIV|, -96, 59, DIV|, -18, 17, DIV|, -22, 27, DIV|, -41, 28, DIV|, CLOSEPATH|, ENDCHAR|] > Can't render some Type1 fonts. > ------------------------------ > > Key: PDFBOX-5987 > URL: https://issues.apache.org/jira/browse/PDFBOX-5987 > Project: PDFBox > Issue Type: Bug > Components: Rendering > Affects Versions: 3.0.4 PDFBox > Reporter: Daniel Persson > Priority: Minor > Attachments: PDFBOX-5987.cff, PDFBOX-5987_reduced.pdf, font-issue.pdf > > > This PDF seems to have a font rendering issue in PDFBox. > > I've used both Poppler and Chrome to view the PDF, and it renders correctly. > Stepping through the code on the first character, I see that we have a > rendering list with commands that end in > -40 41 DIV -41 21 DIV CLOSEPATH ENDCHAR > > This is not correct if you look at the byte sequence that ends in > 12 98 -89 12 12 -117 8 14 > > Could be interpreted as > -127 -41 28 -127 -127 0 RRCURVETO ENDCHAR > > So perhaps there is an off-by-one error somewhere or something? -- 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