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

        Tomoaki Tougou created issue -
        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
        Tomoaki Tougou made changes -
        Field Original Value New Value
        Attachment test.pdf [ 12581 ]
        Attachment TEST.png [ 12582 ]
        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.
        Patrick Corless made changes -
        Salesforce Case []
        Fix Version/s 4.2 [ 10243 ]
        Patrick Corless made changes -
        Salesforce Case []
        Assignee Priority P2
        Priority Major [ 3 ] Minor [ 4 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24078 Wed Mar 02 14:19:25 MST 2011 patrick.corless PDF-212 addition of basic smask handling for non rgba images. Also added support for none standard decode for DeviceGray images.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/functions/Function.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Stream.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24079 Wed Mar 02 14:39:56 MST 2011 patrick.corless PDF-212 removed erroneous alterRasterYCbCrA2RGBA_new call intead of alterRasterYCbCr2RGB
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Stream.java
        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.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: