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

Image transparency lost when convert to an image

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 1.8.7
    • Fix Version/s: None
    • Component/s: Rendering
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: