Create or run scripts
Applies to:
- Revu 21
Scripts can be created and run within Revu to easily manipulate PDFs and automate multi-step tasks. Scripts can be run on the active document or in batch mode. Revu will automatically open, save, and close the PDF files depending on the mode and whether or not the script is set to commit changes. A major advantage of using scripts within Revu is that a script can be assigned to a toolbar button. When that button is selected, the script is run on the active document.
Use the Script Editor in Revu to create new scripts or edit existing ones.
-
To open the Script Editor, go to Document > Script or Batch > Script.
-
To create a new script select
Add. To modify an existing script, select
Edit.
To delete a script, select it and select
Delete. -
Enter a Name for the script.
-
Select an existing icon for the script, or import an image to use as the icon. The icon is used when the script is added to a toolbar.
-
Enter the script in the Script field. Start typing to see a list of available scripts. See Script commands for the description, parameters, and example of each script.
-
Select OK.
-
Once your script is created, you can run the script.
- Go to Document > Script or Batch > Script. The Script Manager appears with the active PDF (if any) listed in the Files section.
To use a previously saved batch of PDFs, select Load and select the desired file.
Revu automatically adds active PDFs to the process. To add more PDFs, select Add and use one or more of the following methods:
- Files: Adds individual files from a network or local drive. Selecting this option causes the Open dialog to appear. Navigate to the appropriate location and select the desired files.
- Open Files: Adds all files currently open in Revu.
- Open Set: Adds all files contained in the current Set.
- Folder: Adds all files in a selected folder on a network or local drive, but not files contained in any of its subfolders. Selecting this option causes the Select Folder dialog to appear. Navigate to the desired folder and select it.
- Folder and Subfolders: Adds all files in a selected folder on a network or local drive as well as all files within any of its subfolders. Selecting this option causes the Select Folder dialog to appear. Navigate to the desired folder and select it.
By default, any document in the Files list will be affected. To remove a document from the Files list, select it then select Remove.
-
To specify which pages of a PDF will be processed, select it, then select the Pages menu and select one of the following options:
- All Pages: Sets the range to all pages.
- Current: Sets the range to the current page only.
- Custom: Sets the range to a custom value. When you select this option, replace any text left in the field with the page or pages to be printed directly. To enter a custom range:
- Use a dash between page numbers to define those two pages and all pages in between.
- Use a comma to define pages that are separated.
For example: 1-3, 5, 9 will include pages 1, 2, 3, 5 and 9.
- To save this batch for future use, select Save and save the batch to a local or network drive.
- Select the desired script in the Scripts section, and select Run.
Once a Script has been created, it can be added to any toolbar in Revu.
- Go to Document > Script or Batch > Script. The Script Manager appears with available scripts listed in the Scripts section.
- Select the desired script and select Add to Toolbar.
- Scripts can be added to any toolbar available in the Categories menu.
- Note that the icon that appears in the toolbar is the same one shown in the Scripts section beside the script's name. You can change the icon from the Script Editor. See Use the Script Editor for more information.
- To create a toolbar specifically for scripts, select
Add and enter a name for the toolbar.
