To Add Command Line Switches
> close ScanToPDF
> right-hand click on the ScanToPDF desktop shortcut
> select properties
> add the switch to the end of the 'target' setting. There must be a space after the end of the target and the command line switch
> there must always be a / before the switch
for example to add the support switch the target would read
"C:\Program Files\O Imaging Corporation\ScanToPDF\ScanToPDF.exe" /support
multiple switches can be combined, for example
"C:\Program Files\O Imaging Corporation\ScanToPDF\ScanToPDF.exe" /locked /autoscan
/assign=
Assign a variable in ScanToPDF
To assign MULTIPLE variables, use a semi colon as a separation
To assign numbers use
/assign=invoiceNumber=12345;orderNumber=98765
To assign strings, which could contain spaces or other characters then they must have single and double quotes as shown below
/assign="firstName='Joseph';lastName='Green'"
/autosave
Initiate a save once scanning is complete
/autoscan
Initiate a Scan when ScanToPDF is launched
/autostart
Imports (or Scans) when ScanToPDF is launched
/cmd=[command name]
Run a command through the switch, commands available are
ImportFromFolder (Import from the selected folder)
ImportSendToFiles (Imports files that are dragged & dropped onto a ScanToPDF shortcut)
ImportSingleFile (Import a single file)
Save (Save a document)
SaveSelected (pages must have been selected first in the UI)
ScannerCapture (capture pages from the selected scanner)
SendOnly (send instead of saving the PDF)
PrintOnly (print instead of saving the PDF)
Exit (will prompt user before closing ScanToPDF)
ForceExit (force a close without prompting the user)
commands can be queued, when separated with a semi colon, for example
/cmd=ImportFromFolder;Save
/debug=[file path]
Set the file path of the debug file created (in conjunction with tracelevel)
/debugim
Use debug images when import from folder is used
/defaultoutputfolder
Set the default folder used to save PDF documents
/defaultscan
/devicesettings Set the TWAIN device settings file to use /devicesettings="Colour.xml"
/documentprofile=[docprofile]
Set the document profile to use (with the document profile selector)
/importfile=[import file name]
Set the import file path. When an import is initiated it will import from this file path.
/locked
Lock configuration settings
/mailto
/multipleinstance
Allow multiple instances of ScanToPDF to run simultaneously
/pages=[n]
Scan a fixed number of pages from the scanner
/pdfpath=
Set the PDF path for finished output PDF document
/reset
/reversemonopal
/scanfromfolder=[folder path]
Set the import folder path. When an import is initiated it will import from this folder path.
/silent
Do not display error messages
/showsendbutton
Show the send button instead of the Save button (when scanning to email)
/stddialog
Use the standard
Windows Save As dialog rather than the
Enhanced Save As dialog which includes the
Favourites option
/support ( or /log )
Create a verbose level debug log called scantopdf.log in the users "Documents" folder.
/system=[Settings name to use]
Defines the settings to use at configuration and run time
-
PLEASE NOTE - ALL ScanToPDF settings are stored into CommonApplicationData + ScanToPDF_5[space]-[space][Settings name]
-
The folder must be created using Windows Explorer - THE SOFTWARE WILL NOT CREATE THE FOLDER
Configuration time - settings are stored in a settings folder using the name provided
Run time - settings are loaded from the settings folder using the name provided
For example
/system=Invoices
Would load from and save to the settings folder (on Windows 10)
C:\ProgramData\ScanToPDF_5 - Invoices
/terminateaftersave
Close ScanToPDF once all documents have been scanned and saved
/tmp=[folder]
Configure ScanToPDF to use a different temp folder to the default
for example
/tmp=c:\scantopdf\temp
/tracelevel=
Possible values
0 – Off
1 - Error – Only error messages
2 - Warning – Warning messages only
3 - Info - Informational messages, warning messages, and error messages
4 - Verbose - Verbose messages, informational messages, warning messages, and error messages
/twainui =
Possible values
0 – Do not show TWAIN UI
1 – Show TWAIN UI
/twaindebug
Create a TWAIN debug file to aid support personnel
/unattended
Force the User Interface (UI) to act as though the user is not present to respond to dialogue messages. In this mode the UI cannot be interrupted with dialogue boxes requiring user input which would hence interrupt the scanning process. Instead the default action is taken automatically. Please note this switch implies the following command line switches
/autostart /silent /autosave
/viewoutput
When the save process is complete, ScanToPDF will launch the application associated with files of the PDF extension in order to view the PDF
/windowstate=
Set the window state of the ScanToPDF software upon launch
Possible values
Minimized
Maximized