Edit PDF Files in Linux Easily With LibreOffice

Wondering how to edit PDF files in Linux? At times, you don’t even need PDF editors in Linux because LibreOffice Draw can help you with that.
Warp Terminal

There are several PDF editing tools available for Linux. Some will allow you to annotate and add comments in PDF, while some allow you to rearrange the pages and merge or split PDF files.

What tool you use depends on the kind of editing you want to do.

If your aim is to fix some typos in a primary text PDF file, you don't need a specialized software.

LibreOffice can do that for you. Surprised? Yes, the popular Linux alternative to Microsoft Office can also edit PDF files.

The LibreOffice Draw tool is capable of editing the text in most PDF files.

Let me show you how.

Edit PDF Files with LibreOffice

The LibreOffice Draw is not a full-fledged PDF Editor. It can handle text-based PDF files for minor editing. However, you are better off with a proper tool if you want serious PDF editing.

Most of the Linux distributions, such as Ubuntu, Linux Mint, Fedora, etc. have LibreOffice as the default office suite. If you do not have LibreOffice, install it first.

Recommended Read

How to Install the Latest LibreOffice on Ubuntu
Want the latest and greatest of LibreOffice on Ubuntu? Here’s an easy method for you.

Once you have downloaded and installed LibreOffice, start it. On the welcome screen, click on Open File.

Click on Open File on LibreOffice main page to select the required PDF file to edit.
Click on Open File

Now, make sure you have selected the option to see “All Files” so that you can see files with all the extensions.

Select "All Files" from the Drop Down to make sure that you see all the files
Select "All Files" from the Dropdown

Select the required PDF file that you want to edit and click open.

LibreOffice will take some time to load the PDF file. The file will be opened in Draw, part of the suite that manages graphics.

Once loaded, you can immediately see that the file is in editable mode. You can also see that it recognizes the table of contents very well. Of course, it depends on the original PDF file if it had a table of content or not.

A Sample PDF File Opened in LibreOffice Draw
A Sample PDF File Opened

You can go to the specific pages and edit the PDF file there. Just click on the text which you want to edit.

On the sample document, a heading is edited for example purposes.
Editing a heading

Once you are done with the edits, instead of saving the file (using Ctrl+S) option, click on the "Export Directly as PDF" button on the main toolbar.

Click on Export directly as PDF button on LibreOffice main toolbar
Click on Export PDF

It will export the file as PDF again.

Note that even after exporting the changed file as PDF, it will still ask you to save the file when you try to close LibreOffice Draw. No need to tell you that you don’t need to save it anymore.

When try to close the edited document after exporting, LibreOffice will ask to save the file.
Asking to save the file

The reason is that if you try to save it, instead of exporting it to PDF, it will only give you the option to save it in open graphics format, which I presume is not what you want it to be.

If you save the file, it will be saved as an ODG format
Saves the file as ODG

I also noticed that the edited PDF was smaller in size in comparison to the original one. It saved the 859 KB file to a 555 KB file. Needless to mention that you can edit the just edited PDF file as many times as you want.

Sometimes, you may require more settings to tweak while exporting the edited document to the PDF format. In this case, instead of clicking the “export directly as PDF” button on the toolbar, go to Files > Export As > Expert As PDF.

On the menu, click on File, and then select Export as PDF from Export As option.
Click on Export as PDF

Here, you will get a PDF export dialog box, where you can set the required settings for your final PDF output.

Additional Settings for exporting as PDF dialog box in LibreOffice Draw
Export as PDF Settings

Once tweaked the settings, click on the “Export” button.

Limitations of editing PDF files with LibreOffice

LibreOffice can also merge multiple PDF files among other PDF editing tasks.

I tried to edit files in a few other formats, such as EPUB. But unfortunately, it did not work the same. Also, this PDF editing won’t work on scanned documents. So the files which were created as text and saved as PDF can be edited easily, but it’s not true in the case when you have scanned document because those pages are actually images and would need tools that could apply optical character recognition. But you won’t get that with LibreOffice.

I hope this tool helped you to modify PDF files in the easiest way possible. Have you managed to edit PDF files on Linux earlier? Which tool did you use? How does it compare to LibreOffice Draw? Do share your views.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️‍♂️

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

It's FOSS

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.