[ https://issues.apache.org/jira/browse/PDFBOX-4200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16448708#comment-16448708 ]
Tilman Hausherr edited comment on PDFBOX-4200 at 4/23/18 7:00 PM: ------------------------------------------------------------------ Did you produce this file yourself, or receive it? Did several files have the same problem or just that one? I am asking because the file was produced by "Adobe PDFMaker for Word" a few days ago. Errors like the one here usually happen by transfer errors, e.g. ascii-mode transfer. PDF.js also reports an error: {quote} Warning: Invalid stream: "FormatError: Unknown compression method in flate stream: 157, 170" {quote} so it's not just us. was (Author: tilman): Did you produce this file yourself, or receive it? Did several files have the same problem or just that one? I am asking because the file was produced by "Adobe PDFMaker for Word" a few days ago. Errors like the one here usually happen by transfer errors, e.g. ascii-mode transfer. > DataFormatException: invalid code lengths set when rendering image > ------------------------------------------------------------------ > > Key: PDFBOX-4200 > URL: https://issues.apache.org/jira/browse/PDFBOX-4200 > Project: PDFBox > Issue Type: Bug > Components: Rendering > Affects Versions: 2.0.7, 2.0.8, 2.0.9 > Reporter: Xin Lin > Assignee: Tilman Hausherr > Priority: Major > Fix For: 2.0.10, 3.0.0 PDFBox > > Attachments: invalid.pdf > > > When rendering image from the attached pdf, an exception was thrown and below > is the relevant stack trace: > java.util.zip.DataFormatException: invalid code lengths set > at java.util.zip.Inflater.inflateBytes(Native Method) ~[?:1.8.0_121] > at java.util.zip.Inflater.inflate(Inflater.java:259) ~[?:1.8.0_121] > at java.util.zip.Inflater.inflate(Inflater.java:280) ~[?:1.8.0_121] > at org.apache.pdfbox.filter.FlateFilter.decompress(FlateFilter.java:108) > ~[pdfbox-2.0.9.jar:2.0.9] > at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:74) > ~[pdfbox-2.0.9.jar:2.0.9] > at org.apache.pdfbox.filter.Filter.decode(Filter.java:87) > ~[pdfbox-2.0.9.jar:2.0.9] > at org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:77) > ~[pdfbox-2.0.9.jar:2.0.9] > at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:175) > ~[pdfbox-2.0.9.jar:2.0.9] > at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:163) > ~[pdfbox-2.0.9.jar:2.0.9] > at > org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:236) > ~[pdfbox-2.0.9.jar:2.0.9] > at > org.apache.pdfbox.pdmodel.graphics.color.PDICCBased.loadICCProfile(PDICCBased.java:124) > ~[pdfbox-2.0.9.jar:2.0.9] > at > org.apache.pdfbox.pdmodel.graphics.color.PDICCBased.<init>(PDICCBased.java:98) > ~[pdfbox-2.0.9.jar:2.0.9] > at > org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:192) > ~[pdfbox-2.0.9.jar:2.0.9] > at > org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:199) > ~[pdfbox-2.0.9.jar:2.0.9] > at > org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:169) > ~[pdfbox-2.0.9.jar:2.0.9] > at > org.apache.pdfbox.contentstream.operator.color.SetNonStrokingColorSpace.process(SetNonStrokingColorSpace.java:41) > ~[pdfbox-2.0.9.jar:2.0.9] > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:848) > ~[pdfbox-2.0.9.jar:2.0.9] > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:503) > ~[pdfbox-2.0.9.jar:2.0.9] > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:477) > ~[pdfbox-2.0.9.jar:2.0.9] > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150) > ~[pdfbox-2.0.9.jar:2.0.9] > at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:246) > ~[pdfbox-2.0.9.jar:2.0.9] > at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:225) > ~[pdfbox-2.0.9.jar:2.0.9] > at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:138) > ~[pdfbox-2.0.9.jar:2.0.9] -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org