how to globally replace font in a PDF

acrobat, pdf, pdf-generation, pdfbox

Solution

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.

Problem

Is it possible, using Adobe Acrobat or another tool, to globally replace a font in a PDF? How can I do this?

Original source