Skip to content

How to change text in a PDF and keep the same font

Updated

Changing a word in a PDF is easy. Changing it so nobody can tell it was changed is the hard part. The usual giveaway is the font: the new word comes out in Arial or Helvetica while the rest of the line is in something else, a point bigger or a hair lower.

This guide explains where the font goes wrong and how to keep it.

Where the font in a PDF comes from

A PDF can carry its fonts inside the file. When it does, the file usually holds only a subset: the letters the document happened to use, and nothing else. If the original says "Invoice 2041" and you want "Invoice 2047", the 7 may simply not be in the file.

That is why so many editors give up and switch to a default font. They can see the name of the original typeface, but they cannot draw a letter that was never stored.

Some PDFs do not carry their fonts at all and rely on the reader's computer to have them. Then the editor has to find the same face, or one close enough, by itself.

What a good match needs

To look untouched, the new text has to agree with the old on:

Miss any one of these and the eye catches it, even if the reader cannot say why.

How to do it in PencoPDF

The PDF text editor works line by line:

  1. Open Edit PDF text and choose your file.
  2. Click the line you want to change. Click again to put the cursor in it.
  3. Retype the words and click away.

The new words are set in the page's own font when the letters are in the file. When they are not, PencoPDF picks the closest face it has by name and by the width of the letters, so line lengths stay the same. It keeps the size, the weight, the baseline, the colour and the word spacing of the line you edited, and the old letters are removed from the file rather than covered over.

When the match cannot be perfect

Things that make the font go wrong elsewhere

If the edited line still looks off, why edited PDF text looks wrong goes through each cause and what to do about it.

More guides

Every guide