OFD Reader (China e-invoices)
v0.1.0Read Chinese OFD documents: e-invoice (fapiao) fields, official documents, statements.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ofd_to_text Read OFD document
Extract the text of a Chinese OFD document (GB/T 33190: e-invoices 电子发票/数电票, official documents, bank statements) in reading order, page by page. Pass exactly one of path | url | base64.
| Parameter | Type | Description |
|---|---|---|
base64 | string | Base64 file contents (for clients that cannot share a path) |
maxChars | integer | |
path | string | Local file path of a .ofd file |
url | string | http(s) URL of a .ofd file |
ofd_invoice_fields Read OFD e-invoice fields
Extract structured fields from a Chinese OFD e-invoice (发票): invoice number and code, issue date, buyer and seller name and tax ID, amount before tax, tax, total. Uses the invoice's embedded tags, else the printed labels. Pass exactly one of path | url | base64.
| Parameter | Type | Description |
|---|---|---|
base64 | string | Base64 file contents (for clients that cannot share a path) |
path | string | Local file path of a .ofd file |
url | string | http(s) URL of a .ofd file |
ofd_info OFD file info
Quick facts about an OFD file without the full text: title, author, creator software, creation date, page count, whether it is digitally signed, attachments, embedded tags.
| Parameter | Type | Description |
|---|---|---|
base64 | string | Base64 file contents (for clients that cannot share a path) |
path | string | Local file path of a .ofd file |
url | string | http(s) URL of a .ofd file |