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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.17
    • None
    • Documentation
    • None
    • 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

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

            Dates

              Created:
              Updated: