11–1–2 Specifying Folder

You can specify the input/output destination using a folder/directory path (*). Whether or not a folder can be specified and the operation contents differ depending on the command. Specify the input folder path with -d and the output folder path with -o.
(*) After this section of this manual, the folder/directory path is collectively referred to as "folder path" and the operation of specifying a folder/directory as "specifying folder." For those who operate on Linux, read the following items by replacing "folder" with "directory".

[Specifying folders]

-d (input folder path) [password] -o (output folder path) [-linearize]

[Detail information: -d]

-d (input folder path) [password]

Specify the input file path with -d.

  • It is also possible to process input files with password security. If the input file has password security, please specify the password string.If the input file has two types of passwords: a password to open the document and an owner password, specify the owner password.
Notes/Supplements:
  • The basic limitations are the same as for specifying files.
  • If the file path contains spaces, enclose the file path in double quotation marks (").
  • Files in the specified input folder will be processed. Files in subfolders are not processed.
  • If the folder contains input files that are secured with different passwords, an error will occur for input PDFs with passwords other than the specified one.
  • Multiple passwords cannot be specified when specifying a folder.
  • The behavior when specifying a folder and the type of input file (PDF, image, etc.) differ depending on the command. For detailed operations when specifying a folder, see the setting of associated command described in "13 Parameters for Commands" in this manual.
  • If you specify a folder for processing, you cannot specify multiple commands. For details on specifying multiple commands, see "14-1 Specifying Multiple Commands" in this manual.
  • Some commands do not support specifying folder. See "12 Type of Commands" in this manual for a list of whether folders can be specified. Alternatively, see the setting of associated command described in "13 Parameters for Commands" in this manual.

[Detail information: -o]

-o (output file path) [-linearize]

Specify the output file path with -o.

  • For PDF output processing, you can use the option to specify "-linearize" after the output file path. If specified, it will be saved as a PDF that is "optimized for fast web view." For details on "-linearize", see "-linearize: Linearizing for First Web View" in this manual.
Notes/Supplements:
  • The basic limitations are the same as for specifying files
  • If the file path contains spaces, enclose the file path in double quotation marks (").
  • For commands that do not involve output, it is not necessary to specify the output file path. (Example: -getFileInfo Get PDF information) See the specifications of associated command described in "13 Parameters for Commands" in this manual for whether or not it is necessary to specify the output file path.
  • For the output destination, specify a path to an existing folder/directory. If the path is not found, an error will occur.
  • The behavior when specifying a folder and the type of output file (PDF, image, etc.) differ depending on the command.
    For detailed operations when specifying a folder, see the setting of associated command described in "13 Parameters for Commands" in this manual.
  • If you specify a folder for processing, you cannot specify multiple commands.
    For details on specifying multiple commands, see "14-1 Specifying Multiple Commands" in this manual.
  • Some commands do not support specifying folder.
    See "12 Type of Commands" in this manual for a list of whether folders can be specified. Alternatively, see the setting of associated command described in "13 Parameters for Commands" in this manual.

[Specific example of settings]

Execute the processing specified in [command] using the files in the "in 2" folder as processing targets, and output the files to the "out" folder.

<Windows>

AHPDFToolCmd80.exe [command] [parameter] -d "c:\in 2" ownerpass -o c:\out -linearize

<Linux>

AHPDFToolCmd80 [command] [parameter] -d "/home/antenna/in 2" ownerpass -o /home/antenna/out -linearize