Documentation Index
Fetch the complete documentation index at: https://docs-docflow.textin.ai/llms.txt
Use this file to discover all available pages before exploring further.
Feature Overview
The multi-image cropping function can automatically recognize multiple independent images or tickets contained in one page of a document and separately crop them into independent sub-documents. This is particularly useful for scenarios such as processing reimbursement attachments or scans containing multiple receipts.Use Cases
1. Expense Receipt Pasting Scenario
An A4 paper with multiple tickets laid flat:- Train tickets
- Flight itineraries
- Multiple taxi invoices
- Restaurant invoices

API Parameter Configuration
Enable Multi-Image Cropping Function
Setcrop_flag=true in the upload interface to enable the multi-image cropping function:
Parameter Description
| Parameter Name | Type | Default Value | Description |
|---|---|---|---|
crop_flag | boolean | false | Whether to enable multi-image cropping function |
Example Code
Return Result Description
Multi-Image Cropping Result Structure
After enabling the multi-image cropping function, the result returned by thefile/fetch interface will include the child_files field, which describes the information of sub-documents after cropping:
Key Field Description
| Field Name | Type | Description |
|---|---|---|
child_files | array | List of sub-files after cropping |
child_files[].id | string | Unique identifier of sub-file |
child_files[].task_type | integer | Task type, 3 indicates generated by multi-image cropping |
child_files[].category | string | Document classification result |
child_files[].from_parent_position_list | array | Coordinates of cropping area in original image, refer to Coordinate System Description |
child_files[].crop_info | object | Detailed information of multi-image cropping, including page index and angle information |

