Search code examples
pdfpdf-generationacrobatpdfbox

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?


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.