LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to add a bit of text to a PDF file? (https://www.linuxquestions.org/questions/programming-9/how-to-add-a-bit-of-text-to-a-pdf-file-4175450185/)

hashbang#! 02-14-2013 05:00 PM

How to add a bit of text to a PDF file?
 
I would like to add a bit of text in the margin of a PDF file, for example a date or web address.

Any tips which tool to use or an example would be greatly appreciated.

John VV 02-14-2013 05:32 PM

Have you tried using Libreoffice ?

or
from the terminal
pdf2ps then edit and run ps2pdf

hashbang#! 02-14-2013 05:42 PM

Sorry, I forgot to add that I would like to do this via the commandline, and, if necessary, convert to PS. I was envisaging storing the text and position in a meta file.

Guttorm 02-15-2013 05:53 AM

Hi

You could use pdftk and add a pdf "watermark" or "stamp". Make a PDF with the text in the margin, then use pdftk to put the text pdf as watermark (below) or stamp (above).

Dr_P_Ross 02-16-2013 04:41 AM

If you are planning to start with a given PDF file and do a batch run to generate multiple copies of that PDF, each with specific text in certain places (for example, filling out a standard form multiple times), then flpsed may be what you need. It is primarily an interactive editor but it lets you insert named tags at arbitrary places and then do non-interactive batch runs to insert text at those places. The program works with Postscript files, but you can use pdf2ps and ps2pdf


All times are GMT -5. The time now is 11:16 PM.