Commands

Table of Content:

Workspace

Preferences

Accessibility

Validation

Tags

Annotations

Bookmarks

Destinations

Browser

Commands

License

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

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

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

Command List

Commands are listed and organized into categories within the Commands dialog.

All commands in manage commands dialog

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

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

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


Posted

in

Tags: