[ 
https://issues.apache.org/jira/browse/PDFBOX-4607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-4607:
------------------------------------
    Description: 
Thomas on stackoverflow has very simple code that creates a PDF from a 16 bit 
PNG image. The PDF displays fine on Adobe Reader in 2.0.8 but no longer since 
2.0.12. It displays on all other viewers I've tried: PDFBox, GS, PDF.js and 
Chrome. It works on Adobe Reader when disabling the predictor logic in 
LosslessFactory.java. Thomas and I narrowed the problem last evening and now he 
has a non confidential file for us and also a workaround on his side.

To reproduce the problem I used the ImageToPDF example.

cc [~rototor]

the "bad" file has imageType custom, colorspace with getNumComponents = 1, 8 
bpc, data buffer TYPE_BYTE

  was:
Thomas on stackoverflow has very simple 16 bit PNG image into PDF code that 
displays fine on Adobe Reader in 2.0.8 but no longer since 2.0.12. It displays 
on all other viewers I've tried: PDFBox, GS, PDF.js and Chrome. It works again 
when disabling the predictor logic in LosslessFactory.java. Thomas and I 
narrowed the problem last evening and now he has a non confidential file for us 
and also a workaround on his side.

To reproduce the problem I used the ImageToPDF example.

cc [~rototor]

the "bad" file has imageType custom, colorspace with getNumComponents = 1, 8 
bpc, data buffer TYPE_BYTE


> Transparent 16 bit image doesn't display in Adobe Reader
> --------------------------------------------------------
>
>                 Key: PDFBOX-4607
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4607
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.12, 2.0.16
>            Reporter: Tilman Hausherr
>            Priority: Major
>              Labels: regression
>         Attachments: 16bit-transparent.pdf, 16bit-transparent.png
>
>
> Thomas on stackoverflow has very simple code that creates a PDF from a 16 bit 
> PNG image. The PDF displays fine on Adobe Reader in 2.0.8 but no longer since 
> 2.0.12. It displays on all other viewers I've tried: PDFBox, GS, PDF.js and 
> Chrome. It works on Adobe Reader when disabling the predictor logic in 
> LosslessFactory.java. Thomas and I narrowed the problem last evening and now 
> he has a non confidential file for us and also a workaround on his side.
> To reproduce the problem I used the ImageToPDF example.
> cc [~rototor]
> the "bad" file has imageType custom, colorspace with getNumComponents = 1, 8 
> bpc, data buffer TYPE_BYTE



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to