PaperOffice remote control

Commandline API

Function

Receive commands to PaperOffice via CMD description

Description

PaperOffice accepts commands via the command line, automatically creates a POAPI-JSON file and executes the commands in it. The variables are identical to the structure of the POAPI-JSON.

Functionality

Run "C:\PaperOffice\com.paperoffice.launcher.exe" from the terminal with the desired argument parameters.

The argument structure is as follows: "main_command=command sub_command=value" and always starts with "useapi = 1"
Example:

useapi=1 command=open_document document_id=42

Terminal


POJOB-JSON file

Alternatively, you can add the arguments to a JSON object file and save them under "shellpipe_filename.json" in the PaperOffice root installation folder.
PaperOffice monitors the internal folder for files with the filename "shellpipe_filename.json" and processes the API commands contained inside.

The argument "useapi=1" is not required in the json file.

Example:

{
    "command":"open_document",
    "document_id":42
}