It is extremely difficult to replace a font that is embedded into a PDF. I'm not aware of any free-as-in-speech (GPL-licensed) or free-as-in-beer (gratis) software that could probably do that (by un-embedding the font first, and then re-embed a sustitute font). I only know of two commercial products which do that: callassoftware.com's pdfToolbox4 and Enfocus' PitStop (of course, there surely are others, but I'm not aware of them, and these two are the market leaders here).
Here is a way to extract an embedded font from a PDF using Free Software. Be aware, that you only are legally allowed to do that, if the font's license does not forbid it. In the Ghostscript source code repository lives a PostScript program utility named extractFonts.ps
which can help here:
- Install Ghostscript. Use the latest version, 8.71.
- Download the file http://svn.ghostscript.com/ghostscript/trunk/gs/toolbin/extractFonts.ps
- You may want to read comments contained in the downloaded file.
Run the following command in a DOS box (cmd.exe):
gswin32c.exe ^
-q ^
-dNODISPLAY ^
C:/path/to/extractFonts.ps ^
-c "(c:/path/to/your-pdf-file.pdf) extractFonts quit"
- Take good note of any warning or error messages the command may spit out.
- Successfully extracted fonts will now be stored in your current directory using the same name as in the PDF.
(Be aware that extracting fonts here does not mean removing the fonts from the PDF, but to create fontfiles which are copies of the ones embedded into the PDF.)
Here is another building block that may contribute to achieve what you want. You may want to de-compress all compressed parts/streams of your PDF, so you can more easily edit the file with a simple text editor. (Warning: editing PDFs is not a simple, straightforward task --- your editing efforts will require quite substantial knowhow and smarts about PDF file format internals.)
This trick also uses a utility from Ghostscript's Subversion toolbin
sub-directory.
- Download the file http://svn.ghostscript.com/ghostscript/trunk/gs/toolbin/pdfinflt.ps
- You may want to read comments in the downloaded file.
Run the following command in a DOS box (cmd.exe):
gswin32c.exe ^
-- ^
c:/path/to/pdfinflt.ps ^
c:/path/to/your-pdf-file.pdf ^
c:/path/to/your-pdf-file-decompressed.pdf
This command will try to decompress all 'flate'-compressed streams. (If you are unlucky, your file will also contain streams using other compression methods (such as 'zip') which will remain unchanged by this command.)
1@bignose have you found a solution to this? – Jubei – 2015-01-22T03:42:29.710
Which PDF viewing or editing software are you using? Which font is it that the form fields are using? And is that font embedded after you saved the PDF form to a different filename? – Kurt Pfeifle – 2010-07-21T13:41:24.490
Thanks for the comment, I've expanded on the description to answer your questions. – bignose – 2010-07-22T06:31:52.990
One more question: can you name the glyphs (roughly meaning: letter shapes) which you want to put into the form fields and which do only show up as gaps? – Kurt Pfeifle – 2010-07-25T13:58:09.997
Does your Caliban font look like this: http://www.linotype.com/de/202/caliban-schriftfamilie.html or rather like this: http://www.fontspace.com/george-williams/caliban
– Kurt Pfeifle – 2010-07-25T14:01:27.310