You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2024/08/01 03:44:00 UTC
[jira] [Reopened] (PDFBOX-5856) PDF render problem with embedded image
[ https://issues.apache.org/jira/browse/PDFBOX-5856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr reopened PDFBOX-5856:
-------------------------------------
> PDF render problem with embedded image
> --------------------------------------
>
> Key: PDFBOX-5856
> URL: https://issues.apache.org/jira/browse/PDFBOX-5856
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 3.0.2 PDFBox
> Reporter: Joseph Jezerinac
> Priority: Major
> Attachments: PDFBOX-5856-p1-300dpi.jpg, actual.png, expected.png, pdfbox-image-rendering-problem.pdf
>
>
> {code:java}
> try (PDDocument document = toPdDocument(pdf)) {
> final PDFRenderer pdfRenderer = new PDFRenderer(document);
> final File imageFile = FileUtils.createTempFile("ec-pdf-image-pg1.png");
> ImageIO.write(pdfRenderer.renderImageWithDPI(0, 300), "png", imageFile);
> } {code}
> The above code takes the attached pdf as input. Results in PNG without the signature image (see actual.png) the results should match the expected PNG attachment.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org