PrizmDoc v13.1 - Updated
Content Converters Deprecated

Content Converters (Deprecated)

Note: The following URLs have been deprecated and will be removed from the public API in a future release. Please use the new Content Converters API instead.

POST /contentConverters

Routes key: CreateContentConverter

Starts a conversion process for a particular document based on the viewing session.

POST http://localhost:3000/contentConverters
Content-Type: application/json
{ "viewingSessionId": "1234" }

Successful Response:

200 OK
Content-Type: application/json
{
    "input": {
        "dest": {
            "format": "pdf",
            "pdfOptions": {
                "forceOneFilePerPage": false
            }
        },
        "sources": [
            {
                "fileId": "9BgnvnYFK96E0YOsK-A9xA",
                "pages": ""
            }
        ]
    },
    "expirationDateTime": "2015-11-04T19:20:09.280Z",
    "processId": "mxivIVSw7UhtL1yWwt3QEA",
    "state": "processing",
    "percentComplete": 0,
    "affinityToken": "wxyz"
}

Errored Responses:

When an unknown error occurs while gathering data:

580 Server Error
Content-Type: application/json
{ "errorCode": "InternalError" }

GET /contentConverters/{processId}

Routes key: PollContentConverter

Gets the status of the specific conversion task.

GET http://localhost:3000/contentConverters/9BgnvnYFK96E0YOsK-A9xA
Accusoft-Affinity-Token: wxyz

Successful Response:

200 OK
Content-Type: application/json
{
    "input": {
        "dest": {
            "format": "pdf",
            "pdfOptions": {
                "forceOneFilePerPage": false
            }
        },
        "sources": [
            {
                "fileId": "9BgnvnYFK96E0YOsK-A9xA",
                "pages": ""
            }
        ]
    },
    "expirationDateTime": "2015-11-04T19:20:09.280Z",
    "processId": "mxivIVSw7UhtL1yWwt3QEA",
    "state": "complete",
    "percentComplete": 100,
    "output": {
        "results": [
            {
                "fileId": "eOsJIqI8aHkxVV0yJug",
                "sources": [
                    {
                        "fileId": "9BgnvnYFK96E0YOsK-A9xA",
                        "pages": "1-4"
                    }
                ],
                "pageCount": 4
            }
        ]
    }
}

Errored Responses:

When an unknown error occurs while gathering data:

580 Server Error
Content-Type: application/json
{ "errorCode": "InternalError" }

GET /WorkFile/{fileId}?ContentDispositionFilename={file name}&affinityToken={affinityToken}

Routes key: GetWorkFile

GET http://localhost:3000/WorkFile/eOsJIqI8aHkxVV0yJug?ContentDispositionFilename=MyFile&affinityToken=wxyz

Successful Response:

200 OK
Content-Disposition: attachment; filename={documentDisplayName}.{ext}
Content-Type: {content type of the specific document}