How to find out which fonts are referenced and which are embedded in a PDF document

后端 未结 6 1244
刺人心
刺人心 2021-01-29 19:03

We have a little problem with fonts in PDF documents. In order to put the finger on the problem I\'d like to inspect, which fonts are actually embedded in the pdf document and w

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-29 19:46

    CAM::PDF has a font reporter, available as a command-line utility or via a library call. If you run "listfont.pl file.pdf" you get output like this:

    Page 1:
      Name: F1.0
        Type: TrueType
        BaseFont: NZUXSR+Impact
        Encoding: MacRomanEncoding
        Widths: yes
          Characters: 0-255
        Embedded: yes
      Name: F2.0
        Type: TrueType
        BaseFont: XSFKRA+ArialMT
        Encoding: MacRomanEncoding
        Widths: yes
          Characters: 0-255
        Embedded: yes
    

提交回复
热议问题