Get document text
doc://host/file/query/text
{
"path": "/docs/umowa.pdf"
}
Documents connector
doc:// turns document text extraction into a first-class URI instead of ad-hoc shell + pdftotext. doc://host/file/query/text returns the text of a PDF or image: a text-layer PDF goes through poppler pdftotext; a scan/image falls back to OCR, rasterising PDF pages (pdftoppm/pdfimages/magick) and running the first available engine — tesseract, then RapidOCR (the ONNX engine reused from wronai/img2nl, no system binary needed), then an Ollama vision model (reused from wronai/ocr). doc://host/file/query/ocr forces OCR; doc://host/engine/query/list reports which engines are present. Useful for classifying invoices and any scanned document over the mesh.
ArrayArrayArraydoc://host/file/query/text
{
"path": "/docs/umowa.pdf"
}
doc://host/file/query/ocr
{
"path": "/scans/faktura.png"
}
curl -fsSL 'https://connect.ifuri.com/install?connectors=doc' | bash
{
"id": "doc",
"name": "Document text / OCR",
"status": "available",
"uriSchemes": [
"doc"
],
"routes": [
"doc://host/file/query/text",
"doc://host/file/query/ocr",
"doc://host/engine/query/list"
],
"install": {
"mode": "urirun-extra",
"pipSpec": "urirun-connector-doc @ git+https://github.com/if-uri/urirun-connector-doc.git@v0.1.0"
},
"hubUrl": "https://connect.ifuri.com/connectors/doc"
}