It would be great if all PDF files could be easily manipulated without relying on bloated, proprietary, update-obsessive applications (I’m looking at you, Adobe).  But the fact that that’s not the case doesn’t mean Ubuntu users are out of luck when it comes to editing PDFs.  Here’s a look at some of the PDF editors available for Linux, and how well they work.

Short backstory: I recently found myself wanting to fill in some text fields in a PDF file that wasn’t designed to be editable.  Although Evince, Ubuntu’s built-in PDF reader, was able to open the file without a problem, it didn’t offer any functionality for adding or modifying text.  Neither did Acrobat Reader, which I also unfortunately have to have installed on my computer.

Not despairing, I fired up the Software Center to see what other applications were out there that might be able to do what I needed without making me resort to the command line.  Here’s an overview of what I found.

PDFedit

The first program I tried was the aptly named PDFedit.  It’s a Qt-based application, meaning that it required me to download a bunch of extra libraries, but it offers a wide range of functionality for modifying and adding both texts and graphics to a PDF file.  For my needs, which were limited to inserting text, it was adequate, although not ideal.

PDFedit screenshot

The add-text feature works well and supports a variety of different fonts, sizes and colors, but I found it difficult to specify exactly where I wanted to add the text.  The application also seemed buggy in that it froze for a few seconds every time I finished adding a new line of text.  And there was no undo feature, which would be nice to have.

For these reasons, it would be difficult to use PDFedit for inserting extensive lines of text to a document.  For other purposes, though, it’s a solid and relatively feature-rich application for modifying PDFs.

flpsed

I found flpsed, a more obscure PDF editor, to be the application best suited to my particular needs.  Adding text is its only main feature, but it does it pretty well.  The arrow keys can be used to specify where exactly text should be entered, which was hugely helpful in keeping everything aligned.

flpsed screenshot

flpsed’s shortcomings include a lack of undo functionality, no way to specify the font of inserted text (only size and color can be changed) and no support for editing existing text in the imported file in any way.  Overall, the application is also very rough around the edges, with an interface reminiscent of 1999.  But for me, it got the job done with little hassle.

GIMP

Another approach for editing PDFs, and the one on which I’ve traditionally relied in the past, is to use the GIMP.  Documents can be imported into GIMP and edited like any other image:

GIMP screenshot

The drawbacks to this strategy, however, are that edited files can’t be exported back to PDF–they can be saved only as images–and documents have to be imported page-by-page.  For my purposes, GIMP was far from ideal, but in other circumstances its ability to import PDF files can be very handy.

OpenOffice

Sun offers a PDF Import Extension for OpenOffice, which I also tried out.  It was easy to install, but my PDF file was a little corrupted when I imported it into OpenOffice, with some parts of the text overlapping and others running off the page:

OpenOffice screenshot

The colliding text was disappointing, because otherwise this seems like it would have been a great way to do what I needed.  The extension developers do warn, however, that some documents work better than others; perhaps I was simply unlucky in having a document that didn’t agree with the importer.  And to the extension’s credit, I found that it was able to import other documents without issue, as shown below:

OpenOffice screenshot

Xournal

The last application I tested was Xournal, which is designed primarily for notetaking on tablet computers and which supports annotating PDFs.  When it came to filling in text fields using the keyboard, Xournal was similar to PDFedit: I could easily select a font, size and color, but it was difficult to specify the exact position of the letters.  For light textual editing, Xournal would be useful, but it’s much better suited for annotating PDFs by hand with a stylus.

Xournal screenshot

Conclusion

In the end, I stuck with flpsed, which ended up working pretty well for my limited needs.  The most promising application that I encountered, however, was OpenOffice, which seems very capable of a variety of PDF-editing tasks as long as it’s able to import the file cleanly.

In the future, I’d love to see edit functionality incorporated into Evince so that Ubuntu would be able to modify PDF files out-of-the-box.  But I’ll be happy enough just to get the visa application that launched this blog post approved.

flpsed

Read More About This Topic

Share This Post

16 Comments on “Editing PDFs On Ubuntu”

  1. Ikhwan Says:

    Mostly for only giving a comment or highlighting, I usually use some software like:
    - Okular
    - Mendeley Desktop (it is a research paper management software, but it has pretty good pdf editing)

  2. Antonio Says:

    Have you ever edited pdfs with Inkscape? The only complaint I’ve ever had is that it separates paragraphs of text into objects for each line

  3. Hmm Says:

    You forgot Inkscape! I use it all the time at work to edit PDFs of schematics.

  4. Christopher Tozzi Says:

    Ikhwan: I tried Okular but it seemed that making comments and highlighting were the only things it could do. Thanks also for mentioning Mendeley–I hadn’t heard of it but it looks like it could be really useful for a number of things I do.

    Antonio and Hmm: I had no idea Inkscape could do PDFs too. Thanks for the tip.

  5. David Says:

    Another one you could have tested: PDFMod.

  6. Christopher Tozzi Says:

    David: thanks for the tip. I actually looked at PDFMod but it appeared it doesn’t really allow you to edit text, just rearrange pages and edit the document’s properties. Plus it depends on Mono :( But in the right circumstances it could certainly come in handy.

  7. charly Says:

    Have U ever tried whyteboard? I use it for putting notes to PDF-documents.

  8. Indian Wedding Videography – To Remember the Emotions- | SimpleImages – Getting Brides Connected! Says:

    [...] Editing PDFs On Ubuntu | WorksWithU [...]

  9. and1v Says:

    Maybe it’s not related to ubuntu but it works for me on every computer – online pdf editor! I use PDFescape http://www.pdfescape.com/open/

  10. Christopher Tozzi Says:

    and1v: good tip. I tried a couple Web-based editors, not including that one, but they couldn’t edit documents, just rearrange pages etc. This one looks more promising.

  11. Pat Says:

    Christopher: Enjoyed your columns on virtualization and editing pdf files. Are you planning to do something similar on basic, user-friendly web design software?

    I read there isn’t a good html editor for Linux, which might explain why one isn’t shipped with Ubuntu.

  12. Christopher Tozzi Says:

    Pat: good idea. I’ll look into that if I can find any decent HTML editors. I looked a few years ago and remember being disappointed.

  13. manuti Says:

    Yes, you forgot INKSCAPE probably the best option.

  14. onewaypockets Says:

    On a daily basis I use a PDF form that I need to modify by inserting many line item prices, descriptions, and names. I tried just about all of the programs you mention above without good success.

    I only program I found that works absolutely perfectly for my needs is “PDF-XChange Viewer”. It’s free, works with Wine perfectly, opens quick, saves modified PDF documents everytime. I stopped looking for other solutions as this program just works (like Ubuntu!). It also works fine on my feeble Atom powered notebook…I use the Ubuntu One cloud to share documents so I have access to client invoices in the field.

  15. Bret Says:

    Haha! I’m on this site trying to find a way to edit .pdf docs from Immigration Services as well. Maybe if gov agencies didn’t rely on proprietary software we could really be free!

  16. Christopher Tozzi Says:

    Bret: I agree. The form I was trying to edit when I wrote this post was from the French government, which is supposedly more open-source friendly than certain North American governments, yet clearly that was not the case with the visa application. So much for liberté, etc.

Leave a Comment

 

Blog-Powered Site
By ContentRobot