[
https://issues.apache.org/jira/browse/PDFBOX-1649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13995199#comment-13995199
]
Tilman Hausherr commented on PDFBOX-1649:
-----------------------------------------
I thought about it again - FFFFFF = white. Against a white background. So the
result should be white, regardless of the alpha value. i.e. your original text
is the correct one, there should not be any grey lines.
I believe the error is in Adobe Reader. I am aware that this is unlikely as
they are the gold standard. The line is not there at 100% but it is at 200% and
stays as a thin line that has always the same thickness. The line is also on XP
but at different resolutions. I get no grey line with gsview, with pdf.js and
with a closed source product I don't want to name. The pdf viewer in chrome
might be by Acrobat itself, Adobe and Google are currently BFF when it comes to
developing chrome, google even gets the flash updates sooner than the rest of
the world.
I'm aware that there were several problems with alpha in PDFBox, but those I
know about have been solved in 2.0, and most (except BITMASK transparency) are
solved in the current 1.8 snapshot.
> PNG images with alpha channel displays thin grey lines
> ------------------------------------------------------
>
> Key: PDFBOX-1649
> URL: https://issues.apache.org/jira/browse/PDFBOX-1649
> Project: PDFBox
> Issue Type: Bug
> Components: Writing
> Affects Versions: 1.8.2
> Environment: Microsoft Windows [Version 6.1.7601]
> PDFBox 1.8.2
> Adobe Reader 10.1.7
> Google Chrome 27.0.1453.110 m
> Reporter: Niels Beekman
> Attachments: screenshot.png, test.pdf, test.png
>
>
> When including a PNG file in a PDF file, both Adobe Reader and Google Chrome
> show thin grey lines. I have attached a screenshot showing the issue.
> PDDocument document = new PDDocument();
> PDPage page = new PDPage(PDPage.PAGE_SIZE_A4);
> document.addPage(page);
> BufferedImage buffImage = ImageIO.read(new File("test.png"));
> PDPixelMap pixelMap = new PDPixelMap(document, buffImage);
> PDPageContentStream contentStream = new PDPageContentStream(document, page);
> contentStream.drawImage(pixelMap, 0, 0);
> contentStream.close();
> document.save(new File("test.pdf"));
> This does not happen with a flattened PNG (without alpha channel).
--
This message was sent by Atlassian JIRA
(v6.2#6252)