Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

Insert page argument problem

$
0
0

Hello!

 

I am having a problem with the method insertPages.

 

this.insertPages ({

            nPage: pageArray[1],

            cPath: getField("filename").value

        });

 

This code is in a for loop and inserts the pages in the first iteration but stops the script right after and exits with:

 

InvalidArgsError: Invalid arguments.

Doc.insertPages:3:Console undefined:Exec

 

Has anyone encountered this error?

Any help is much appreciated!


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>