structured numbers reading: tn.documentarchive -> sheets -> table infos -> table models -> tiles -> decoded cell grids. field numbers verified against real documents with numbers-parser as the reference.
Example: cmd: -r:off
import src/iwork/numbers import iwork let book = openDocument("budget.numbers") for sheet in book.sheets: for table in sheet.tables: echo sheet.name, " / ", table.name echo toCsv(table)
Procs
proc numbersSheets(idx: ObjectIndex): seq[Sheet] {. ...raises: [IworkFormatError, KeyError, Exception], tags: [RootEffect], forbids: [].}
- walks the numbers document into sheets with decoded tables Source Edit