pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clifford <cliffo...@paprika-software.com>
Subject Re: PDPattern PDFBOX-1094
Date Fri, 11 Nov 2016 10:21:40 GMT
I  got hold off pdfbox-app-2.0.4-20161110.213826-133.jar and I also did 
a svn co http://svn.apache.org/repos/asf/pdfbox/branches/2.0 and built 
it using netbeans and then used pdfbox-app-2.0.4-SNAPSHOT.jar

neither of these PDTilingPattern produced a \Length


in PDFDebugger I am getting :- (as I can not send images I will have to 
copy it out, and as it is broken it dose not show the text code so can 
not cut and paste)

<<>>Pattern: (1)[24 0 R]

<<>>Pattern1: (8) [37 0 R]  /T:Pattern

     []BBox: (4)

     84 PaintType: 1

     84 PatternType: 1

     <<>>Resources: (1)

     84 TilingType: 1

     / Type: Pattern

     8.4 XStep: 10.0

     8.4 YStep: 10.0



There is no /Length: [some value]


when opening in PDFDebugger it gets the error

java.lang.RuntimeException: java.util.concurrent.ExecutionException: 
java.io.IOException: Stream closed
org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.done(PagePane.java:258)
sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
     java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
Caused by: java.util.concurrent.ExecutionException: java.io.IOException: 
Stream closed
org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.done(PagePane.java:247)
sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
     java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
Caused by: java.io.IOException: Stream closed
java.io.PushbackInputStream.ensureOpen(PushbackInputStream.java:74)
     java.io.PushbackInputStream.read(PushbackInputStream.java:135)
org.apache.pdfbox.pdfparser.InputStreamSource.read(InputStreamSource.java:46)
org.apache.pdfbox.pdfparser.BaseParser.skipSpaces(BaseParser.java:1244)
org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken(PDFStreamParser.java:142)
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:463)
org.apache.pdfbox.contentstream.PDFStreamEngine.processTilingPattern(PDFStreamEngine.java:371)
org.apache.pdfbox.rendering.PageDrawer.drawTilingPattern(PageDrawer.java:222)
org.apache.pdfbox.rendering.TilingPaint.getImage(TilingPaint.java:171)
org.apache.pdfbox.rendering.TilingPaint.<init>(TilingPaint.java:69)
org.apache.pdfbox.rendering.PageDrawer.getPaint(PageDrawer.java:251)
org.apache.pdfbox.rendering.PageDrawer.getNonStrokingPaint(PageDrawer.java:529)
org.apache.pdfbox.rendering.PageDrawer.fillPath(PageDrawer.java:600)
org.apache.pdfbox.contentstream.operator.graphics.FillNonZeroRule.process(FillNonZeroRule.java:36)
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:815)
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:472)
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:446)
org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:149)
org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:189)
org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:145)
org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:68)
org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:236)
org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:217)
     java.lang.Thread.run(Thread.java:745)


On 10/11/2016 18:21, Tilman Hausherr wrote:
> Am 10.11.2016 um 18:56 schrieb clifford:
>> I am not saying that PDPattern should have a /Length. PDTilingPattern 
>> should and in version pdfbox-app-2.0.4-20161109.083729-125.jar 
>> PDTilingPattern dose not put a /Length, which is one of my problems 
>> every thing else is ok except that /Length is missing from 
>> PDTilingPattern. 
>
>
> That is the very thing I fixed here:
>
> https://issues.apache.org/jira/browse/PDFBOX-3561
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>

-- 

*Kind regards*

*Clifford Dann
Paprika*


T +44 (0)1732 811601
www.paprika-software.com <https://www.paprika-software.com%3C>
Latters House, High Street, Hadlow, Tonbridge, Kent, TN11 0EF, United 
Kingdom

Agency Software Worldwide Ltd.    Registered in England and Wales 01665695


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