Skip to content
Text to PDF

Guide

How to edit text in a PDF

· 7 min read

A PDF is not a document the way a .docx is. It is a list of drawing instructions — put this glyph at this coordinate, in this font, at this size — and then the next one. There are no paragraphs to reflow, no styles, frequently not even words, just positioned characters. That is why editing the text is a harder request than it sounds, and why the right method depends entirely on which kind of PDF you are holding.

First, work out which kind of PDF you have

Open the file in any reader and try to drag-select a sentence. The result tells you which of the four methods below is even available to you:

  • Individual words highlight. There is a real text layer. Every method here is on the table.
  • Nothing highlights, or the whole page highlights as one block. The page is a picture — a scan, a phone photo, or an export that flattened everything. You need OCR before anything else.
  • Text selects but pastes as gibberish. The embedded font has a broken or missing character map. Editors will fight this too; rebuilding usually costs less time than fixing it.

Method 1: edit in place with a PDF editor

This is what most people mean by editing a PDF: click into the text and change it, leaving the rest of the page alone. What you get depends on the tool.

Acrobat Pro

The only tool that reliably reconstructs paragraphs and reflows the surrounding lines when your replacement is longer than the original. It is a subscription, at roughly twenty dollars a month, which is a lot for one date change and nothing at all if you do this weekly.

LibreOffice Draw — free, desktop

Draw imports each PDF page as a canvas of text boxes you can click into. For swapping a name, a figure or a date it is genuinely good, and nothing leaves your machine. Longer edits expose the limitation: each box is laid out independently, so text that outgrows its box does not push the next paragraph down — it overlaps it. Exporting also re-encodes the whole file, so expect a different file size and, occasionally, different line breaks elsewhere on the page.

Browser-based editors

Fast and require no install, but check two things before you use one on anything private. First, most of them upload the file to a server to do the work. Second, the free tier is usually a couple of documents a day, and some stamp the result. Neither is a problem for a flyer; both are for a payslip.

The font trap, in every editor. A PDF normally embeds a subset of each font — only the glyphs the document actually used. Type a character that was never in that subset, and the editor has to substitute another font for it. The line comes out at a slightly different weight or width, and nothing warns you. Always compare the edited line against the one above it.

Method 2: annotate instead of editing

If the change is really “add a note”, “sign here”, “strike this clause” or “fill this field”, you do not need a text editor at all. Preview on macOS, the reader built into Microsoft Edge and the one in Firefox all add text boxes, highlights and freehand drawing, and they save back into the same PDF for free.

The catch is that annotations sit on top of the document rather than in it. That is fine for a signature and dangerous for anything you meant to remove: a white rectangle drawn over a paragraph hides it on screen only. The text underneath is still in the file and comes straight back out with copy-paste, a text extractor, or a search index. For anything sensitive, use a tool with an actual redaction feature — one that deletes the underlying content — or use the next method, where the passage you removed was simply never written.

Method 3: rebuild the PDF from its text

This is the route people rarely consider, and for a document that carries text rather than design it is usually the fastest and always the cleanest. Instead of fighting the page, you take the words out, edit them where editing is easy, and make a new PDF.

  1. Open the PDF, select everything with Ctrl+A (Cmd+A on a Mac), and copy.
  2. Paste into any plain-text editor — Notepad, TextEdit in plain-text mode, VS Code — and make your changes there. Find-and-replace works across the whole document, no font gets substituted, and nothing overlaps anything.
  3. Paste the edited text into the text to PDF converter and download the result. The conversion runs in your browser, so the document you just edited is not uploaded anywhere.

What you gain: one consistent font, correct wrapping, page numbers if you want them, a file that is usually a fraction of the original size, and text that stays searchable and selectable. What you lose: the original layout, completely. That is the whole trade, and it is a good one precisely when the layout was never doing any work.

Worth rebuilding: meeting notes, transcripts, chat and email exports, log files going into a ticket, code listings, terms and conditions, documentation, book chapters, anything that started life as plain text and got printed to PDF along the way.

