Split File (Beta)

Estimated reading: 4 minutes

The Split File component divides a single uploaded PDF, Word (DOCX), or image/multi-frame image file into multiple smaller files within a workflow based on your chosen page count or splitting criteria. The original file remains read-only and unchanged, content and formatting are preserved as much as the file format allows, and the output files are saved to the current project for downstream steps or download.

Parameters

Parameter Description
DataFrame Accepts a file passed through an input DataFrame.
File Path Specifies the path of the file to split.
Select File Selects and uploads the file or files.
Split Mode Specifies how the file should be split. Available options:
Pages Per Part
Custom Page Ranges
Pages Per Part Specifies the number of pages to include in each output file. Default value: 5. This field is displayed only when Pages Per Part is selected in Split Mode.
Page Ranges Specifies the page ranges to split, such as 1-5, 6-10, 11-15. This field is displayed only when Custom Page Ranges is selected in Split Mode.
Output File Name Prefix Optional text added to the beginning of generated output file names.
File Type Specifies the output file format. Available options: Default or KB.
Timeout (seconds) Maximum time the split operation can run before it times out. Default value: 30 seconds.
Retry Count Number of times the component retries automatically if a temporary failure occurs. Default value: 1.
Delay Between Retries Time to wait between retry attempts. Default value: 1 second.
Delay Before Execution Time to wait before starting the split operation. Default value: 0 seconds.
Delay After Execution Time to wait after the split operation completes. Default value: 0 seconds.
Continue on Error Determines how the workflow behaves when an error occurs:
Stop Workflow – Stops the workflow execution.
Continue – Skips the current step and continues the workflow.
Continue Using Error Output – Continues execution and passes error details through the error output.

Input Priority & File Handling

When multiple inputs are provided, the component uses them in this order:

DataFrame → File Path → Select File

a. PDF Files – Splits each page into a separate file.
b. Word (DOCX) Files – Splits the document into separate pages while keeping the content and formatting.
c. Image Files – Splits images based on the selected settings.
d. Output Files – Each split part is saved as a separate file and can be viewed, downloaded, or used in the next steps of the workflow.

Outputs

Output Description
Message Returns a message summary or reference for the split operation output.
Data Returns structured JSON data representing the split operation and generated output files.
DataFrame Returns a tabular DataFrame containing the generated split file entries for downstream table or batch processing.

Tool Mode

Tool Mode allows an Agent to use the Split File component automatically when needed. Once enabled, the Agent can split files during execution based on the configured settings.

Example

Split a 20-page PDF into 5-page files

i. Select a 20-page PDF.
ii. Set Split Mode to Pages per Part.
iii. Set Pages Per Part to 5.

Result:

The PDF is split into 4 separate files, each containing 5 pages. The original PDF remains unchanged. If the total number of pages is not evenly divisible, the last file contains the remaining pages. For example, a 22-page PDF split into 5-page parts creates 4 files with 5 pages each and 1 file with the remaining 2 pages.

Troubleshooting

Issue What to Check
Unsupported file error Make sure the file is a supported PDF, DOCX, or image format and is not corrupted.
Invalid page count Check that the page count or split settings use valid values.
File not found Verify that the file path or selected file is correct and accessible.
Timeout error Increase the timeout value for large files or adjust retry settings.
Output not working in next step Ensure the output format (Message, JSON, or DataFrame) matches what the next component expects.
Share this Doc

Split File (Beta)

Or copy link

CONTENTS
Robility Chatbot
Robility Assistant
Online