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

Icons of text annotations sometimes too large

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.32, 3.0.3 PDFBox
    • 2.0.33, 3.0.4 PDFBox, 4.0.0
    • Rendering
    • None

    Description

      When using DejaVu Sans as substitute for Zapf Dingbats (introduced in PDFBOX-5905), the annotation icons on page 6 of pdfcomment.pdf are too large. The reason is that this font has a different scaling. Some debug output for the star icon:

      Zapf Dingbats:
      path: java.awt.geom.Rectangle2D$Float[x=35.0,y=-14.0,w=747.0,h=719.0], matrix: [0.001, 0, 0, 0.001, 0, 0]
      DejaVu Sans:
      path: java.awt.geom.Rectangle2D$Float[x=133.0,y=-9.0,w=1570.0,h=1490.0], matrix: [4.8828125E-4, 0, 0, 4.8828125E-4, 0, 0]

      So we have to scale fonts that aren't 1/1000.

      Attachments

        1. pdfcomment.pdf
          168 kB
          Tilman Hausherr

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              tilman Tilman Hausherr
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: