You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2014/01/02 13:26:51 UTC
[jira] [Resolved] (PDFBOX-1733) Rectangles have one rounded edge in
rendered image only
[ https://issues.apache.org/jira/browse/PDFBOX-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-1733.
----------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
1.8.4
Assignee: Andreas Lehmkühler
We have to close the subpath of the rectangle so that the line cap style isn't applied to the open beginning of the path.
I fixed this issue in revisions 1554792 (trunk) and 1554793 (1.8 branch).
Thanks for the report!
> Rectangles have one rounded edge in rendered image only
> -------------------------------------------------------
>
> Key: PDFBOX-1733
> URL: https://issues.apache.org/jira/browse/PDFBOX-1733
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.0
> Environment: XP, W7
> Reporter: Tilman Hausherr
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Fix For: 1.8.4, 2.0.0
>
> Attachments: test-landscape2-01.png, test-landscape2.pdf
>
>
> The file test-landscape2.pdf of the pdfbox tests has two rectangles, but when rendering each one has a rounded edge at the top left. There is no such edge in the acrobat viewer.
> A debug shows that the cap property of the stroke property of the java graphics object is set to CAP_ROUND which produces this effect.
> In the pdf, there is this line:
> 6 w 8 M 1 J
> The "1 J" means "round cap"
> http://www.verypdf.com/document/pdf-format-reference/pg_0219.htm
> http://www.verypdf.com/document/pdf-format-reference/pg_0216.htm
> So I'm not even sure if this is a bug in pdfbox or a bug in the acrobat viewer. Does anyone here use a different viewer?
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)