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

4-bytes CMap entry causes exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 1.8.6, 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      I have PDF that has CMap entry consisting of 4 bytes. It is just one entry with that size, other entries have 2-bytes.

      Adobe reader has no problems with that, PDFBox throws Exception.

      I think this Exception should not be thrown. It should be skipped or truncated tu 2 bytes and write warning to log.

        Attachments

        1. pdf_with_4B_cmap_entry.pdf
          90 kB
          Juraj Lonc
        2. PDFBOX-2074_CMap.diff
          1 kB
          Juraj Lonc

          Issue Links

            Activity

              People

              • Assignee:
                lehmi Andreas Lehmkühler
                Reporter:
                chupacabras Juraj Lonc
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: