Link to home
Start Free TrialLog in
Avatar of hray35
hray35

asked on

How do do a "Save As" in Javascript with a predefined

I have a two part question.  It's worth 500 point to whoever can answer both.

I have a pdf file that is linked to a Microsoft Access through ADBC.  I can scroll through the records just fine but I one problem.  I would like to be able for each record to do a "save as" in javascript.  The file name needs to be based on a field in the pdf file.  I've tried adding javascript code to "sava as" and I get a document security error.  I get this because Adobe Javascript will not let you do a save as in the document object.  I tried creating a menu item and link it to a js file but I guess I didn't have the code correct.  Does anyone know how to write the javascript properly.

2.  With the same pdf file i want to insert addtional pages, save the file as name X from field that = X, then I want to go to the next record.  Does any one know how to code javascript to do this??  
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

You should able to do this. Which version of Acrobat are you using?
ASKER CERTIFIED SOLUTION
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hray35
hray35

ASKER

Hey thats a great solution.  One small problem.  Waiting on my version of Acrobat 7.  That's okay, I'm awarding the point to you anyway, I can use it later.  I also thought I should add that the Acrobat 5 cd contains batch sequences that has a a full demon on how to do this type of automation.  
The JavaScript code should also work with Acrobat 5.