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

Document if and when PDFont.getFontDescriptor() may return null

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.17
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      Windows 10.0.18362.418

      Description

      Please document under which conditions PDFont.getFontDescriptor() may return null and what can be done to calculate the text ascent/descent. Clearly, this should be possible to calculate as the text ends up getting rendered.

      Background information:

      I have a PDF file (credit card statement, so it cannot be shared easily) that contains an embedded PDType3Font called "C0EX06Q0". When I invoke PDFont.getFontDescriptor() I get null.

      I have a screenshot of what it looks like.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cowwoc Gili
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: