[ https://issues.apache.org/jira/browse/PDFBOX-4336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16643775#comment-16643775 ]
Tilman Hausherr commented on PDFBOX-4336: ----------------------------------------- The PDF has a code that isn't part of the CMap and the exception message is not helpful. We can be more lenient and just return 0. > "CMap is invalid" exception thrown > ---------------------------------- > > Key: PDFBOX-4336 > URL: https://issues.apache.org/jira/browse/PDFBOX-4336 > Project: PDFBox > Issue Type: Bug > Components: Rendering > Affects Versions: 2.0.11, 2.0.12 > Reporter: Nico Prenzel > Priority: Minor > Fix For: 2.0.13, 3.0.0 PDFBox > > Attachments: test.pdf > > > The follwoing error is thrown within the preview generation. With Adobe > Reader or Foxit the file is able to open and correctly shown. > > CMap is invalid > org.apache.fontbox.cmap.CMap readCode: 123 > org.apache.pdfbox.pdmodel.font.PDType0Font readCode: 521 > org.apache.pdfbox.contentstream.PDFStreamEngine showText: 699 > org.apache.pdfbox.contentstream.PDFStreamEngine showTextString: 595 > org.apache.pdfbox.contentstream.operator.text.ShowText process: 55 > org.apache.pdfbox.contentstream.PDFStreamEngine processOperator: 848 > org.apache.pdfbox.contentstream.PDFStreamEngine processStreamOperators: 503 > org.apache.pdfbox.contentstream.PDFStreamEngine processStream: 477 > org.apache.pdfbox.contentstream.PDFStreamEngine processPage: 150 > org.apache.pdfbox.rendering.PageDrawer drawPage: 254 > org.apache.pdfbox.rendering.PDFRenderer renderImage: 245 > org.apache.pdfbox.rendering.PDFRenderer renderImageWithDPI: 179 > vlh.Tools.PDF.PDFBoxUtil generateImage: 863 > vlh.notes.BSTArchive.File.pdf.PdfFileExtend generatePreviewImage: 170 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org