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

Rotation and skew not applied on rectangles

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.6, 1.8.7, 2.0.0
    • Fix Version/s: 1.8.7, 2.0.0
    • Component/s: Rendering
    • Labels:
      None

      Description

      When rendering the attached example, rotation and skew of rectangles is not applied properly. The reason is that the AppendRectangleToPath transform only start and end point and makes a non-rotated non-skewed result out of that. Instead, each corner of the rectangle has to be transformed separately as shown in the attached patch.

        Attachments

        1. AppendRectangleToPath.java.patch
          2 kB
          Petr Slaby
        2. example_013.pdf
          25 kB
          Petr Slaby

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              pslabycz Petr Slaby
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: