Split PDF by Text
Connector ID: Split By Text
Split your PDF documents by searching for a specific phrase inside the text content. Use the text you probably think is unique for identifying the page at which the document needs to be split. Use API to automate this using the Split by Text action.
- Method: POST
- Endpoint: /api/v2/SplitByText
Paramenters
- File ContentBase64, Required
Map source PDF file content from the previous action
- File NameString, Required
Source file name with proper file extension
- TextString, Required
Text using which the PDF needs to be split.
Example - Nadal, who officially turned professional in 2001
- Split Text PageString, Required
Choose the way split should occur.
- before - PDF is split before the page with the text
- after - PDF is split after the page with the text
- File NamingString, Required
File Naming must be in string format.
Output
- File ContentBinary
Output file content from PDF4me action
- File NameString
Output file name from PDF4me action
Header
Content-Type:application/json
Authorization: Please copy key from the link.
Payload
{
"docContent": "Please put PDF base64 content",
"docName": "output.pdf",
"text": "Nadal, who officially turned professional in 2001",
"splitTextPage": "before",
"fileNaming": "NameAsPerOrder"
}
PDF4me api samples
- CSharp(C#)
- Java
- JavaScript
- Python
- Salesforce
- n8n
- Google Script
- AWS Lambda