Oleksandr Dronyk created PDFBOX-2361:
----------------------------------------
Summary: 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:
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();
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)