Jill Xu created PDFBOX-5646:
-------------------------------

             Summary: Logo image appeared weird after document to image 
conversion
                 Key: PDFBOX-5646
                 URL: https://issues.apache.org/jira/browse/PDFBOX-5646
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 2.0.27
            Reporter: Jill Xu
         Attachments: image-2023-08-10-22-50-55-900.png, 
image-2023-08-10-22-51-25-859.png, original_MSFT_doc.pdf, processed_output.png

Hi team,

We noticed a logo image appeared weirdly after performing a PDF to image 
conversion. The API we used is something like: 
{code:java}
PDFDocument document = PDDocument.load(xxx); 
PDFRenderer renderer = new PDFRenderer(document);  
renderer.renderImageWithDPI(0, dpi, ImageType.RGB); {code}
The original pdf and the processed output image is attached to the ticket.

The pdfbox version we are using is 2.0.27

The original logo in the pdf:

!image-2023-08-10-22-50-55-900.png|width=213,height=124!

After processing:

!image-2023-08-10-22-51-25-859.png|width=212,height=151!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to