You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2008/08/04 19:44:44 UTC

[jira] Resolved: (PDFBOX-341) Exception when running PDTToImage class

     [ https://issues.apache.org/jira/browse/PDFBOX-341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved PDFBOX-341.
----------------------------------

    Resolution: Fixed

[Comment on SourceForge]
Date: 2008-05-21 20:51
Sender: danielwilson
Logged In: YES 
user_id=1737686
Originator: NO

One of the patches I applied ... Phillip Koch's, I think ... took care of
this.

Please try the latest code!

If you still find it is breaking, please submit a PDF that demonstrates
the problem.  Thanks!


> Exception when running PDTToImage class
> ---------------------------------------
>
>                 Key: PDFBOX-341
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-341
>             Project: PDFBox
>          Issue Type: Bug
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1894664
> Originally submitted by nobody on 2008-02-15 13:28.
> When running the PDFToImage class (version 1.6 included in PDFBox-0.7.4-dev-20080215 build), I'm getting the following exception:
> java.awt.geom.IllegalPathStateException: missing initial moveto in path definition
> This is being thrown from the following method:
> PDFStreamEngine.processSubStream(PDPage, PDResources, COSStream).
> The stack trace is:
> PageDrawer(PDFStreamEngine).processSubStream(PDPage, PDResources, COSStream) line: 230
> PageDrawer(PDFStreamEngine).processStream(PDPage, PDResources, COSStream) line: 177
> PageDrawer.drawPage(Graphics, PDPage, Dimension) line: 103
> PDPage.convertToImage() line: 685
> PDFImageWriter.WriteImage(PDDocument, String, String, int, int, String) line: 100
> PDFToImage.main(String[]) line: 179
> Thanks,
> Dave Belt
> dbelt@erac.com
> [comment on SourceForge]
> Originally sent by nobody.
> Logged In: NO 
> I've done some additional debug tracing, and found that the exception is occurring when subPath.closePath() is called:
>   FillNonZeroRule.process(PDFOperator, List) line: 74
>   PageDrawer(PDFStreamEngine).processOperator(PDFOperator, List) line: 497
>   PageDrawer(PDFStreamEngine).processSubStream(PDPage, PDResources, COSStream) line: 218
>   PageDrawer(PDFStreamEngine).processStream(PDPage, PDResources, COSStream) line: 177
>   PageDrawer.drawPage(Graphics, PDPage, Dimension) line: 103
>   PDPage.convertToImage() line: 685
>   PDFImageWriter.WriteImage(PDDocument, String, String, int, int, String) line: 100
>   PDFToImage.main(String[]) line: 179
> At the time of the exception, variable subPath contains the following values:
> subPath= GeneralPath  (id=90)
>  numCoords= 0
>  numTypes= 0
>  pointCoords= float[40]  (id=96)
>   [0]= 79.68
>   [1]= 309.36
>   [2]= 486.4
>   [3]= 309.36
>   [4]= 486.4
>   [5]= 323.56
>   [6]= 79.68
>   [7]= 323.56
>   [8]= 79.68
>   [9]= 309.36
>   [10]= 0.0
>   [11]= 0.0
>   [12]= 0.0
>   [13]= 0.0
>   [14]= 0.0
>   [15]= 0.0
>   [16]= 0.0
>   [17]= 0.0
>   [18]= 0.0
>   [19]= 0.0
>   [20]= 0.0
>   [21]= 0.0
>   [22]= 0.0
>   [23]= 0.0
>   [24]= 0.0
>   [25]= 0.0
>   [26]= 0.0
>   [27]= 0.0
>   [28]= 0.0
>   [29]= 0.0
>   [30]= 0.0
>   [31]= 0.0
>   [32]= 0.0
>   [33]= 0.0
>   [34]= 0.0
>   [35]= 0.0
>   [36]= 0.0
>   [37]= 0.0
>   [38]= 0.0
>   [39]= 0.0
>  pointTypes= byte[20]  (id=97)
>   [0]= 0
>   [1]= 1
>   [2]= 1
>   [3]= 1
>   [4]= 1
>   [5]= 4
>   [6]= 0
>   [7]= 0
>   [8]= 0
>   [9]= 0
>   [10]= 0
>   [11]= 0
>   [12]= 0
>   [13]= 0
>   [14]= 0
>   [15]= 0
>   [16]= 0
>   [17]= 0
>   [18]= 0
>   [19]= 0
>  windingRule= 1
> I hope this helps!
> [comment on SourceForge]
> Originally sent by nobody.
> Logged In: NO 
> Sorry, the class name in the summary should have been PDFToImage.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.