Answered
Hi,
Im looking to update data points like graphs and tables in
a document when it is opened. I could call a web service or
a servlet from javascript and rturn an FDF response, but how
do I update specific parts of the document itself? or should
I just update the whole document?
Cheers
To modify text you'll need to put form fields over the table, and there are options for placing a graph on an annotation that can be modified dynamically. For example, the "PolyLine" and "Ink" annots can be used for creating a simple line graphs. I've also seen bar charts created with "Square" annots. There's a very sophisticated example that uses a Flash app run inside an Rich Media Annot here:
http://blogs.adobe.com/pdfdevjunkie/category/acrobat/rich-media-annotations
But you'll have to look around some. I know it's in there somewhere.
Here's an example of using an undocumented function for drawing directly onto a button with standard PDF content operators. Everything on a PDF page is drawn with these operators.
2D Matrix Calculator
So there are several options, from the simple to the complex. But what you can't do is modify the page content.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script