Classify Post Pdf
Read the key details off a scanned letter (PDF): sender, date, recipient and address, document type (bill, statement, invoice, reminder, notice or other), reference numbers and other facts. scan renders the top of a page in-process with PDFium (WebAssembly) and has an installed @zts/qianfan-ocr behavior read it, all on this machine. scanBatch reads many letters with one load of the model; listPdfs and the scan-mail workflow read a whole directory of post with it.
Global Arguments
| Argument | Type | Description |
|---|---|---|
| ocrBehavior? | string | Name of the @zts/qianfan-ocr behavior that reads the image; create and install it first |
| Argument | Type | Description |
|---|---|---|
| directory | string | Directory of PDFs; absolute, or relative to the repository |
| run? | string | Name the list pdf-list-<run>, so concurrent workflow runs keep their own lists |
| Argument | Type | Description |
|---|---|---|
| pdfPath | string | PDF of a scanned letter; absolute, or relative to the repository |
| Argument | Type | Description |
|---|---|---|
| pdfPaths? | array | PDFs of scanned letters; absolute, or relative to the repository |
| list? | string | Read the PDFs listPdfs listed: the run it was given, or the list's full name (pdf-list when it had no run) |
Resources
Files
Read the key details off every scanned letter (PDF) in a directory with @zts/classify-post-pdf, loading the OCR model once for the whole directory. The run shows one scan step, not progress letter by letter; the scan-batch record says how each letter went. A letter that cannot be read does not fail the run, but a helper crash part way does, keeping what was read. Needs an installed @zts/qianfan-ocr 2026.11.03.1 or later; see the extension's README.
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
- (extension) — New extension with no existing users; it targets swamp releases that load the behavior spelling.