Multi-image PDF / OFD export
Organize scanned or existing local images into documents in page order. Inputs are supported images, not existing PDFs for merging/editing or arbitrary Office files for format conversion.
Choose image-only or OCR output
Please combine these two images into one PDF in my supplied order. Preserve image content without OCR.
For a text layer, be explicit:
Please export these images in page order as a searchable OCR PDF with copyable text, and tell me the saved document path.
czur-export-pdf defaults to image-only PDF. Use czur-file-ocr when text recognition is explicitly needed. See Install CZUR Skills.
| Goal | Tool path | Review |
|---|---|---|
| Image-only PDF / OFD | Document target in image.enhance, without adding enhancement steps | Document opens, images are complete, page order is correct |
| OCR PDF / OFD | ocr.recognize | Document, recognized text, order, and requested search/copy behavior |
“Export PDF” alone does not implicitly request OCR. Do not silently downgrade requested OCR output to image-only files or add unrelated algorithms just to combine images.
Prepare ordered inputs
Use readable local images in the order specified by the user. Do not rely on filename sorting, especially for page-2 and page-10. For scan results, retain capture order and each images[] array's order. Call scan.finish before independent export.
Replace example paths with actual files. Use input_paths consistently for ordered images rather than mixing it with the single-image field. Runtime temporary paths are not delivered local files.
MCP: image-only PDF / OFD
An image-only PDF uses empty steps and a document target:
{
"name": "image.enhance",
"arguments": {
"input_paths": [
"/ABSOLUTE/PATH/TO/page-1.jpg",
"/ABSOLUTE/PATH/TO/page-2.jpg"
],
"pipeline": {
"steps": [],
"target": {
"type": "pdf",
"export_type": "multi-page"
}
}
}
}Keep the returned handle and use the enhancement query tool to obtain final files:
{
"name": "image.enhance_get",
"arguments": {
"handle": "RETURNED_ENHANCE_HANDLE"
}
}Image-only OFD uses the same submit/query sequence with this replacement pipeline:
{
"steps": [],
"target": {
"type": "ofd",
"export_type": "multi-page"
}
}target.export_type: "multi-page" combines images. Explicitly choose single-page for separate outputs per image. Document targets belong to independent enhancement, not scan.start pipelines. Do not set Runtime filesystem fields such as target.path or target.output_dir.
MCP: OCR PDF / OFD
For searchable/copyable text, choose one format below; running both is unnecessary:
{
"name": "ocr.recognize",
"arguments": {
"input_paths": [
"/ABSOLUTE/PATH/TO/page-1.jpg",
"/ABSOLUTE/PATH/TO/page-2.jpg"
],
"format": "pdf",
"export_type": "multi-page"
}
}{
"name": "ocr.recognize",
"arguments": {
"input_paths": [
"/ABSOLUTE/PATH/TO/page-1.jpg",
"/ABSOLUTE/PATH/TO/page-2.jpg"
],
"format": "ofd",
"export_type": "multi-page"
}
}Pass the handle from that submission to ocr.get:
{
"name": "ocr.get",
"arguments": {
"handle": "RETURNED_OCR_HANDLE"
}
}export_type: "multi-page" combines output; single-page exports individually. Supply extra options only through official params, without guessing language or engine settings. Unsupported formats/services return errors without automatically changing formats or services.
Equivalent CLI operations
For image-only PDF, save this JSON as image-pdf.json, then run:
{
"steps": [],
"target": {
"type": "pdf",
"export_type": "multi-page"
}
}czur-open image enhance "./page-1.jpg" "./page-2.jpg" --pipeline "./image-pdf.json" --output-dir "./documents" --task-timeout 300000 --jsonFor image-only OFD, save this configuration as image-ofd.json:
{
"steps": [],
"target": {
"type": "ofd",
"export_type": "multi-page"
}
}czur-open image enhance "./page-1.jpg" "./page-2.jpg" --pipeline "./image-ofd.json" --output-dir "./documents" --task-timeout 300000 --jsonOCR output does not need those pipelines. Choose one command for your target:
czur-open ocr recognize "./page-1.jpg" "./page-2.jpg" --format pdf --export-type multi-page --output-dir "./documents" --task-timeout 300000 --json
czur-open ocr recognize "./page-1.jpg" "./page-2.jpg" --format ofd --export-type multi-page --output-dir "./documents" --task-timeout 300000 --jsonInputs are submitted in the supplied order. For individual OCR exports, use --export-type single-page. For image-only exports, change target.export_type in JSON. The CLI waits and downloads automatically; inspect the exit code and status, then read actual paths from files[].path.
Delivery and review
For nonterminal MCP states, retain the handle and query at intervals. Report assets[].local_path, file_uri, content_type, size, and warnings only after successful terminal delivery. file_uri refers to the Server computer, not a public download link. MCP has no output_dir argument; configure its cache location at startup. Use host file tools for a requested copy to another directory, without overwriting existing files.
Open documents to check page counts, order, and content. Input image count is not an independently verified output page count. For OCR PDF, search/copy sample text too. If independent checking is unavailable, say “exported as OCR PDF; the text layer was not independently verified” instead of claiming verified searchability.
Cancel with the corresponding image.enhance_cancel or ocr.cancel. Unconfirmed cancellation, disconnection, unknown handles, or failed delivery must not trigger automatic resubmission or claims that computation has stopped. See tasks and file delivery.