This is as days pass by, by Stuart Langridge

And this is Editing a PDF (sorta) on Ubuntu, written , and concerning Howtos, Linux

I have more than once had to fill in a paper form for people in America. Obviously, doing such things is a huge pain, because actual paper mail -- with stamps -- isn't just so last century, it's the century before that. You know, the one with robber barons and Lord Kelvin and workhouses. Put a stop to it. Email. Email, I tell you. It's gonna catch on, just you wait. Anyway, a fair few American corporations (and, wouldjabelieveit, the American government too) provide PDF versions of their forms so you can download them and print them out at your leisure. They're still designed to be printed and written on, though -- they're not officially PDF "forms" in the sense that the PDF reader can give you textboxes and an FDF file to fill them in, they're just PDF documents. Nonetheless, I find myself wanting to be able to open them up in OpenOffice.org and edit them. Now, you can't do that. (Well, you might be able to, but it's hard.) All I actually need to do is overtype them. So what I do is:
  1. Convert the PDF to an EPS file with pdftops: pdftops -eps AmericanGovernmentForm.pdf (the pdftops program is in the poppler-utils package)
  2. Create a new empty document in OpenOffice.org and drag the new .eps file onto it, which will embed it as an image
  3. Use Insert | Frame to draw a text frame on top of the new image (set it to have no border; set the background colour to anything other than No Fill and transparency to 100%)
  4. Overtype onto the form in the text frame
  5. Export as PDF to get a PDF version with your text in
  6. Email it to the government
No stamps. Their evil must be stopped.

Comments

John E.

Inkscape 0.46 (in Ubuntu Hardy) lets you edit PDFs directly.

Alex

Ubuntu also has pdfedit.

Cliff Wells

Why not just use Xournal? It lets you annotate PDF's with text, doodles, whatever.

http://xournal.sourceforge.net/

I've used it with a Wacom tablet to sign documents that previously had to be printed, signed, rescanned and emailed back.

Since everyone feels the need to mention their distro, I'll mention that Fedora has it ;-)

ethana2

Ooh, perhaps the pain will end.

Alex, pdfedit is horrible. I gave up on it. All I want to do is fill in the friggin' form.

Inkscape, you say?

Rob

I think you missed out:

7. Government reject email requesting paper copy with signature in ink.

;-)

Brian

Looks like everyone has their own way of dealing with this problem. :) Thought I'd give my method. Basically, it just involves opening up the PDF in Gimp (It has a really handy import feature that lets you open up each new page as a layer or a separate image). And then I just put in text forms where I need them. Save it in whatever Gimpy format you like.

sil

Didn't know about Inkscape (well, I'm not running hardy yet). Pdfedit makes me cry bitter, bitter tears of frustration every time I try and use it for anything, and as far as I can tell I can't make it import my signature as an image. Xournal is for tablet-ish people, as I understand it; I didn't think you could type text into it. I'll give it a try, too!


Rob: so far, I haven't had forms rejected with a demand for a paper one. If that happens then I lose, I concede :)

Karl Lattimer

Erm, I'd like to point out that email is far from the future, it is dead... Email has become a corporate necessity and nightmare all at once with spam killing its usefulness as well as the inherently insecure nature of email (try some smtp commands using the mail from:someguy@fbi.gov) and the users unnatural ability to think that some random person they've never heard of with a dodgy address is actually sending them nude britney pics....

The problem with email is we have nothing that works, and nothing that can be adopted in place...

Oh and go on mention RSA/PGP/DSA/GPG all you want, you and I both know that theres only like 5 people that actually use it in the real world, until it becomes a mandatory requirement of email (hah! with webmail like yahoo/gmail the point of it is defeated once again) then email will never ever work...

Stick your john handcock on the paper and snail it over the water... Its the only way to be remotely safe.

behdad

I use flpsed. Looks ugly, but does the job.

spool

Inkscape is definitely the way forward. The only problem is that it doesn't necessarily import the font of the original document.

Inkscape is a fantastic program irrespective of its pdf capabilities though. It's like Adobe Illustrator but better (some of the best UI stuff around). I salivate for the day that they start supporting svg animations.

:)

John THe Juan

I have felt the pdf frustration as so many of the rest of you. I have tried pdfedit and it frustrates the heck out of me. There are times when I feel it is the solution for PDF editing on Linux and other times I wonder why I keep downloading it. I think the folks doing pdfedit are going to end up with a first rate program, but aggggghh, the wait. I tried the gimp route and have bumps on the front of my head now. Same with pdfedit. I do have foxit pdf reader and foxit pdfeditor running under wine, but they are only trial versions and I will have to toss them soon. Probably could re-install them, but I hate having to deal with the dark side. Foxit has a native pdf reader just for Linux, but I need much more than a reader. We have excellent readers now. I tried their pdf page organizer, as this is the solution I am looking for, but for now it just locks up time after time. I did get through it a couple of times, but the stability just is not there. I guess we will just have to hang in there for a while longer and wait for some kindly programmers to bail us out. For now it's emailed to my daughters computer, and I have her insert and delete the pages I need. Hey. Maybe that is the solution I need.

sil

Update, as of 2010: Inkscape is the best for this. Except...it can only open one page at once, and Inkscape in Ubuntu 9.10 seems to crash when trying to reimport a PDF that it created. Not excellent.

This website belongs to Stuart Langridge. Contact details are available. Don't eat yellow snow. Valid HTML5, at least in theory, except for the bits that aren't because I'm that futuristic that I'm ahead of the spec, oh yes. HTML5 help from Bruce Lawson, among others. Fonts from the superb FontSquirrel. End.