[Tugindia] pdffonts, etc

Radhakrishnan CV cvr at river-valley.org
Fri May 16 06:56:22 CEST 2003

I don't know, whether you are aware that there exists a command
pdffonts in Linux which would help you to see what are all the fonts
in a pdf document and whether the fonts are subset/embedded. Here is
the usage and output:

[danube] [10:58 AM] [~/test/pdf]: pdffonts ptest.pdf

name                                 type         emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
LAZERF+LucidaSans-Demi               Type 1       yes yes no      15  0
NIODNL+LucidaSans-TypewriterBold     Type 1       yes yes no      18  0
LMDLRX+LucidaSans                    Type 1       yes yes no      21  0

[danube] [11:14 AM] [~/test/pdf]: 

This command is much better than the font details from Acrobat. Also
another command 'pdfopt' would help you to optimize a pdf document.
The syntax is:

  pdfopt <input.pdf> <output.pdf>

pdfinfo would provide you the information about a pdf file from the
command line:

[danube] [11:19 AM] [~/test/pdf]: pdfinfo ptest.pdf
 Creator:      LaTeX with hyperref and pdfscreen
 Producer:     pdfeTeX-1.10b
 CreationDate: Fri May 16 10:54:00 2003
 Tagged:       no
 Pages:        2
 Encrypted:    no
 Page size:    792 x 612 pts (letter)
 File size:    24353 bytes
 Optimized:    yes
 PDF version:  1.4
[danube] [11:20 AM] [~/test/pdf]: 

Hope this would be useful to those who use free software for text
processing. pdfopt is part of ghostscript and the other two are that
of xpdf.



More information about the Tugindia mailing list