- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
Would somebody please tell me what is wrong w/ my JavaScript?
var newDoc = app.newDoc(); //create a new PDF doc
newDoc.insertPages({nPage : -1, cPath : "/c/doc1.pdf",}); // inser doc1.pdf
newDoc.insertPages({nPage : newDoc.numPages, cPath : "/c/doc2.pdf",}); //insert doc2.pdf
newDoc.saveAs({ cPath : "/c/myNewDoc.pdf"}); //save new doc
newDoc.closeDoc(true); //close doc
I ran these on the batch processing from Adobe Pro 9.0 - it gave me the invalid argument type.
Doc.insertPages:13:Batch undefined:Exec ===> Parameter nPage.
I'm trying to merge the 2 PDF files using the sample script from Acrobat JavaScript Scripting Guide, but it doesn't work for some reason.
I can merged the 2 PDF files mannually, but not through script. I'm hoping that through scripting I can forced the Adobe XFA forms that I created from LCDesigner with the AcroForms. Merge the XFA forms & AcroForms together. I know that from manually it can't be merge. I just wonder if it can it be done through JavaScript? The doc1 & doc2 I have are regular AcroForms
Thanks a million for your help & suggestions
Trang
Solved! Go to Solution.
Views
Replies
Total Likes