Not worth rebuilding: invoices, forms, certificates, anything with a letterhead, multiple columns, tables or images. Strip the layout out of those and you have destroyed what made them readable — edit those in place with Method 1.

If the text you want is already saved on disk rather than sitting on your clipboard, the text file to PDF converter takes up to 20 files at once and can merge them into a single document, each file starting on a fresh page.

Method 4: scanned PDFs need OCR first

If nothing highlighted in the selection test, the page is an image and there is no text to edit yet. Optical character recognition reads the pixels and writes a text layer behind them. Acrobat does it, Tesseract does it free on the command line, and the quickest free route for a one-off is to upload the PDF to Google Drive and open it with Google Docs, which OCRs it on the way in.

OCR is never exact. Check digits, proper nouns and anything in a table by eye before you trust the output — a misread figure in an invoice is worse than no OCR at all. Once you have the text, you are back in Method 3 territory: edit it where editing is easy, then convert it into a clean PDF.

Why this is harder than it should be

Inside a PDF, a page is a content stream: a sequence of operators that set a font, move to a coordinate and draw a run of glyphs. A run is not a word and not a sentence — it breaks wherever the typesetter adjusted spacing, so a single line of prose can be a dozen separate draws, each with its own offset. The file stores no information about where a paragraph starts or ends, because a printer never needed to know.

Every in-place editor therefore has to guess that structure back: group nearby draws into lines by their vertical positions, group lines into paragraphs by their spacing and indentation, then work out how to re-flow them when your edit changes the width. Add subset fonts with custom encodings, compressed object streams and a cross-reference table that has to be rewritten on save, and the surprise is not that PDF editing is fiddly — it is that it works as well as it does.

Which method to pick

Your PDFChange you needUse
Text-based PDFA date, a name, a priceIn-place editor (Method 1)
Text-based PDFA note, a signature, a crossed-out lineAnnotation (Method 2)
Text-based PDFRewriting whole paragraphsRebuild from the text (Method 3)
Text-based PDFRemoving sensitive informationReal redaction, or rebuild (Method 3)
Scanned PDFAnything at allOCR first (Method 4)

Rebuilding? The converter is one click away

Paste your edited text into Text to PDF and the preview appears as you type — A4, Letter or Legal, your choice of font and margins, page numbers optional. It is free, needs no account, adds no watermark, and runs entirely in your browser, so the document never leaves your device.

Questions about editing PDF text

Can I edit text in a PDF for free?

Yes, with caveats. LibreOffice Draw edits PDF text in place on the desktop at no cost, and it is the best free option for changing a date, a name or a price. Browser-based editors are free up to a daily cap and usually require the file to be uploaded. For a document that is mostly text, copying the text out, editing it in a plain editor and converting it back to PDF is free, unlimited and gives a cleaner result than any of them.

Why can't I select the text in my PDF?

Because there is no text in it. A PDF made by a scanner or a phone camera holds one photograph per page, so a reader has nothing to select — the letters are pixels. Run it through OCR to build a text layer first; until then no editor can change a word of it.

Why does my edited line look different from the rest of the page?

The PDF embeds a font subset — only the glyphs the original document actually used. Type a character that was not in that set and the editor has to substitute a different font for it, at a slightly different weight or width. Nothing warns you, so compare the edited line against the one above it before you send the file.

Is drawing a white box over text the same as deleting it?

No, and this is the mistake that leaks documents. A white rectangle is drawn on top; the text underneath is still in the file and comes straight back out with copy-paste or a command-line extractor. Use a tool with real redaction, which removes the content itself, or rebuild the document from edited text so the removed passage was never written.

How do I edit a PDF without uploading it anywhere?

Use desktop software — LibreOffice Draw, Acrobat, or Preview on macOS for annotations — or a browser tool that runs client-side. Most web-based PDF editors send your file to a server to process it, which is worth knowing before you edit a contract or a payslip on one.

Can I edit a PDF in Word?

Word will open a PDF and convert it to an editable document, which works acceptably for simple one-column text and falls apart on anything with columns, tables or a letterhead. You then have to export back to PDF, and the result rarely matches the original layout. Treat it as a rebuild, not an edit.

Keep reading