Skip to main content

Convert a word document to PDF

The following example will demonstrate how to convert a word document (.docx, .doc) to PDF.

You can view the full Swagger documentation here.

Request

curl --location 'https://word-api.doclabs.cloud/api/v1/MyDocument.docx/convert?storageName=MyBucketName&type=pdf' \
--header 'Content-Type: application/json' \
--header 'x-api-key: ••••••'

Response

{
"bucketName": "MyBucketName",
"contentPathName": "CopyOfTheOriginal.docx"
}