>>> [EMAIL PROTECTED] 08/29/03 01:29:24 >>>

Thanks, John, that sounds like it might meet my needs. Now I guess I'll have to learn _javascript_ for Acrobat!
-Peyton
> Behalf Of Peyton Todd
> Sent: Friday, August 22, 2003 6:37 PM
> 2. If I can wish for the moon: I'll have a lot of these to do, so
> I'm wondering if you can write Macros to make your programming
> task easier. In MS Word, you can write entire documents by
> running Macros. Anything resembling that in Adobe for _javascript_?
 
_javascript_ can easily be thought of as a macro language the same way VBA is a macro language inside MSWord.  You can write entire documents with _javascript_ by using the Report object and the writeTest, and open method.  If you are using Adobe Acrobat 5.0 you can look at the Help - Acrobat _javascript_ Guide -  Report Object Section it gives an example of how you would do this.
 
A quick script to create a blank page that I use from the _javascript_ console window is:
 
rpt = new Report(); 
rpt.open("blank.pdf");
 
The default nature of the report object is to create an 8.5 X 11 in PDF page.

Reply via email to