Path Parameters
The unique identifier of the Word document to convert.
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>"
}
Converts an uploaded Word document (.doc, .docx) to a PDF file by creating a new PDF format representation. Returns the new PDF document’s metadata.
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>"
}
The unique identifier of the Word document to convert.