I have a form as a PDF file. I would like to use LaTeX/TeX to overlay my text over the form, and send the output to either a print or another PDF file.
Is this possible? How would I go about it?
|
|
|
A very simple but powerful way is to use the
Then you can use it anywhere
|
||||
|
|
|
One idea is to include pdf page using A MWE would look like this:
|
|||
|
|
You can use TikZ to place the form as image at the center of an otherwise empty page and then draw on it. This is similar to the suggested See also Drawing on an image with TikZ and Is there the easiest way to toggle (show/hide) navigational grids in TikZ? for related code. You could even add real PDF form fields to it. See Creating fillable PDFs for how it can be done.
This example used the IEEE copyright form. Just download it and rename it to |
||||
|
|
|
This answer by Michael Underwood to question PDF letterhead as document background provides a solution using the wallpaper package. |
|||
|
|
|
The
where
These placment macros could be nested inside |
|||
|
|
I've just used LaTeX to fill in a form that was sent to me as a PDF. The form was not a proper PDF form, just an ordinary PDF with spaces where I should write/type. Previously, I've either used xournal or used the method outlined by ipvalic above. I prefer the control of LaTeX but find it a little tedious with positioning. However, I recently was told about WhizzyTeX and advi (via How can I execute a macro for every node in TikZ?) and thought that it might make it easier to do this. Which it does! Here's my document:
It's mostly taken from How can I execute a macro for every node in TikZ?. When used with The main wrinkle with this method is that the previewer is a DVI previewer, not PDF. So to display the PDF background we have to have a version available that the previewer will display. Experiments show that PS is fine. When compiling with I'm not claiming to have figured out all the best ways to do this - it's only the first time I've used it and it took a little tweaking to get it a working system, but next time it'll be much, much easier (if anyone has any suggestions for improvements, please let me know). And, yes, that is my middle name. |
|||
|
|
|
You could use 'IPE' (the "extensible drawing editor", http://ipe7.sourceforge.net/) to import the pdf with the Possible drawback: I admit that I'm not sure what it would do to text already included in the pdf. If the text is recognised, it will be typeset as latex "boxes", which might change the typeface etc. That might also depend on the pdf you want to import. The advantage is: If you can make available the pdf you want to "write on", I could give it a try, however I'm no IPE expert (so if I can't make it work, this won't mean that it is impossible). You'll find a very active and responsive community of developer and users here: http://old.nabble.com/Ipe---General-f1929.html |
|||
|
|