Running pdfToolbox via Webservices (SOAP)

It is possible to submit jobs to a pdfToolbox instance and retrieve the results via SOAP requests.

In order to do so you first have to start the pdfToolbox in a "listening mode":

./pdfToolbox --satellite --port=<any free port number, e.g. 1201>

Or on Windows:

.\pdfToolbox.exe --satellite --port=<any free port number, e.g. 1201>

It is currently not possible to submit PDF files or kfpx Profiles via such SOAP requests, so both have to be available to pdfToolbox on mounted volumes.

The SOAP requests wrap any command line parameters in <ns:args> tags. The simple requests  below asks pdfToolbox to send usage information back by submitting the --help parameter:

<?xml version="1.0" encoding="UTF-8"?>

You may include as many parameters as required, there is no limitation.

Any results will be sent back in XML back to the program that you have used to send the request.

You may use the curl tool on command line to send requests and retrieve results:

curl -H "Content-Type: text/xml; charset=utf8" -d@.\ns.extExecute_help.req.xml http://<pdfToolbox' IP>:<Port>

A Web Service Defintion Language file can be found in the pdfToolbox program folder:

The example below is a simple SOAP request that asks pdfToolbox to create single pages from the original PDF file. Path and name of the PDF need of course to be adapted.


Send Your Comment

E-Mail me when someone replies to this comment