pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Loiodice <loiod...@csdisco.com>
Subject Cannot Render Pdf
Date Wed, 09 May 2018 21:24:50 GMT
Hello,

I have some files that I cannot render using version 2.0.9.

Also tried adding following:

System.setProperty("org.apache.pdfbox.rendering.UsePureJavaCMYKConversion",
"true");

and

pdfRenderer.setSubsamplingAllowed(true);


This is an example:
https://www.dropbox.com/s/4i0gf0895viwk93/my_inputfile_test.2.pdf?dl=0

with 4GB (-Xmx4000m) after 9 minutes:

2018-05-09 16:19:45.852 java[5821:73510387] IMKClient Stall detected,
*please Report* your user scenario attaching a spindump (or sysdiagnose)
that captures the problem -
(imkxpc_presentFunctionRowItemTextInputViewWithEndpoint:reply:) block
performed very slowly (2.27 secs).

with less memory

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit
exceeded
at java.lang.Integer.valueOf(Integer.java:832)
at
org.apache.pdfbox.pdmodel.graphics.shading.TriangleBasedShadingContext.calcPixelTable(TriangleBasedShadingContext.java:121)
at
org.apache.pdfbox.pdmodel.graphics.shading.PatchMeshesShadingContext.calcPixelTable(PatchMeshesShadingContext.java:280)
at
org.apache.pdfbox.pdmodel.graphics.shading.TriangleBasedShadingContext.createPixelTable(TriangleBasedShadingContext.java:80)
at
org.apache.pdfbox.pdmodel.graphics.shading.PatchMeshesShadingContext.<init>(PatchMeshesShadingContext.java:71)
at
org.apache.pdfbox.pdmodel.graphics.shading.Type7ShadingContext.<init>(Type7ShadingContext.java:46)
at
org.apache.pdfbox.pdmodel.graphics.shading.Type7ShadingPaint.createContext(Type7ShadingPaint.java:68)
at sun.java2d.pipe.AlphaPaintPipe.startSequence(AlphaPaintPipe.java:84)
at sun.java2d.pipe.AAShapePipe.renderTiles(AAShapePipe.java:168)
at sun.java2d.pipe.AAShapePipe.renderPath(AAShapePipe.java:159)
at sun.java2d.pipe.AAShapePipe.fill(AAShapePipe.java:68)
at
sun.java2d.pipe.PixelToParallelogramConverter.fill(PixelToParallelogramConverter.java:164)
at sun.java2d.pipe.ValidatePipe.fill(ValidatePipe.java:160)
at sun.java2d.SunGraphics2D.fill(SunGraphics2D.java:2527)
at org.apache.pdfbox.rendering.PageDrawer.shadingFill(PageDrawer.java:1236)
at
org.apache.pdfbox.contentstream.operator.graphics.ShadingFill.process(ShadingFill.java:41)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:848)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:503)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:477)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.showForm(PDFStreamEngine.java:181)
at
org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:70)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:848)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:503)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:477)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.showForm(PDFStreamEngine.java:181)
at
org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:70)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:848)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:503)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:477)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.showForm(PDFStreamEngine.java:181)
at
org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:70)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:848)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message