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 2014/11/04 19:14:35 UTC
[jira] [Commented] (PDFBOX-2481) Adding large TYPE_BYTE_BINARY
image to pdf document generates distorted result
[ https://issues.apache.org/jira/browse/PDFBOX-2481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14196497#comment-14196497 ]
Tilman Hausherr commented on PDFBOX-2481:
-----------------------------------------
The cause is missing padding at the end of rows. This wasn't detected by the tests because the test images had a width with a multiple of 8. That is why one of your files worked and the other didn't. I'm having some computer problems and will commit patches as soon as it works again.
> Adding large TYPE_BYTE_BINARY image to pdf document generates distorted result
> ------------------------------------------------------------------------------
>
> Key: PDFBOX-2481
> URL: https://issues.apache.org/jira/browse/PDFBOX-2481
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.8.7, 1.8.8, 2.0.0
> Reporter: Julien Béti
> Assignee: Tilman Hausherr
> Fix For: 1.8.8, 2.0.0
>
> Attachments: Image2Pdf2ImageBlackAndWhite2PDF.java, bn.pdf, large.jpg, rgb.pdf, small.jpg
>
>
> See attached [^small.jpg] and [^large.jpg] added to attached [^rgb.pdf] and [^bn.pdf] using attached [^Image2Pdf2ImageBlackAndWhite2PDF.java].
> Adding both small.jpg and large.jpg to rgb.pdf is OK
> Adding small.jpg, converted to black and white, to bn.pdf is OK
> Adding large.jpg, converted to black and white, to bn.pdf is NOK: the resulting image is distorted.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)