import os
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key=os.environ.get("SAMPLEHC_API_KEY"), # This is the default and can be omitted
)
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.
import os
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key=os.environ.get("SAMPLEHC_API_KEY"), # This is the default and can be omitted
)
response = client.v2.documents.formats.create_pdf(
document_id="documentId",
file_name="fileName",
mime_type="mimeType",
)
print(response.id){
"id": "<string>",
"fileName": "<string>"
}