Plutext

Getting Started - Post Installation

This page is about testing your installation.

If you still need to download an installer, please see here

There are 2 ways to test your installation

Concepts

The conversion service listens for POST requests, so to test it, you need to POST a Word (doc or docx) file.

By default it listens on port 9016.

Which connections it accepts is configurable:

For more info, please see the download page for your OS.

Testing with a file:/// URL

Here is a web page you can download then drag to your browser (ie open as a file:/// URL).

It contains a suitable form.

If you are not viewing it on the same host, you'll need to change the URL.

Testing with CURL

To test your installation from the command line:

curl -v -X POST --data-binary @yourdocx.docx -o out.pdf http://[IP]:9016/v1/00000000-0000-0000-0000-000000000000/convert

Don't forget the '@' character!

Windows users may need to download/install curl first. Beware that in PowerShell, curl is an alias for Invoke-WebRequest, so to use curl itself, first ensure that it is installed, then include the .exe explicitly:

curl.exe -v --data-binary @yourdocx.docx -o out.pdf http://[IP]:9016/v1/00000000-0000-0000-0000-000000000000/convert

Alternatively, in PowerShell, you can use Invoke-WebRequest (or Invoke-RestMethod):

Invoke-WebRequest  -Method Post -InFile yourdocx.docx -Uri http://[IP]:9016/v1/00000000-0000-0000-0000-000000000000/convert -ContentType
 'application/octet-stream' -OutFile out.pdf

Next steps

Now you know your installation is working, you can try it from your favourite client language

For others languages, use its HTTP support to POST your PDF, or please ask for help.