Python
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.combine(
combined_file_name="combinedFileName",
documents=[{
"id": "id",
"file_name": "fileName",
}],
)
print(response.document){
"document": {
"id": "<string>",
"fileName": "<string>"
}
}{
"error": "<string>",
"message": "<string>",
"statusCode": 123,
"details": {}
}{
"error": "<string>"
}{
"error": "<string>"
}Document
Combine PDF documents
Combines multiple PDF documents into a single PDF and returns the combined document’s metadata.
POST
/
api
/
v2
/
documents
/
combine
Python
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.combine(
combined_file_name="combinedFileName",
documents=[{
"id": "id",
"file_name": "fileName",
}],
)
print(response.document){
"document": {
"id": "<string>",
"fileName": "<string>"
}
}{
"error": "<string>",
"message": "<string>",
"statusCode": 123,
"details": {}
}{
"error": "<string>"
}{
"error": "<string>"
}Body
application/json
Response
Successfully combined documents into a single PDF.
Metadata of the newly created combined PDF document.
Show child attributes
Show child attributes