PDFBox
  1. PDFBox
  2. PDFBOX-683

PDFStreamParser can't read "d0" and "d1" operators

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.2.0
    • Component/s: Parsing
    • Labels:
      None

      Description

      Hi,

      I'm using the PDFBox 1.0.0 and I encountered a problem with the parsing of the glyph-XOjbect of Type3 font.
      According to PDF Reference, a glyph-XOjbect of Type3 font must start with the d0 operator or the d1 operator.

      During the glyph parsing, "d0" and "d1" are interpreted as "d" operator due to the readOperator method in the PDFStreamParser.

      In attachment, you can find a patch proposal to fix this problem.

      Regards,
      Eric

        Activity

        Andreas Lehmkühler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Andreas Lehmkühler made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.2.0 [ 12314868 ]
        Resolution Fixed [ 1 ]
        Eric Leleu made changes -
        Field Original Value New Value
        Attachment PDFStreamParser.patch [ 12441124 ]
        Eric Leleu created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Eric Leleu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development