Understanding how to use extractPages method correctly
I have been searching all over the internet for full information on this, and I'm just having a very difficult time figuring it out and would appreciate any help I can get.
I have a function which is intended to automatically split PDFs based on the text of the page. According to the console, everything works fine in this function except for the "extractPages" function, which returns the following error:
RangeError: Invalid argument value.
Doc.extractPages:31:Document-Level:splitPages
As I looked into it, it appears that this function is a privileged function, and this is where I start getting confused. As far as I know, there is some folder-level script that needs to be added in a certain folder (which I believe I've found) which gives the program privileges to do this sort of thing. However, past that, I'm totally lost. Does the splitPages function itself go into that .js file in the folder level? How do I call it? How do I set the correct permissions?
If anyone can help me out, or direct me to a well-explained set of instructions, I would greatly appreciate it. Everything I've found so far talks generally about these things, but I can't find any specifics.
