The following example will show you how to split a PDF document using the Split Smart tool and a custom prompt.
You can define how the PDF should be split by setting the prompt text with the setPrompt method:
The prompt tells the API how to identify and separate the content inside the PDF.
Here are some prompt examples you can use:
The REST API processes your document according to the prompt and returns the resulting split PDF files.