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

Font size not rendered with the needed precision

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0-incubator
    • None
    • None
    • windows xp and ubuntu linux 9.04
      svn at revision 785921.
      hp laserjet 8150 & hp laserjet 1320

    Description

      When previewing the attached file using the PDFReader, the font size is not correct. The last paragraph (the one with the huge hex string that is split over several lines) should be exactly as long as the
      separator lines. See how the font size changes if the preview is resized, leaving a wider or narrower margin at the end of the page.

      This can be solved by adding
      graphics.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);

      to the drawPage method of the PageDrawer. After applying the change, always fits the page exactly, independent of the preview window size.

      Attachments

        1. pdf.pdf
          4 kB
          Volker Bier

        Activity

          People

            Unassigned Unassigned
            vbier Volker Bier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: