Is it possible, using Adobe Acrobat or another tool, to globally replace a font in a PDF?
How can I do this?
Is it possible, using Adobe Acrobat or another tool, to globally replace a font in a PDF?
How can I do this?
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.
Replacing a font in a PDF is generally not a good idea. You should not expect behavior similar to replacing a font in e.g. a MS Word document. In PDF, individual glyphs or runs of glyphs are positioned absolutely. At the time the PDF was generated, this positioning was based on the respective widths (and other metrics) of the glyphs in the used font. When you replace a font, the position of the glyphs will remain unchanged, but in general the widths of the glyphs will differ from those in the original font. This will cause distorted text formatting like this:
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.
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.
© 2022 - 2024 — McMap. All rights reserved.