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

Image transparency lost when convert to an image

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.8.7
    • None
    • Rendering

    Description

      I try to convert a pdf file with transparent images to a image but the opacity is lost in the png result.

      It's seem to be the same issue than https://issues.apache.org/jira/browse/PDFBOX-993 (fixed in 1.6.0).

      I test with code: (1.8.7)
      pdPage.convertToImage(BufferedImage.TYPE_4BYTE_ABGR, 72);

      and with:
      java -jar pdfbox-app-1.8.7.jar PDFToImage -imageType png test.pdf

      Attachments

        1. test.png
          8 kB
          ccouturi
        2. test.pdf
          14 kB
          ccouturi

        Activity

          People

            Unassigned Unassigned
            ccouturi ccouturi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: