How to edit a PDF
- Drop the PDF on the box above (or press Choose a PDF). The pages appear with a strip of thumbnails on the left.
- Pick a tool. Edit text turns every line of the page into a button: click one, and the line is covered and a text box with the same words opens in its place. Text adds a new box where you click. Image, Rectangle, Line, Arrow, Highlight, White-out, Check, Cross and Date do what they say; Signature opens the signature pad.
- Click an object to select it. Drag it to move it, drag the handles to resize it, press the arrow keys to nudge it (Shift for 10 points) and Delete to remove it. Double-click a text box to edit it again.
- Undo and Redo (Ctrl+Z, Ctrl+Y) walk back through every change. When you are happy, press Download PDF: you get
yourfile-edited.pdf.
What editing existing text really does
A PDF is not a word-processor file: it stores each piece of text as letters placed at fixed positions, and the program that made it usually keeps only the part of the font it needed. So this editor does not change the letters inside the file. When you click a line it covers the old text with the page's own background (table lines, frames, shaded cells and pictures under it stay as they were) and puts a new text box on top, at the same position, in the same size and in the colour the PDF gave the line. The old text is covered, not deleted: it is still in the file and a program that extracts text can still read it.
The new text keeps the look of the line. If the PDF carries the line's own font (most PDFs from Word, LibreOffice and similar do, as a TrueType subset) the editor reads that font program from your file and uses it again, in the text box and in the file you download. Letters the PDF never used from that font are not in it, so those letters are drawn in the closest replacement, and the properties bar says which letters and which font. When the font is not in the file, or the file forbids reusing it, the editor picks a replacement that fits the original name: Carlito for Calibri, Liberation Sans for Arial, Liberation Serif for Times New Roman, Caladea for Cambria, Latin Modern for the LaTeX fonts, DejaVu Sans for Verdana and, for Chinese, the face of the same style (Noto Serif for Song, Noto Sans for Hei, LXGW WenKai for Kai, Zhuque Fangsong for Fangsong; simplified or traditional, bold where the original is bold), and so on, and it tells you so. Size, weight, slope, colour, character spacing and line width are kept too. Reset to original style in the properties bar undoes any later change to the font, size or colour.
If the covered text is sensitive (a name, a number, a price), press Flatten page. That turns the page into one 200 dpi picture with your edits baked in, so the old text is gone for good. The price is that the page text can no longer be selected, searched or copied. Flattening can be undone until you download.
What it can and cannot do
- It edits horizontal and 90-degree text that the PDF stores as text. A scanned page is a picture and has no text to click: add a text box over it instead.
- A retyped line uses its own font when the PDF carries it (TrueType, or PostScript: OpenType-CFF, CFF and Type 1 as in LaTeX papers and many journal PDFs), otherwise a replacement from about three dozen open fonts (Liberation, Carlito, Caladea, TeX Gyre, Latin Modern, STIX, DejaVu, Source Sans and Serif, EB Garamond, Noto, LXGW WenKai, Zhuque Fangsong) or one of the standard PDF fonts. The text boxes you add yourself can use any of them. Each font is loaded (and embedded in the saved PDF as a small subset) only when a line needs it; the Chinese fonts are 7 to 12 MB each. A replacement is never an exact copy of the original: the properties bar says when the original font is not available and when letters are drawn in another font.
- A font the PDF does not embed (or forbids reusing) is replaced by the closest open font. A Chinese line keeps its style (Song, Hei, Kai, Fangsong), its region and its weight, and a bold line uses the bold face; Zhuque Fangsong has no bold, so a bold Fangsong line is drawn regular. A bold look that a program fakes by drawing a regular face with an outline (Word does this to SimSun headings) is not carried over to retyped text.
- Images must be PNG or JPEG; other formats are converted to PNG first. Page images and logos already in the PDF cannot be moved, only covered.
- It cannot open a PDF that is protected by a password. Remove the password in the program that made it, then open the file here.
- Links, bookmarks, the document title and the other pages are kept as they were. Very large PDFs depend on your browser's memory; pages are drawn only when you scroll to them.
Is my PDF uploaded?
No. This page works entirely in your browser: pdf.js draws the pages and pdf-lib writes the new file on your own computer. Your PDF, your signature and everything you type are never sent to a server, and no account is needed. The only things this page downloads from our server are its own program files and the replacement fonts a line needs (0.1 to 11 MB each, loaded when used).
Frequently asked questions
How do I edit text in a PDF?
Open the PDF, choose the Edit text tool and click the line you want to change. The line is covered and a text box with the same words opens in its place; retype it and click away. The new text keeps the original font, size and colour when the PDF carries the font, and otherwise uses the closest replacement and tells you so.
Does editing remove the old text from the PDF?
No. The old text is covered by the page's own background, not deleted, so a program that extracts text can still read it. Use Flatten page on that page when the covered text is sensitive: it turns the page into a picture so the old text is really gone.
Why does the font look different after I edit a line?
It should not be: the editor reuses the line's own font when the PDF carries it, with the original size, colour and spacing. A PDF keeps only the letters it used, so a letter that was never in the line is drawn in the closest replacement font (the properties bar names the letters and the font). If the font is not in the file, or forbids reuse, a replacement such as Carlito for Calibri or Liberation Serif for Times New Roman is used and the bar says so. Fonts in the file that are PostScript (Type 1, CFF) are reused as well. Reset to original style undoes your own changes to the font, size and colour.
Does the editor keep the typeface of Chinese text?
Yes, as far as it can. If the PDF carries the Chinese font (SimSun, Microsoft YaHei and similar usually are embedded) the line keeps it. Otherwise the editor picks the face of the same style: Noto Serif for Song fonts (SimSun, PMingLiU), Noto Sans for Hei fonts (SimHei, Microsoft YaHei, PingFang, JhengHei), LXGW WenKai for Kai (KaiTi) and Zhuque Fangsong for Fangsong. Simplified or traditional is taken from the font name, or from the characters when the name does not say, and a bold original gets the bold face. Characters the embedded font never contained are drawn in the same style, and the properties bar names them.
Can I edit a scanned PDF?
A scan is a picture of a page, so there is no text to click. Use the Text tool to type over it, or the White-out tool to hide part of it first.
Can I add an image or a logo?
Yes. Press Image, choose a PNG or JPEG file, and drag and resize it on the page.
Can I edit a PDF with a password?
Not here. Remove the password in the program that made the file, then open it. This editor refuses protected PDFs with a message instead of saving a broken file.
Is my PDF uploaded?
No. The editing and the saving happen in your browser. Nothing is sent to a server.