Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3672

Exception on font PDType1Font.ZAPF_DINGBATS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.4, 3.0.0 PDFBox
    • 2.0.5, 3.0.0 PDFBox
    • PDModel
    • None

    Description

      Hi

      I am getting this exception using snapshot pdfbox-2.1.0-20170131.210242-692.jar and fontbox-2.1.0-20170131.215925-709.jar

      Debugging PDType1Font.java, the unicode value passed to method "protected byte[] encode(int unicode) throws IOException" was 84
      and the call to method "encode(int unicode)" was triggered from font.getStringWidth(...) when font was PDType1Font.ZAPF_DINGBATS

      java.lang.IllegalArgumentException: U+0054 ('.notdef') is not available in this font ZapfDingbats (generic: MS-Gothic) encoding: ZapfDingbatsEncoding
      at org.apache.pdfbox.pdmodel.font.PDType1Font.encode(PDType1Font.java:409)
      at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:316)
      at org.apache.pdfbox.pdmodel.font.PDFont.getStringWidth(PDFont.java:345)

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            smherz@gmail.com Said Herzallah
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: