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

IOException: Found Token[kind=NAME, text=bind] but expected ND at offset 91

    Details

      Description

       Error  [PDType1Font] Can't read the embedded Type1 font CULYPI+CairoFont-1-0
          java.io.IOException: Found Token[kind=NAME, text=bind] but expected ND at offset 91
      	at org.apache.fontbox.type1.Type1Parser.readDef(Type1Parser.java:756)
      	at org.apache.fontbox.type1.Type1Parser.readDictValue(Type1Parser.java:354)
      	at org.apache.fontbox.type1.Type1Parser.parseBinary(Type1Parser.java:556)
      	at org.apache.fontbox.type1.Type1Parser.parse(Type1Parser.java:65)
      	at org.apache.fontbox.type1.Type1Font.createWithSegments(Type1Font.java:85)
      	at org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:262)
      	at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:62)
      	at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:143)
      	at org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60)
      	at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:853)
      	at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:509)
      	at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:477)
      	at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:158)
      	at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:223)
      	at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:147)
      	at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:69)
      	at org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:290)
      	at org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:259)
      	at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at javax.swing.SwingWorker.run(SwingWorker.java:334)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

      This is because of

      /RD {string currentfile exch readstring pop} bind executeonly def
      

      I'll add something to the parser.

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              tilman Tilman Hausherr
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: