Hi Kevin,

A new snapshot should be available within a few hours. It is slightly faster and your file will be processed if you use the JPEG reader of https://github.com/haraldk/TwelveMonkeys . Either add this to your pom file (if you use maven)

    <dependency>
        <groupId>com.twelvemonkeys.imageio</groupId>
        <artifactId>imageio-jpeg</artifactId>
        <version>3.0.2</version>
    </dependency>

or add six(!) files into your classpath as described on the URL.

My understanding is that twelvemonkeys tries to process every broken JPEG file, similar to us trying to process every broken PDF file.

Tilman


Am 25.02.2015 um 15:04 schrieb Kevin Morin:
Hi Tilman,

great news! When do you think this will be available in the snapshot?

BR

Kevin

Le 24/02/2015 00:36, Tilman Hausherr a écrit :
Some good news: your file can be rendered with twelvemonkeys. See at
the bottom of
https://issues.apache.org/jira/browse/PDFBOX-2128

Tilman

Am 03.02.2015 um 11:34 schrieb Kevin Morin:
Hi Tilman,

I tried with JPedal and it works... and it also works with java 8. Do you have a clue on how to solve this?

BR

Kevin

On 01/02/2015 16:06, Tilman Hausherr wrote:
No good news - I extracted the JPEG file with NOTEPAD++ and get the same
error with ImageIO.

What does work is
JPEGImageDecoder imageDecoder = JPEGCodec.createJPEGDecoder(...);
raster = imageDecoder.decodeAsRaster();

but then the colors are black and violet :-(

Tilman


Am 30.01.2015 um 12:00 schrieb Kevin Morin:
Hi,

I have the following error when I try to render a PDF file (I cannot
send it on a plublic list, but I can send it in private if needed). It happens with PdfBox 2.0 under Linux and Windows, Java 7 but not Java 8.

Invalid image format
    sun.java2d.cmm.kcms.CMM.checkStatus(CMM.java:180)
    sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:134)
java.awt.image.ColorConvertOp.filter(ColorConvertOp.java:540)


com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(JPEGImageReader.java:1263)


com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method)


com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1231)




com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:1034)


    javax.imageio.ImageReader.read(ImageReader.java:940)
org.apache.pdfbox.filter.DCTFilter.decode(DCTFilter.java:72)
org.apache.pdfbox.cos.COSStream.attemptDecode(COSStream.java:463)
org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:417)
org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:363)

org.apache.pdfbox.cos.COSStream.getDecodeResult(COSStream.java:303)


org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.<init>(PDImageXObject.java:115)




org.apache.pdfbox.pdmodel.graphics.PDXObject.createXObject(PDXObject.java:65)



org.apache.pdfbox.pdmodel.PDResources.getXObject(PDResources.java:193)


org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:42)




org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:803)




org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:465)




org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:439)




org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:149)



org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:163)


org.apache.pdfbox.rendering.PDFRenderer.renderPage(PDFRenderer.java:204)



org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:137)



org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:70)


Thanks for your help
Best

Kevin


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




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




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



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


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



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

Reply via email to