Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a pdf file, and I want to know if I can embed/subset all its fonts into PDF file itself? Is there any tool supporting this operation?

share|improve this question
add comment

3 Answers 3

up vote 1 down vote accepted

You can export PDFs from InDesign with the fonts embedded, but that's assuming you have the fonts on your computer and can direct the program to those font files. I'd imagine Acrobat Pro supports this too. I'm not sure about editing the fonts in a PDF file that's already been generated, but if there's any tool that will let you do it, it's probably Acrobat Pro (not to be confused with Acrobat Reader).

share|improve this answer
add comment

Ghostscript can do that. One condition though: the font(s) referenced by the original PDF need to be present on the system where you run Ghostscript.

Here is an example command to run on Windows:

gswin32c.exe ^
  -sFONTPATH=c:/windows/fonts;d:/some/dir/with/more/fonts ^ 
  -dCompatibilityLevel=1.4 ^
  -dPDFSETTINGS=/prepress ^
  -dCompressFonts=true ^
  -dSubsetFonts=true ^
  -dNOPAUSE ^
  -dBATCH ^
  -sDEVICE=pdfwrite ^
  -sOutputFile=output.pdf ^
  -c ".setpdfwrite <</NeverEmbed [ ]>> setdistillerparams ^
  -f input.pdf

The resulting output.pdf should have all fonts embedded which input.pdf didn't have. Just make sure that -sFONTPATH=... contains (at least) one directory where the missing fonts are found by the gswin32c command.

share|improve this answer
1  
(Wish I could upvote twice for not showing a scrollbar! Nice, I never knew Windows could do that!) –  Arjan Dec 19 '10 at 13:08
    
@Arjan: ..could do what?! –  Kurt Pfeifle Dec 19 '10 at 13:57
3  
:-) Use the ^ to avoid loooong lines! –  Arjan Dec 19 '10 at 15:29
    
@Arjan: ah... OK, feel free to upvote some other, random [pdf] or [ghostscript] answers of mine then ;-) –  Kurt Pfeifle Dec 19 '10 at 19:01
1  
(Pssst, I already did, but cannot go into extremes due to the fraud detection mechanisms. Are you somehow involved in Ghostscript? And if yes: that's nothing to be ashamed of, is it?) –  Arjan Dec 19 '10 at 19:08
show 1 more comment

The documentation for your PDF generation tool will explain how to enable embedding of fonts where possible. Be sure to follow the license of all fonts embedded in this manner.

share|improve this answer
    
PDF is not made by me. I just want to modify it. –  user55450 Dec 9 '10 at 9:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.