[
https://issues.apache.org/jira/browse/PDFBOX-2361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr closed PDFBOX-2361.
-----------------------------------
Resolution: Not a Problem
> Blank pages after conversion images to pdf
> ------------------------------------------
>
> Key: PDFBOX-2361
> URL: https://issues.apache.org/jira/browse/PDFBOX-2361
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.8.4
> Reporter: Oleksandr Dronyk
>
> I am trying to convert images (png, jpg) to pdf and the issue is that after
> conversion document pages are blank.
> Used code:
> {code:borderStyle=solid}
> PDDocument doc = new PDDocument();
> for (BufferedImage buff : list) {
> PDPage page = new PDPage(new PDRectangle(buff.getWidth(),
> buff.getHeight()));
> doc.addPage(page);
> PDXObjectImage ximage = new PDJpeg(doc, buff);
> PDPageContentStream content = new PDPageContentStream(doc, page);
> content.drawImage(ximage, 0, 0);
> content.close();
> }
> doc.save(outStream);
> doc.close();
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)