Antenna House PDF API Command-line application is executed by specifying arguments using the following configuration.
[Command-line application name] [command] [parameter] -d (input file/folder path) -o (output file/folder path)
Run the Windows version of the Command-line application with arguments as follows:
AHPDFToolCmd80.exe [command] [parameter] -d (Input file/folder path) -o (output file/folder path)
Note:
* Be sure to specify [command]. If not specified, an error will occur (*2).
(*2) Only if -linearize is specified with -o, it will be output without an error even without a command.
* For commands that require parameters, be sure to specify "parameter" after specifying "command". If "parameter " is not specified, an error will occur.
* The success or failure of execution and error code can be obtained from the return value obtained using the environment variable "ERRORLEVEL". For details, see "14-3 Error Handling" in this manual.
* If an error occurs in PdfTk, the internal library of "PDF Tool API", during execution, a message text indicating the error content will be output to standard output. For details including error contents, see "14-3 Error Handling" in this manual.
Run the Linux version of the Command-line application with arguments as follows:
AHPDFToolCmd80 [command] [parameter] -d (input file/directory path) -o (output file/directory path)
In Linux versions, a shell script "run.sh" is placed by the installer. "run.sh" is a shell script that can be executed by setting the location information of command line applications and license files in environment variables.
Unlike Windows versions, the installer does not set environment variables on Linux versions. Instead, "run.sh" with installation destination information is included. (More precisely, "run.sh" is generated during installation after filling in information such as the deployment folder.)
When using "Antenna House PDF API" through a shell script, specify the arguments and execute it as follows:
sh run.sh [command] [parameter] -d (input file/folder path) -o (output file/folder path)
Once you run the shell script, you can run "AHPDFToolCmd80" on the command line without setting environment variables until you close the terminal.
Note:
* Be sure to specify [command] when executing. If not specified, an error will occur (*3).
(*3) Only if -linearize is specified with -o, it will be output without an error even without a command.