pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-1752) Rendering PDF containing Jpeg2000 fails
Date Mon, 01 Oct 2018 15:36:00 GMT

    [ https://issues.apache.org/jira/browse/PDFBOX-1752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16634199#comment-16634199
] 

Tilman Hausherr commented on PDFBOX-1752:
-----------------------------------------

I found a bugfix for this problem, it is in this commit
https://github.com/faceless2/jpeg2000/commit/b20342956ac5d05bb97522ddeb41e9bed5abfa95
by Mike Bremford of bfo.com, see also their blog entry:
https://bfo.com/blog/2018/08/02/jpeg2000_java_and_pdf/
His commit is based on this PR by "Jugen" of Lightware Software:
https://github.com/jai-imageio/jai-imageio-jpeg2000/pull/24

The bfo.com fork doesn't create a plugin (or I made a mistake when building) so you need to
make that commit in the main jpeg2000 project at
https://github.com/jai-imageio/jai-imageio-jpeg2000/
and then build. The result has the version number 1.3.1-SNAPSHOT.

The upper part of the commit (in StdEntropyDecoder.java) fixes the bug. I also tested the
lower part (with the constants) but found no differences in my test set.

> Rendering PDF containing Jpeg2000 fails
> ---------------------------------------
>
>                 Key: PDFBOX-1752
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1752
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 1.8.2, 2.0.0
>         Environment: Windows 8.1
>            Reporter: David KELLER
>            Priority: Major
>              Labels: JPEG2000, JPXFilter, image, imageio, render
>             Fix For: 2.0.0
>
>         Attachments: Document_20130625-190105_0001.pdf, Document_20130625-190105_0001.pdf.ghost4j.png,
Document_20130625-190105_0001.pdf.icepdf.png, Document_20130625-190105_0001.pdf.jpedal.png,
Document_20130625-190105_0001.pdf.pdfbox.2.0.0.png, Document_20130625-190105_0001.pdf.pdfbox.png,
PDFBOX-1752-JPX.jp2, PdfToImageTest.java, doc2.pdf, doc2.pdf.jpedal.png, doc2.pdf.pdfbox.png
>
>
> Rendering PDF containing Jpeg2000 fails with PdfBox



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message