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

        Eric Leleu created issue -
        Eric Leleu made changes -
        Field Original Value New Value
        Attachment PDFStreamParser.patch [ 12441124 ]
        Hide
        Andreas Lehmkühler added a comment -

        I've applied the patch with version 940242. I've slightly changes the code to minmize the number of peek calls.

        Thanks to Eric for the contribution

        Show
        Andreas Lehmkühler added a comment - I've applied the patch with version 940242. I've slightly changes the code to minmize the number of peek calls. Thanks to Eric for the contribution
        Andreas Lehmkühler made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.2.0 [ 12314868 ]
        Resolution Fixed [ 1 ]
        Andreas Lehmkühler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        24d 7h 24m 1 Andreas Lehmkühler 02/May/10 16:04
        Resolved Resolved Closed Closed
        59d 16h 21m 1 Andreas Lehmkühler 01/Jul/10 08:26

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development