Brief: 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.
Sometimes you run up in a situation when you need to edit a PDF file in Linux. Like the other day, I was going through an old report which was in PDF format and I saw some typos in it. I was like, I should edit this report but I just had the PDF file. Question arises, how to edit PDF files in Ubuntu?
Now, I remembered that few years ago I used a program called pdfedit but it’s not available in Ubuntu or in any other Linux distributions anymore.
Does demise of pdfedit mean that you cannot modify PDFs in Linux?
Times have changed now. Earlier you needed to have a dedicated application for this purpose. Don’t get me wrong, there are still plenty of tools to edit PDF files in Linux, but you don’t really need them, well not in most of the cases because LibreOffice does the job for you.
Surprised? Yes, the popular Linux alternative to Microsoft Office can also edit PDF files. And perhaps this is the easiest way for editing PDF files.
How to edit PDF Files in Linux
Most of the Linux distributions such as Ubuntu, Linux Mint, Fedora etc has LibreOffice as default office suite. If you do not have LibreOffice, install it from the link below:
Once you have downloaded and installed LibreOffice, start it. On the welcome screen, click on Open File to open the desired PDF file to edit.
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.
You can go to the specific pages and edit the PDF file there. Just click on the text which you want to edit.
Once you are done with the edits, instead of saving the file (using Ctrl+S) option, click on Export to PDF button.
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. The reason is that if you try to save it, instead of exporting it to PDF, it will only give you option to save it as open graphics formats. which I presume is not what you want it to be.
I also noticed that the edited PDF was smaller in size in comparison to the original one. It saved 1.6 MB file in 1.4 MB file. Needless to mention that you can edit the just edited PDF file as many times as you want.
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 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 very 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 in Linux earlier? Which tool did you use? How does it compare to LibreOffice Draw? Do share your views.