pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allison, Timothy B." <talli...@mitre.org>
Subject RE: Extracting/rendering jp2?
Date Wed, 09 Nov 2016 20:26:30 GMT

>what do you need? The image in any format (e.g. png), or the image in the original JP2

Ideally the original JP2 compression.

>And if you're using ImageIOUtil.writeImage(), what is the parameter in suffix? If it is
JP2, then you'd need to have some plugin for it. 


>So it may be better to get the raw file, see in ExtractImages how we do it for DCTFilter.

Will do.  To confirm, you mean this?

                        InputStream data = pdImage.createInputStream(JPEG);
                        IOUtils.copy(data, out);

Thank you!

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

View raw message