How to Edit a PDF on Linux

There is no Adobe Acrobat for Linux: Adobe lists only Windows and macOS. LibreOffice Draw splits PDF text into separate boxes, and Okular adds notes on top. Pdfable edits the existing text in any browser on any distro: click it, type, press Ctrl+S. No package to install.

Maintained by the Pdfable team

or drag a file anywhere on this pageFiles stay on your device

Why is it hard to edit a PDF on Linux?

The best-known PDF editor isn't an option. Adobe publishes Acrobat's technical requirements for Windows and macOS, and there is no Linux build. Linux users combine free tools instead, and each one covers part of the job.

LibreOffice Draw opens a PDF as a drawing, and the text arrives as separate text boxes, so changing a sentence means editing fragments. That works for a short label, but a contract clause or a paragraph in a report quickly becomes a puzzle of boxes. LibreOffice added Consolidate Text for this. Its help page says the command "is especially useful for editing PDF documents with LibreOffice Draw", and that after joining the boxes "you must manually fix paragraphing".

Okular, KDE's document viewer, is excellent for reading: its site lists PDF, EPub, DjVu and Markdown documents, plus images and comic book files. Its Annotation mode adds inline and pop-up notes, highlights and underlines. Those marks sit on top of the page; the original text stays as it was.

qpdf works at a different level. Its documentation describes "structural, content-preserving transformations": merging, splitting, password protection and web optimization. It deliberately "knows nothing about the semantics of PDF content streams", which is where the words on a page live.

How to edit a PDF on Linux in 4 steps

  1. Open your usual browserAny distro, any desktop. Open this page in the browser you already use and drag the PDF from your file manager, or click Choose PDF.
    Choose PDF upload area on Pdfable in a desktop browser
  2. Edit the paragraph as one blockClick the text and type. The whole paragraph reflows together, so there are no text boxes to stitch back together.
    A long paragraph in a sample lab checklist reflowing as it is edited in Pdfable
  3. Redact or reorganizeUse Mark up → Redact to remove a line for good, or the Pages column to rotate, move or delete pages.
    Pdfable Mark up menu with Redact selected over a serial number
  4. Export with Ctrl+SYou get "your-file (edited).pdf" in your downloads folder, ready to attach or print.
    Edited sample checklist with a rotated page in the Pdfable Pages column, ready to export

LibreOffice Draw, Okular, qpdf or Pdfable?

What it isWhat it does to a PDFThe existing textHow you get it
LibreOffice DrawDrawing app in LibreOfficeImports pages as editable drawingsEditable as separate text boxes; join them with Consolidate TextLibreOffice package, free and open source
OkularKDE document viewerAdds notes, highlights and underlinesStays as it is; marks go on topKDE app package, free (GPLv2+)
qpdfCommand-line tool and C++ libraryMerges, splits, encrypts and optimizes filesNot changed; qpdf doesn't edit page contentCommand-line package, free (Apache 2.0)
PdfableBrowser-based PDF editorEdits text, images and pages, then exports a PDFClick a paragraph and type; it reflowsNothing to install; open it in your browser

One browser tab, any distro

Pdfable is a complete PDF editor that runs in the browser you already use, on Ubuntu, Fedora, Debian, Arch or anything else. There is no Flatpak, Snap or .deb to install, no dependency to resolve, and nothing to ask an administrator for on a shared lab machine. Your PDF is processed locally in the tab and never uploaded.

Because it lives in a tab, it fits GNOME, KDE Plasma, Xfce or a tiling window manager equally well. Here is what it saves you from piecing together:

  • Text: click a paragraph, type, and it reflows as one block instead of loose boxes.
  • Find & replace: change a word across all pages, one match or every match.
  • Images: add, replace, flip, rotate, duplicate or reorder pictures.
  • Redact: remove sensitive content from the exported file for good, not just cover it.
  • Sign: type your name or draw it with a mouse or touchpad.
  • Pages: rotate, move or delete pages, or drag thumbnails into order.

Keyboard users get Ctrl+Z / Ctrl+Shift+Z for undo and redo, Ctrl+S to export, and Ctrl+= / Ctrl+− / Ctrl+0 for zoom.

Common Linux PDF jobs, and where to do them

  • Fix a word or a figure: Pdfable. Click the line and type; there is nothing to import or consolidate.
  • Annotate a paper for a reading group: Okular's Annotation mode is built for it, and Pdfable's highlights and notes work too.
  • Merge, split or encrypt from a script: qpdf, in a shell script or a Makefile.
  • Rearrange a page as a drawing: LibreOffice Draw.
  • Remove a phone or account number for good: Pdfable's Redact, which deletes the content from the exported file.

Pdfable and qpdf work well together

If you live in the terminal, keep qpdf for structure and use Pdfable for the words:

  1. Combine the source files with qpdf's page selection, for example qpdf --empty --pages a.pdf b.pdf -- combined.pdf.
  2. Open combined.pdf in Pdfable, fix the text, redact anything that shouldn't go out, and export.
  3. Run qpdf on the exported file for any structural step you still need, such as encrypting it before you send it.

Changing a signed contract? Read How to edit a signed or secured PDF first, because any edit invalidates a digital signature. Pages from a flatbed scanner need one extra step: turn a scanned PDF into editable text with Recognize text.

If you get stuck

  • Text won't select. The page is probably a scanned image; choose Recognize text from the More (…) menu first.
  • The PDF asks for a password. Enter it in the Unlock PDF box and the document opens for editing.
  • You need a typed or drawn signature. Choose Signature in the toolbar, type your name or draw it, place it, and export.
  • See Edit a PDF for everything the editor does.

How to edit a PDF on Linux: FAQ

How do I edit a PDF on Linux?

Open Pdfable in your browser, choose your PDF, click the text you want to change and type. Add images, markup or a signature from the toolbar, then press Ctrl+S to download the edited file.

Can I edit PDF text on Ubuntu without installing anything?

Yes. Pdfable runs in the browser, so on Ubuntu or any other distro you can change existing text, add images and sign without installing a package.

Is there a command-line way to edit a PDF on Linux?

For structure, yes: qpdf merges, splits, encrypts and optimizes PDFs from the terminal. It doesn't rewrite the words on a page, so use Pdfable in your browser for text changes.

Why does LibreOffice Draw break my PDF text into separate boxes?

Draw imports a PDF as a drawing, so text arrives as separate text boxes. Its Consolidate Text command joins selected boxes, and you then fix paragraphs by hand. Pdfable edits each paragraph as one block that reflows as you type.

Are my files uploaded?

No. Pdfable opens, edits and exports the PDF inside your browser on your Linux machine.

Ready to edit your PDF?

Published · Reviewed