You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2015/03/31 19:33:53 UTC
[jira] [Comment Edited] (PDFBOX-2728)
java.awt.geom.IllegalPathStateException: missing initial moveto in path
definition
[ https://issues.apache.org/jira/browse/PDFBOX-2728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14388897#comment-14388897 ]
John Hewson edited comment on PDFBOX-2728 at 3/31/15 5:33 PM:
--------------------------------------------------------------
{quote}
I'm changing the return type of getCurrentPoint() from Point2D.Float to Point2D because the current cast from double to float including a "new" slows down processing if the point exists.
{quote}
Does it? Have you profiled that code? Point2D.Float is a stronger contact than Point2D, so on the surface it's not a desirable change (especially as the extra double precision is meaningless).
was (Author: jahewson):
{quote}
I'm changing the return type of getCurrentPoint() from Point2D.Float to Point2D because the current cast from double to float including a "new" slows down processing if the point exists.
{quote}
Does it? Have you profiled that code? Point2D.Float is a stronger contact than Point2D, so on the surface it's not a desirable changes (especially as the extra double precision is meaningless).
> java.awt.geom.IllegalPathStateException: missing initial moveto in path definition
> ----------------------------------------------------------------------------------
>
> Key: PDFBOX-2728
> URL: https://issues.apache.org/jira/browse/PDFBOX-2728
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.0
> Reporter: Massimo Franzoni
> Assignee: Tilman Hausherr
> Fix For: 2.0.0
>
>
> I get this exception :
> {code}
> java.awt.geom.IllegalPathStateException: missing initial moveto in path definition
> at java.awt.geom.Path2D$Float.needRoom(Path2D.java:280)
> at java.awt.geom.Path2D.closePath(Path2D.java:1769)
> at org.apache.pdfbox.rendering.PageDrawer.closePath(PageDrawer.java:693)
> at org.apache.pdfbox.contentstream.operator.graphics.ClosePath.process(ClosePath.java:35)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:788)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:454)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:425)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:398)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:164)
> at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:164)
> at org.apache.pdfbox.rendering.PDFRenderer.renderPage(PDFRenderer.java:213)
> {code}
> similar to PDFBOX-2189.
> I can't include the PDF file for privacy reason but I think a similar solution applied for the other bug could fix this problem too
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org