PDF Operations
Extract pages from a PDF file
Creates a task to extract specific pages from a PDF file into a new PDF file.
post/v1/pdf-operations/extract-pages
Request body
Example request
{
"input": "file_avyrvozb9302uwhq",
"name": "File Name",
"pages": "2-7",
"callback_url": "https://example.com/callback"
}Response
Task created successfully. Returns the task details.
Example response
{
"id": "task_euyrvozb9302uwhq",
"operation": "extract-pages",
"parameters": {
"input": "file_avyrvozb9302uwhq",
"name": "File Name",
"pages": "2-7",
"callback_url": "https://example.com/callback"
},
"status": "completed",
"result": {
"generated_files": [
{
"id": "file_euyrvozb9302uwhq",
"name": "Example document",
"type": "application/pdf",
"properties": {
"size": 1024,
"page_count": 10
},
"task_id": "task_euyrvozb9302uwhq",
"created_at": "2021-05-01T12:00:00Z"
}
]
},
"callback_url": "https://example.com/callback",
"created_at": "2021-05-01T12:00:00Z",
"updated_at": "2021-05-01T12:00:00Z"
}