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

Incorrect transform for annotations / appearance streams

    Details

      Description

      The attached file (from the ghostscript installation) doesn't render properly, especially page 3, where the images are about double the size. The cause is that the transform for the appearance stream must be calculated based on the BBox and the appearance rectangle and the matrix (if available). This is described in "Algorithm: Appearance streams" in the "Appearance Streams" section of the spec.

      I have already prepared a fix, which I will commit after PDFBOX-2262.

      Update: this issue is also about signatures and acroform fields, because these have also appearance streams that are rendered with the same code.

        Attachments

        1. annots.pdf-5-good.png
          45 kB
          Tilman Hausherr
        2. annots.pdf-5-bad.png
          53 kB
          Tilman Hausherr
        3. annots.pdf-4-good.png
          32 kB
          Tilman Hausherr
        4. annots.pdf-4-bad.png
          32 kB
          Tilman Hausherr
        5. annots.pdf-3-good.png
          30 kB
          Tilman Hausherr
        6. annots.pdf-3-bad.png
          33 kB
          Tilman Hausherr
        7. annots.pdf
          384 kB
          Tilman Hausherr

          Issue Links

            Activity

              People

              • Assignee:
                tilman Tilman Hausherr
                Reporter:
                tilman Tilman Hausherr
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: