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

Field text poorly vertically aligned

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.15
    • 2.0.21, 3.0.0 PDFBox
    • AcroForm
    • None

    Description

      doc.getDocumentCatalog().getAcroForm().getField("err_desc").setValue("pqgy");
      

      The content is not aligned very well, so the lower parts of the glyphs can't be seen.

      PDFBox content:

      /Tx BMC
        q
          1 1 281.1 12.2 re
          W
          n
          BT
            /F1 10 Tf
            /DeviceRGB cs
            0 0 0 sc
            2 1.97 Td
            (pqgy) Tj
          ET
        Q
      EMC
      

      Adobe content:

      /Tx BMC
        BT
          0 0 0 rg
          /F1 10 Tf
          0 g
          2 2.985 Td
          (pqgy) Tj
        ET
      EMC
      

      Attachments

        1. SO56464810-PDFBOX-new.pdf
          24 kB
          Maruan Sahyoun
        2. SO57717135.pdf
          157 kB
          Tilman Hausherr
        3. SO56464810.pdf
          24 kB
          Tilman Hausherr
        4. SO56464810-Adobe.pdf
          27 kB
          Tilman Hausherr
        5. SO56464810-PDFBox.pdf
          24 kB
          Tilman Hausherr

        Issue Links

          Activity

            People

              msahyoun Maruan Sahyoun
              tilman Tilman Hausherr
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: