lbb_files
Files of the graph, read only. A file is a document the graph holds (its bytes and a Document entity); the documents.parse workflow (lbb_workflows) reads the text layer of each PDF into pages with every line and its box.
Instructions
Files of the graph, read only. A file is a document the graph holds (its bytes and a Document entity); the documents.parse workflow (lbb_workflows) reads the text layer of each PDF into pages with every line and its box. list shows the files with their sha256, name, size, Document IRI and parse (status parsed, unsupported or failed, page_count). pages reads parsed pages of one file (sha256, or name for an exact file name): from is the first 0-based page index (the page of a region and of a DocEntry or DocMention), to the page after the last one (default from+1). Each line comes as <line id> [x0,y0,x1,y1] <text>: the id is p-l, both from 1, and the box is normalized to the page (0 to 1, origin top left). contains keeps the lines that hold a text; max_lines caps the lines (default 200). When lines were left out, next names the from and line_offset of the next call. A file not parsed yet answers file_not_parsed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | pages: the page index after the last one. Default from+1; at most 50 pages per call. | |
| from | No | pages: the first page index, 0-based. Default 0. | |
| name | No | pages: the file's exact name, when you do not have its sha256. | |
| graph | No | Graph to target; defaults to the connection's graph | |
| action | Yes | ||
| detail | No | Response detail level. Defaults to compact. | |
| sha256 | No | pages: the file's SHA-256 (64 hex characters). | |
| contains | No | pages: only the lines whose text holds this, ignoring case. | |
| max_lines | No | pages: the most lines to return. Default 200. | |
| line_offset | No | pages: lines of the first page to skip, from a previous call's next. |