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

Incorrect rendering of Type3 character

    XMLWordPrintableJSON

Details

    • Patch

    Description

      Hi Team.

       

      We got a report from one of our customers that their images weren't rendered correctly. Looking into it, we found that a Type3 character contained an image. 

       

      That image was present on the character glyph resource table and not the font resource table which is a bit strange if you read the specification this should not be allowed. 

      Then again Chrome, Opera, IE 11, and Adobe render this file correctly. But Safari, Firefox, and Poppler are not rendering this PDF correctly.

       

      I've created a small patch that will solve this issue.

       

      Best regards

      Daniel

      Attachments

        1. correct.png
          689 kB
          Daniel Persson
        2. incorrect.png
          691 kB
          Daniel Persson
        3. issue-1.pdf
          2.18 MB
          Daniel Persson
        4. type3resources.patch
          1 kB
          Daniel Persson

        Activity

          People

            tilman Tilman Hausherr
            kalaspuffar Daniel Persson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: