Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to globally replace font in a PDF

Is it possible, using Adobe Acrobat or another tool, to globally replace a font in a PDF?

How can I do this?

like image 247
incandescentman Avatar asked Jul 17 '13 01:07

incandescentman


People also ask

How do I change font on entire PDF document?

Choose Tools > Edit PDF > Edit . The dotted outlines identify the text and images you can edit. Select the text you want to change. In the right-side Format panel, select a font, font size, or other formatting options.

How do you replace all words in Adobe Acrobat?

Open the Find dialog (Ctrl or Cmd + F). Enter "XYZ". For the replace with use "ABC". Click "next" and then "replace" .

How do I change font in Adobe PDF?

Go to Edit > Preferences > Content Editing > Font Options. Select an appropriate font in the Default font for Add Text drop-down list. Select an appropriate font size in the Font Size drop-down list. Click OK.


2 Answers

Without seeing your particular file it is hard to say that this would definitely work. But, typically a font is defined like this:

/Resources << 
  /Font << /F13 1 0 R >> 
>>

1 0 obj << 
  /Type /Font
  /Subtype /Type1 
  /BaseFont /Helvetica
>> endobj

The font resource is then used as /F13 12 Tf wherever text is drawn with it.

If you were to change the /BaseFont in the definition, it would affect all uses of that font resource.

like image 50
Russell Zahniser Avatar answered Nov 16 '22 01:11

Russell Zahniser


You can upload a PDF to Google Drive, and then open it. Once opened, you'll see the option to "Open in Google Docs": click it.

After it's done loading, select all text (CTRL+A), and then change the font on the menu above to the one you want. After that's done, you can do File -> Download -> PDF. Google Docs will do its magick, and give you a PDF with the modified font. New pages will be automatically added if the fonts are different sizes.

like image 24
Pinkdev1 Avatar answered Nov 16 '22 02:11

Pinkdev1