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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.5, 3.0.0 PDFBox
    • Component/s: PDModel
    • Labels:
      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

              • Assignee:
                tilman Tilman Hausherr
                Reporter:
                tilman Tilman Hausherr
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: