Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-1733

Rectangles have one rounded edge in rendered image only

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 1.8.4, 2.0.0
    • None
    • None
    • XP, W7

    Description

      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?

      Attachments

        1. test-landscape2.pdf
          10 kB
          Tilman Hausherr
        2. test-landscape2-01.png
          44 kB
          Tilman Hausherr

        Activity

          People

            lehmi Andreas Lehmkühler
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: