How To Edit PDF Files In Linux In The Easiest Way Possible

How to edit PDF files in Ubuntu Linux

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?

Certainly not.

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:

Download LibreOffice

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.

Open PDF files in LibreOffice

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.

Suggested read
How To Install Visual Studio Code On Ubuntu

editable PDF files in Ubuntu Linux

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

editing PDF files in Ubuntu

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

Save modified 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. 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.

don't save edited pdf files in Linux

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

I tried to edit files of 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 originally created as text and saved as PDF can be edited very easily but it’s not true in 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.

Comments

  1. I have Lubuntu 16:04 and Libre office 5.1.6.2 but draw wasn’t installed by default, so I installed from the software centre. I have a pdf text document to edit and so I will see how it goes……….

    • I haven’t tried Libreoffice or Gimp to manipulate a pdf file and yes D Gerrero maybe you’re right. Just the same D., Abhishek Prakash was just trying to give some helpful advice even though he is the creator of Foss and could have here promoted his own program, instead he offered another solution, Libreoffice. Perhaps his program FOSS is really good and maybe we should check it out. Just the same, it seems to me, that it takes a big man to do what he did, no?

      D., really, I’m not trying to put you down. You’re only speaking your mind, and I thank you for that as all of us have something good to bring to the table. Perhaps, if you could direct us to a website that could help us understand more about what you are saying about Gimp and how to use it with pdf files that would be great.

      Sorry, hope I didn’t offend anyone here, including you D. Its just that, maybe we could be a little kinder in how we comment. I’m sure you meant well D.

      Let us all learn in a fine way from one another.

      Personally, since I’m writing now, I would like to thank you Abhishek Prakash for sharing what you did here on this site with the whole world.

      Sincerely Mark

  2. I added my signature to documents by using a scanned image that I removed all background noise from to leave just the “pen” writing. Simply insert this image, resize and place accordingly and then right click -> arrange -> send to back. Looks like you have physically signed on the line.

  3. Thanks Abhishek. Excellent advice. I had no unexpected delays when opening the files. Worked like a charm.

Leave a Reply

Your email address will not be published. Required fields are marked *

[i]
[i]