149

I'm using Foxit Reader as default PDF viewer. How can I see what type of font is used for a selected part of a PDF document?

(If this can only be done with another software, I'd prefer a freeware as I don't want to pay for just viewing selected fonts' types.)

15 Answers15

86

If you are using PDF-XChange Viewer, do this:

  1. Select your text with the text selecting tool
  2. Right-click the selection
  3. Click on "Text Properties..."
  4. Choose "Formatting" (on the left)
  5. There is an arrow on the left of your selected text (which comes on the right part of the
    window)
  6. You click on it and you get all the information you want.

enter image description here

nixda
  • 27,634
Patrick
  • 876
83

Here's something very simple for unencrypted PDFs:

 strings my.pdf | grep FontName | cut -d '/' -f4

Try removing the "cut" part if it gives no meaningful results.

54

In both Foxit Reader and Adobe Reader if you go to File > Properties and then click on the Fonts tab you will be able to see a full list of fonts available in that document, however, there isn't any features in these basic PDF readers that will let you select some text and view the properties for that text to see exactly which font it uses.

For that you need Foxit PDF Editor, Adobe Acrobat or some other PDF editor.

Rowan
  • 1,006
45

In Adobe Acrobat X Pro (not for free), you can use the Edit Document Text tool to find out about the font:

  1. Click Tools on the documents menubar in the top right corner to show the side menu of tools.
  2. Open the Content area in the right sidebar and locate the Edit Document Text tool.
  3. Select some text
  4. Right-click and select Properties...
  5. The Text tab of the properties dialog shows the font (you can also change it)

In Adobe Acrobat 9 Pro, you can use the TouchUp Text Tool which is found under (Tools > Advanced Editing > TouchUp Text Tool).

This might also work in other Acrobat versions, but the Tool might be buried somewhere else in Acrobat's menus.

Rabarberski
  • 8,800
29

I don't know of any way to do what you want other than using some very expensive commercial PDF processing software (such as Enfocus' PitStop or callas' pdfToolbox4).

The closest you can get is the pdffonts.exe commandline utility. That is contained in the XPDF-based tool collection, available here: http://www.foolabs.com/xpdf/download.html (Download: ftp://ftp.foolabs.com/pub/xpdf/xpdfbin-win-3.03.zip ).

If you run

pdffonts.exe -f 22 -l 22 c:\path\to\some\pdf.pdf

the result will show all fonts used on page 22. To see all fonts used in the complete document, just run

pdffonts.exe c:\path\to\some\pdf.pdf
Kurt Pfeifle
  • 13,079
20

While it doesn't preserve layout particularly well, Libre Office http://www.libreoffice.org is able to import PDF files. After importing a pdf, if you click on a text block it will tell you what font was used.

vkiwi
  • 309
11

If the font is installed on your computer, then maybe copying the text to some word processor does the trick? And even when not installed, some word processors might still show the requested name in their font dialog.

(Other than that: a screen capture and WhatTheFont! might help, if it's worth the trouble. Or select the text, and then "print" the selection to a new PDF document, to see what its font properties shows then?)

Arjan
  • 31,511
9

Meanwhile I found a different method to list fonts used in a PDF (and indicate wether they're embedded or not), which uses Ghostscript only (no need for additional third party utilities). Unfortunately this also does NOT satisfy your requirement to learn about a font used for highlighted text.

This method uses a little utility program, written in PostScript, shipping with the source code of Ghostscript. Look in the toolbin subdir for the pdf_info.ps file.

The included comments say you should run it like this in order to list fonts used, media sizes used

gs -dNODISPLAY ^
   -q ^
   -sFile=____.pdf ^
   [-dDumpMediaSizes] ^
   [-dDumpFontsUsed [-dShowEmbeddedFonts]] ^
   toolbin/pdf_info.ps

I did run it on a local example file. Here is the result:

C:\> gswin32c ^
      -dNODISPLAY ^
      -q ^
      -sFile=SHARE.pdf ^
      -dDumpMediaSizes ^
      -dDumpFontsUsed ^
      -dShowEmbeddedFonts ^
      C:\\pa\\gs\\gs8.64\\lib\\pdf_info.ps

SHARE.pdf has 12 pages.
Title: SHARE_Information_070808.indd
Creator: Adobe InDesign CS2 (4.0)
Producer: Adobe PDF Library 7.0
CreationDate: D:20080808103516+02'00'
ModDate: D:20080808103534+02'00'
Trapped: False

Page 1 MediaBox: [ 595.276 841.89 ] CropBox: [ 595.276 841.89 ]
Page 2 MediaBox: [ 595.276 841.89 ] CropBox: [ 595.276 841.89 ]
Page 3 MediaBox: [ 595.276 841.89 ] CropBox: [ 595.276 841.89 ]
Page 4 MediaBox: [ 595.276 841.89 ] CropBox: [ 595.276 841.89 ]
Page 5 MediaBox: [ 595.276 841.89 ] CropBox: [ 595.276 841.89 ]
Page 6 MediaBox: [ 595.276 841.89 ] CropBox: [ 595.276 841.89 ]
Page 7 MediaBox: [ 595.276 841.89 ] CropBox: [ 595.276 841.89 ]
Page 8 MediaBox: [ 595.276 841.89 ] CropBox: [ 595.276 841.89 ]
Page 9 MediaBox: [ 595.276 841.89 ] CropBox: [ 595.276 841.89 ]
Page 10 MediaBox: [ 595.276 841.89 ] CropBox: [ 595.276 841.89 ]
Page 11 MediaBox: [ 595.276 841.89 ] CropBox: [ 595.276 841.89 ]
Page 12 MediaBox: [ 595.276 841.89 ] CropBox: [ 595.276 841.89 ]

Font or CIDFont resources used:
DKCTOS+FrutigerLT-BlackCn
DKCTOS+FrutigerLT-BoldItalic
DKCTOS+Wingdings3
TIELEM+FrutigerLT-Black
TIELEM+FrutigerLT-Bold
TIELEM+FrutigerLT-BoldCn
TIELEM+FrutigerLT-Cn
TIELEM+FrutigerLT-Italic
TIELEM+FrutigerLT-UltraBlack
TIELEM+TimesNewRomanPS-BoldItalicMT
Kurt Pfeifle
  • 13,079
5

Rowan's answer is fine, and if you really need to narrow it down to a small portion of a complex document, try to re-print a subset to another PDF (there are excellent free PDF printers, if you don't have one), and check the font properties of the resulting file.

Fa3ien
  • 73
4

An easier solution is just to use Adobe Reader X and to right-click anywhere in the document, choose "Document Properties", then click on the tab "Fonts". There you see a list of all fonts used in the document.

andli
  • 149
  • 1
  • 3
4

Sounds like the fonts tab in Adobe Reader is an easy solution.

But another way would be to select the text, copy and paste into Word, and you should be able to determine the front in Word if it copies the formatting like it did for me.

3

Another solution is to open the PDF file with Adobe Illustrator, if the fonts are not streamlined you'll be able to know which fonts you are using.

vitto
  • 471
1

In addition to all the other answers, you can simply open your file in Microsoft Word (on Windows: Right click your pdf file → Open withWord) then select the text to find out which font size is being used.

(Word is not free but is popular enough that many people will already have it installed on their computer.)

1

In Adobe Reader XI go to File -> Properties and click the Fonts tab. They are all there. Super easy, and free

-1

On *nix, use

pdffonts my.pdf

for a list of fonts used in the document. See How to find out which fonts are referenced and which are embedded in a PDF document for more details.