Range Error: Invalid Argument value during Extracting pages
I am getting "RangeError: Invalid argument value" error when i run this script
this.extractPages(1, 6, "test.pdf");
but when i run script without file name as shown below, it runs fine and creates a tmp pdf file.
this.extractPages(1, 6);
please can someone let me know steps to fix this issue so that i can create a file with name test.pdf