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

Can't create text with PDFType1Font.ZAPF_DINGBATS or PDFType1Font.SYMBOL without installed fonts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.4
    • 2.0.5, 3.0.0 PDFBox
    • PDModel
    • None

    Description

      On a system with no fonts, it is not possible to create PDF files that use the Standard 14 Symbol and Zapf Dingbats fonts. The current code tries to look at the generic fallback font (LiberationSans), which of course doesn't have these characters so an exception is thrown. But this lookup isn't needed - we have all the metrics needed for the standard 14 fonts and don't need any actual font.

      Solution: change PDType1Font.encode() so that it doesn't use the generic font for standard 14 fonts.

      Attachments

        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: