ICEpdf
  1. ICEpdf
  2. PDF-212

convert failure (PDF -> PNG)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 4.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      CentOS5 / Sun java 1.5.0_22
    • Assignee Priority:
      P2

      Description

      I could not convert the PDF to PNG correctly. (one picture was broken)
      The PDF was created by OpenOffice3.1.0 from PowerPoint and we could see it cleary with Adobe reader.
      1. test.pdf
        21 kB
        Tomoaki Tougou
      1. TEST.png
        17 kB

        Activity

        Hide
        Tomoaki Tougou added a comment -

        PDF was created by OpenOffcie3.1.1.
        PNG was converted by Icepdf 3.1.0 from the PDF

        Show
        Tomoaki Tougou added a comment - PDF was created by OpenOffcie3.1.1. PNG was converted by Icepdf 3.1.0 from the PDF
        Hide
        Patrick Corless added a comment -

        Thanks for reporting this. I took a quick look at this with the trunk code and it appears to be rogue painting of a white box on the upper right corner of the page, covering most of the pink image.

        In 4.1 I introduced some support for transparency grouping but I wasn't able to complete the implementation, mainly because I lacked examples. I have a hunch that the white box is the result of a transparency group issue. With a little luck I'll get a chance to take a closer look for 4.2.

        Show
        Patrick Corless added a comment - Thanks for reporting this. I took a quick look at this with the trunk code and it appears to be rogue painting of a white box on the upper right corner of the page, covering most of the pink image. In 4.1 I introduced some support for transparency grouping but I wasn't able to complete the implementation, mainly because I lacked examples. I have a hunch that the white box is the result of a transparency group issue. With a little luck I'll get a chance to take a closer look for 4.2.
        Hide
        Patrick Corless added a comment -

        This is a tricky issue, the pink card images uses a soft mask to trim the white from the image in question. The soft mask is a gray scale image that has a non standard decode and image in question decodes to an rgb images. So a little work was done to fix up the DeviceGray decode processing and make the rgb image argb and apply the soft mask.

        This all takes a little more processing time but the images shows up property now.

        Show
        Patrick Corless added a comment - This is a tricky issue, the pink card images uses a soft mask to trim the white from the image in question. The soft mask is a gray scale image that has a non standard decode and image in question decodes to an rgb images. So a little work was done to fix up the DeviceGray decode processing and make the rgb image argb and apply the soft mask. This all takes a little more processing time but the images shows up property now.
        Hide
        Patrick Corless added a comment -

        Closing issue.

        Show
        Patrick Corless added a comment - Closing issue.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Tomoaki Tougou
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: