Operations (sample payloads)

Main operations
Copy

Convert PDF to JSON
Copy

Convert PDF file to JSON.

Sample Input

1
{
2
"file": {
3
"name": "sample_document.pdf",
4
"content": "base64_encoded_pdf_content_here"
5
},
6
"include_raw_text_content": true
7
}

Sample Output

1
{
2
"document_title": "Sample Document",
3
"interactive_form_fields": {
4
"name": "John Doe",
5
"email": "johndoe@example.com",
6
"age": "30"
7
},
8
"raw_text_content": "This is the first line of the PDF content.\nThis is the second line of the PDF content.\nThis is the third line of the PDF content."
9
}

Merge PDFs
Copy

Merge two PDF files into a single PDF file.

Sample Input

1
{
2
"pdf_a": {
3
"name": "document1.pdf",
4
"url": "https://example.com/files/document1.pdf",
5
"mime_type": "application/pdf",
6
"size": 1024000
7
},
8
"pdf_b": {
9
"name": "document2.pdf",
10
"url": "https://example.com/files/document2.pdf",
11
"mime_type": "application/pdf",
12
"size": 2048000
13
}
14
}

Sample Output

1
{
2
"name": "merged_document.pdf",
3
"url": "https://example.com/files/merged_document.pdf",
4
"mime_type": "application/pdf",
5
"expires": 1623456789
6
}