Batch commands provide a means to execute specific functions without the need for coding. These commands can be configured using JSON.
A small example:
{
"Title": "Flatten Form XObjects and autotag PDF",
"name": "my_example_command",
"commands": [
{
"title": "Flatten form XObjects",
"name": "flatten_xobject"
},
{
"title": "Clear document structure",
"name": "clear_structure"
},
{
"title": "Autotag PDF",
"name": "add_tags"
}
]
}
Command Management
Command can be created or imported into PDFix Desktop. Click the Commands button in application view create or manage all available commands.
Each individual command or group of commands can be exported to or imported from JSON format, facilitating easy sharing and customization of command configurations.
![Command management dialog](https://pdfix.net/wp-content/uploads/2024/05/image-4-1024x767.png)
Command Execution
The command can be executed either through the command-line application included with the PDFix SDK or within the PDFix Desktop application.
Command-Line execution using the pdfix_app included in the PDFix SDK:
pdfix_app batch -i input.pdf -o output.pdf -c command.json
Commands can be executed on a chosen set of documents directly from the PDFix Desktop application view.
![Batch command execution on selected files](https://pdfix.net/wp-content/uploads/2024/05/image-6-1024x664.png)
Before each execution, you can adjust the parameters of each command. Each command can be executed individually or sequentially with other commands.
![Edit command parameters before execution](https://pdfix.net/wp-content/uploads/2024/05/image-7-1010x1024.png)
Command List
Commands are listed and organized into categories within the Commands dialog.
![All commands in manage commands dialog](https://pdfix.net/wp-content/uploads/2024/05/image-8-1024x771.png)
The complete list of commands with the descriptions is available on https://pdfix.net/pdfix-batch-commands/
Autofix Command
The Autofix command is a predefined set of accessibility fixing commands designed for tagged documents. You have the option to create a customized version by duplicating the command and modifying the functions used for a specific set of documents.
![Autofix command with list of all functions](https://pdfix.net/wp-content/uploads/2024/05/image-9-1024x821.png)
Command-Line execution using the PDFix SDK:
pdfix_app batch -i input.pdf -o output.pdf -c autofix.json
Make Accessible Command
The Make Accessible command is a predefined set of accessibility fixing commands designed for non-tagged documents. You have the option to create a customized version by duplicating the command and modifying the functions used for a specific set of documents.
![Make Acessible command with list of all functions](https://pdfix.net/wp-content/uploads/2024/05/image-10-1024x643.png)
Command-Line execution using the PDFix SDK:
pdfix_app batch -i input.pdf -o output.pdf -c make-accessible.json
or simplyfied interface:
pdfix_app make-accessible -i input.pdf -o output.pdf