You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2013/10/01 22:25:24 UTC

[jira] [Created] (PDFBOX-1733) Rectangles have one rounded edge in rendered image only

Tilman Hausherr created PDFBOX-1733:
---------------------------------------

             Summary: 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
            Reporter: Tilman Hausherr


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#6144)