# PDF editor

Edit the text of a PDF for real, add text and pictures, draw, highlight, hide areas for good, and rotate, reorder, add or remove pages.

- Open the app: https://openlibs.dev/en/app/pdf-editor/
- library for developers: https://openlibs.dev/en/lib/pdf-editor/

## PDF editor: instructions

### Getting started

Open a PDF (or start a new empty one) in “Import” in the toolbar. The page is on the right (on top on a phone), the tools on the left (below on a phone). Everything works in your browser: the file is not uploaded anywhere.

### Editing text

With “Edit text” chosen, the paragraphs of the page are outlined. Click one, change the text right on the page, then click outside the box to apply it (Esc cancels, Ctrl+Enter applies). The old text is really removed from the file and the new text is written in its place; it wraps to the paragraph's column, and what is below moves down or up.

### Fonts and style

With “Keep the document's look” on, the edited text stays in the paragraph's own font when that font has every letter you typed; otherwise the closest free font is used (sans, serif or monospace, bold and italic kept). Only a new size or color is applied. Turn it off to use the font, size, bold, italic, underline and color set in “Text and font”.

### Adding text

Choose “Add text”, click where the text should start and type; it uses the settings of “Text and font”. Only fonts that can be embedded in a PDF are listed: Zakon Text, DejaVu Sans, Serif and Mono, and any TTF or OTF font you upload.

### Drawing and highlighting

“Draw” adds a freehand line in the chosen color and width. “Highlight” marks the text lines you drag over (on empty space it adds a colored box). Both are annotations: other PDF programs show, edit and print them.

### Hiding for good

“Redact” removes the text, images and drawings under the area you drag over from the file itself: they cannot be copied, searched or recovered. Turn on the black box option to mark such places.

### Images

Choose “Image”, pick a PNG or JPEG file, then drag a rectangle on the page: the picture is placed in it with its proportions kept.

### Pages

The thumbnails show every page; click one to open it. The buttons above them rotate the page, move it earlier or later, insert a blank page after it, duplicate it, add the pages of another PDF at the end, or delete it. Below the page are the page arrows and the zoom.

### Saving, undo and journal

In “Export” download the edited PDF or the current page as a PNG picture. Undo and Redo work for every change, and your work is kept in the browser: “Restore unsaved work” in Import brings it back. Ctrl+Z / Ctrl+Y undo and redo, Ctrl+S opens Export, PageUp / PageDown change the page; the Journal lists actions and errors.

