split_pdf_by_barcode
Split PDF by barcode: detect barcodes on pages, then divide the document into new files according to matched barcode values and chosen split position.
Instructions
Split a PDF by barcode text via PDF4me SplitByBarcode (/api/v2/SplitByBarcode). Provide barcode_string, barcode_filter, barcode_type, split_barcode_page, combine_pages_with_same_consecutive_barcodes, and pdf_render_dpi.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pdf_file_path": "<pdf_file_path>",
"barcode_string": "<barcode_string>"
},
"name": "split_pdf_by_barcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_dir | No | ||
| barcode_type | No | any | |
| pdf_file_path | Yes | ||
| barcode_filter | No | contains | |
| barcode_string | Yes | ||
| pdf_render_dpi | No | 300 | |
| request_doc_name | No | ||
| split_barcode_page | No | after | |
| combine_pages_with_same_consecutive_barcodes | No |