Skip to main content
POST
/
api
/
v2
/
documents
/
{documentId}
/
formats
/
pdf
Python
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key="My API Key",
)
response = client.v2.documents.formats.create_pdf(
    document_id="documentId",
    file_name="fileName",
    mime_type="mimeType",
)
print(response.id)
{
  "id": "<string>",
  "fileName": "<string>"
}

Path Parameters

documentId
string
required

The unique identifier of the Word document to convert.

Body

application/json
mimeType
string
required
fileName
string
required

Response

Successfully converted the document to PDF.

id
string
required
fileName
string
required
I