in reply to Dynamic Forms
Now you have a Postscript text file you can manipulate, so that as a Perl programmer you become invincible :-). At this point you have at least two ways to add your annotations:convert f1040ez.pdf f1040ez.ps
Use ImageMagick again to convert the Postscript back to pdf. You can also make the substitutions directly in the pdf file, but you may mess up a character count checksum that will cause Acrobat to display a warning that the pdf file is corrupt (Acrobat will probably work fine, but the warning is annoying).
It is easiest to use a fixed-width font (such as Courier) in your text boxes. This makes width checking for your form information simple, so you don't overflow.
The xfig approach probably won't do exactly what you want. You will lose too much information in the round-trip through the translator. So combine this approach with a small amount of Postscript knowledge to translate the text boxes that xfig creates into the raw postscript that you will add to the original postscript document.
You could also use other tools, such as those from he-whose-name-must-not-be-spoken, to add the text boxes.
Both Postscript and PDF are fully documented by Adobe.The only part you may have trouble with is assembling all the necessary pieces of ImageMagick, but some Linux distributions do a reasonable job of this.
It should work perfectly the first time! - toma
|
|---|