On Thu, 2008-07-10 at 11:22 +0100, Mark Rogers wrote:
Does anyone have any idea how to perform command-line PDF editing?
The sort of thing I am talking about is adding text to the document maybe even editing existing text if that's possible.
Is there a particular reason for doing this on the command line? Do you need to automate it? Are you doing it over screen? Does your PDP-11 not run X?
If you really want to fiddle with PDFs on the command line you should probably check out http://www.pdfhacks.com/pdftk/ . I've managed to make small edits to PDFs using pdftk and a text editor, but it's at best fiddly.
Other than that I'm pretty sure one or both of scribus and inkscape will edit PDFs.
Having said all of which, what you're asking may well just be impractical as PDFs tend to do things like break text into hundreds of individual objects or convert it to vectors, which makes significant editing nigh on impossible.
Joe