PDFreactor REST API Documentation
/convert
Converts the posted configuration or asset package into PDF or image and returns the generated PDF or image.
Parameters
Name | Content Types | Description | Parameter Type | Model |
---|---|---|---|---|
body |
|
The configuration to convert. | post | Configuration |
apiKey |
|
An API key which may be required by the service for authentication purposes. | query | |
Response Messages
Status Code | Reasons | Content Types | Model | Headers |
---|---|---|---|---|
200 |
|
|
Result | Location |
400 |
|
|
Result | |
401 |
|
|
Result | |
422 |
|
|
Result | |
500 |
|
|
Result | |
/convert/async
Converts the posted configuration or asset package into PDF or image. This operation responds immediately and does not wait for the conversion to finish. This is especially useful for very large or complex documents where the conversion will take some time.
Parameters
Name | Content Types | Description | Parameter Type | Model |
---|---|---|---|---|
body |
|
The configuration to convert. | body | Configuration |
apiKey |
|
An API key which may be required by the service for authentication purposes. | query | |
Response Messages
Status Code | Reasons | Content Types | Model | Headers |
---|---|---|---|---|
202 |
|
String | Location | |
400 |
|
|
Result | |
401 |
|
|
Result | |
422 |
|
|
Result | |
500 |
|
|
Result | |
503 |
|
|
Result | |
/progress/{id}
Retrieves progress information about the conversion with the given ID.
Parameters
Name | Content Types | Description | Parameter Type | Model |
---|---|---|---|---|
id |
|
The document ID. | path | |
apiKey |
|
An API key which may be required by the service for authentication purposes. | query | |
Response Messages
Status Code | Reasons | Content Types | Model | Headers |
---|---|---|---|---|
200 |
|
|
Progress | |
201 |
|
|
Progress | Location |
401 |
|
|
Result | |
404 |
|
|
Result | |
/document/{id}
Returns the document with the given ID.
Parameters
Name | Content Types | Description | Parameter Type | Model |
---|---|---|---|---|
id |
|
The document ID. | path | |
apiKey |
|
An API key which may be required by the service for authentication purposes. | query | |
Response Messages
Status Code | Reasons | Content Types | Model | Headers |
---|---|---|---|---|
200 |
|
|
Result | |
401 |
|
|
Result | |
404 |
|
|
Result | |
/document/metadata/{id}
Returns the metadata of the document with the given ID.
Parameters
Name | Content Types | Description | Parameter Type | Model |
---|---|---|---|---|
id |
|
The document ID. | path | |
apiKey |
|
An API key which may be required by the service for authentication purposes. | query | |
Response Messages
Status Code | Reasons | Content Types | Model | Headers |
---|---|---|---|---|
200 |
|
|
Result | |
401 |
|
|
Result | |
404 |
|
|
Result | |
/document/{id}
Deletes the document with the given ID.
Parameters
Name | Content Types | Description | Parameter Type | Model |
---|---|---|---|---|
id |
|
The document ID. | path | |
apiKey |
|
An API key which may be required by the service for authentication purposes. | query | |
Response Messages
Status Code | Reasons | Content Types | Model | Headers |
---|---|---|---|---|
204 |
|
|||
401 |
|
|
Result | |
404 |
|
|
Result | |
/document/{id}/{page}
Returns the specified page of the multi-page image with the specified ID. This operation only functions when converting into image types, not PDF. Additionally, the configuration option "multiPage" has to be set to "true", otherwise there are no multiple pages.
Parameters
Name | Content Types | Description | Parameter Type | Model |
---|---|---|---|---|
id |
|
The documentId. | path | |
page |
|
The desired page number. | path | |
apiKey |
|
An API key which may be required by the service for authentication purposes. | query | |
Response Messages
Status Code | Reasons | Content Types | Model | Headers |
---|---|---|---|---|
200 |
|
|
||
401 |
|
|
Result | |
422 |
|
|
Result | |
404 |
|
|
Result | |
/document/{id}/show/{filename}
Displays the converted document in the browser. When downloading the document, browsers will save it under the specified filename.
Parameters
Name | Content Types | Description | Parameter Type | Model |
---|---|---|---|---|
id |
|
The document ID. | path | |
filename |
|
The desired file name including the file extension. | path | |
apiKey |
|
An API key which may be required by the service for authentication purposes. | query | |
Response Messages
Status Code | Reasons | Content Types | Model | Headers |
---|---|---|---|---|
200 |
|
|
||
401 |
|
|
Result | |
404 |
|
|
Result | |
/document/{id}/{page}/show/{filename}
Displays the converted document in the browser. When downloading the document, browsers will save it under the specified filename.
Parameters
Name | Content Types | Description | Parameter Type | Model |
---|---|---|---|---|
id |
|
The document ID. | path | |
page |
|
The desired page number. | path | |
filename |
|
The desired file name including the file extension. | path | |
apiKey |
|
An API key which may be required by the service for authentication purposes. | query | |
Response Messages
Status Code | Reasons | Content Types | Model | Headers |
---|---|---|---|---|
200 |
|
|
||
401 |
|
|
Result | |
404 |
|
|
Result | |
/document/{id}/download/{filename}
Downloads the converted document in the browser. The download is triggered by an appropriate "Content-Disposition" header. When downloading the document, browsers will save it under the specified filename.
Parameters
Name | Content Types | Description | Parameter Type | Model |
---|---|---|---|---|
id |
|
The document ID. | path | |
filename |
|
The desired file name including the file extension. | path | |
apiKey |
|
An API key which may be required by the service for authentication purposes. | query | |
Response Messages
Status Code | Reasons | Content Types | Model | Headers |
---|---|---|---|---|
200 |
|
|
Content-Disposition | |
401 |
|
|
Result | |
404 |
|
|
Result | |
/document/{id}/{page}/download/{filename}
Downloads the specified page of the converted multi-page image in the browser. The download is triggered by an appropriate "Content-Disposition" header. When downloading the document, browsers will save it under the specified filename.
Parameters
Name | Content Types | Description | Parameter Type | Model |
---|---|---|---|---|
id |
|
The document ID. | path | |
page |
|
The desired page number. | path | |
filename |
|
The desired file name including the file extension. | path | |
apiKey |
|
An API key which may be required by the service for authentication purposes. | query | |
Response Messages
Status Code | Reasons | Content Types | Model | Headers |
---|---|---|---|---|
200 |
|
|
Content-Disposition | |
401 |
|
|
Result | |
404 |
|
|
Result | |
/version
Returns the version of the PDFreactor web service that is currently running.
Parameters
Name | Content Types | Description | Parameter Type | Model |
---|---|---|---|---|
apiKey |
|
An API key which may be required by the service for authentication purposes. | query | |
Response Messages
Status Code | Reasons | Content Types | Model | Headers |
---|---|---|---|---|
200 |
|
|
Version | |
/status
Checks if the PDFreactor Web Service is available and functional.
Parameters
Name | Content Types | Description | Parameter Type | Model |
---|---|---|---|---|
apiKey |
|
An API key which may be required by the service for authentication purposes. | query | |
Response Messages
Status Code | Reasons | Content Types | Model | Headers |
---|---|---|---|---|
200 |
|
|||
401 |
|
|
Result | |
503 |
|
|
Result | |