Skip to main content

Set properties of a PDF

Setting the document properties will allow you to set the default properties of a PDF using the PDF.API.

Some of these include author, creation date, subject, and title.

You can view the full Swagger documentation here.

Request

curl --location 'https://pdf-api.doclabs.cloud/api/v1/MyDocument.pdf/document/properties?storageName=MyBucketName' \
--header 'Content-Type: application/json' \
--header 'x-api-key: ••••••' \
--data '{
"subject": "My new subject",
"title": "My new title"
}'

Response

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