2010/1/5 Predrag Punosevac <punoseva...@gmail.com>: > ropers <rop...@gmail.com> wrote: > >> 2010/1/5 Predrag Punosevac <punoseva...@gmail.com>: >> > I have some PDF form that I need to fill in. >> >> Just to make sure we're on the same page here, are you talking about a >> PDF that makes use of Adobe's PDF form field features? (Cf. >> http://en.wikipedia.org/wiki/PDF#Interactive_elements and >> http://www.google.com/search?hl=en&safe=off&q=PDF+form+fields .) > > I believe so but I am using mupdf to see the document so I am not 100% > sure. From mupdf the document looks static.
Well, you need to know whether you want to fill in existing PDF form fields or edit a regular, static PDF file, otherwise a discussion is pointless. The difference is broadly similar to the difference between a PDF containing text or an image of text. Entirely different problem domain. Find out what you're looking at. Evince has had forms support for quite some time. This file contains an example Forms.pdf: http://www.pdfonline.com/easypdf/sdk/programming-pdf/java/sample-projects/document.zip Also see http://www.mjmwired.net/linux/2009/04/10/evince-and-acrobat-pdf-form-edits/ . See how that Forms.pdf and your file compare, both in evince and mupdf. Mupdf does not appear to support PDF form fields. If you want to edit or annotate a regular pdf, pdfedit and flpsed are GUI programs that allow you to do that -- but I've actually never tried to build them on OpenBSD, nor am I sure if anyone else has. Scratch your itch and the community may welcome new ports. ( http://en.wikipedia.org/wiki/PDFedit , http://www.ecademix.com/JohannesHofmann/flpsed.html ) The capabilities of flpsed are very limited, but it does allow you to add arbitrary text in arbitrary places, which may be enough for your purposes. PDFedit is not what I would describe as completely easy to use, and it too has its limits. I have not, for instance, found a way to replace an existing image in a PDF with another one with PDFedit. And yeah, Christoph's suggestion is also good, if a command-line tool is what you're looking for. regards, --ropers