[
https://issues.apache.org/jira/browse/PDFBOX-5653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17754163#comment-17754163
]
Tilman Hausherr commented on PDFBOX-5653:
-----------------------------------------
This is a different problem. In the code below there are several lines that are
rendered with a f (fill) instead of with a s (stroke). I believe there is
another issue about this but I can't find it (maybe it was in the mailing
list). This is a weird idea to create a line and to do a fill and then to
expect that this would be painted as a rectangle, but it works with some
graphics engines, but not with java.
{code}
/Cs6 cs 0 0 0 scn
q 1 0 0 1 33.3 630.591 cm 0 0 m
0 164.82 l
f %%%%
Q
44.94 630.591 .36 164.82 re
f
62.58 630.591 .42 164.82 re
f
q 1 0 0 1 33.3 630.591 cm 0 0 m
29.7 0 l
0 0 l
f %%%%
Q
33.3 671.451 29.7 .35999 re
f
33.3 712.671 29.7 .35999 re
f
33.3 753.831 29.7 .41998 re
f
33.3 795.051 29.7 .35999 re
f
{code}
I had a new idea which is to insert this to fillPath:
if (bounds.isEmpty())
{
graphics.setStroke(new BasicStroke(0.01f));
graphics.draw(shape);
}
However this produces unwanted artefacts.
> The PageDrawer.strokePath method is blocked, and cpu100%
> --------------------------------------------------------
>
> Key: PDFBOX-5653
> URL: https://issues.apache.org/jira/browse/PDFBOX-5653
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.29
> Reporter: liu
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 2.0.30, 3.0.0 PDFBox
>
> Attachments: screenshot-1.png, test1.pdf
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]