Operations (sample payloads)
Main operations
Convert PDF to JSON
Convert PDF file to JSON. Sample Input
{
"file": \{
"name": "sample_document.pdf",
"content": "base64_encoded_pdf_content_here"
\},
"include_raw_text_content": true
}
Sample Output
{
"document_title": "Sample Document",
"interactive_form_fields": \{
"name": "John Doe",
"email": "johndoe@example.com",
"age": "30"
\},
"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."
}
Merge PDFs
Merge two PDF files into a single PDF file. Sample Input
{
"pdf_a": \{
"name": "document1.pdf",
"url": "https://example.com/files/document1.pdf",
"mime_type": "application/pdf",
"size": 1024000
\},
"pdf_b": \{
"name": "document2.pdf",
"url": "https://example.com/files/document2.pdf",
"mime_type": "application/pdf",
"size": 2048000
\}
}
Sample Output
\{
"name": "merged_document.pdf",
"url": "https://example.com/files/merged_document.pdf",
"mime_type": "application/pdf",
"expires": 1623456789
\}