| Module | API |
| office-file.js | await OfficeFile.open(bytesOrBlob) → { package, kind, document } (throws with code "compound-file", "opendocument", "not-ooxml", "not-zip"); file.vba(), file.vbaParts(), file.removeMacros(), file.refresh(), await file.save(). |
| office-package.js | OfficePackage: parts, part(name), contentType(name), contentTypes, relationships(source), allRelationships(), relationshipsTo(name), relationship(source, id), resolve(source, target), mainPart, kind, properties(), bytes/text/xml/tryXml(name); editing inside change(label, fn): modify(name) (the tree to change), writePart, deletePart, addRelationship, removeRelationship, setContentType, removeProperties(options), removeMacros(); undo(), dirty, changedParts(), currentBytes(name), await save(), suggestedName(fileName). |
| word-document.js | new WordDocument(pkg): stories, body, paragraphs (style, direct, mark, runs, numbering, table, section), sections, fields, hyperlinks, bookmarks, contentControls, drawings, trackedChanges, comments, notes, settings; paragraphFormatting(p), runFormatting(run), markFormatting(p), styleUsage(), isHidden(run); edits clearDirectFormatting(paragraphs | "all", options), clearRunFormatting(run), removeDirectProperty(target, local, attributes), setParagraphStyle, setRunText, deleteParagraph, deleteRun, acceptChange/rejectChange/acceptAll/rejectAll, deleteComment/deleteAllComments, removeHiddenText(), removeAttachedTemplate(). |
| word-styles.js | WordStyles (list, get, chain, defaultStyle, docDefaults, latent, themeFonts), WordNumbering (abstracts, instances, level, label, formatNumber), WordFormatting.resolve(levels, WordFormatting.PARAGRAPH | RUN, themeFonts). |
| workbook.js | new Workbook(pkg): sheets, definedNames, properties, sharedStrings, styles, cellFormat(index), externalLinks, connections, pivotCaches, worksheet(sheet) (cells, merged, hyperlinks, validations, conditional formats, protection, tables, comments, drawings, pivot and query tables, controls); edits setSheetState, setCell, removeProtection, removeExternalLink/removeAllExternalLinks, removeConnection/removeAllConnections, deleteDefinedName, removeMacros(); helpers Workbook.shiftFormula, columnName, parseAddress, isDateFormat, dateFromSerial. |
| presentation.js | new Presentation(pkg): slides (shapes, notes, comments, links, media, layout, master), layouts, masters, sections, links, properties; paragraphFormatting, runFormatting, textLevels; edits clearDirectFormatting, removeDirectProperty, setRunText, setSlideHidden, deleteSlide, deleteShape, deleteNotes, deleteComments. |
| office-review.js | OfficeReview.review(file) → [{ severity, category, title, detail, parts, where }]. |
| compound-file.js, vba-project.js, ole-object.js | CompoundFile.parse(bytes) (entries, get, read, describe); VbaProject.parse(bytes) (modules with source, references, protection), VbaProject.scan(source), VbaProject.decompress; OleObject.describe(bytes) (class, ProgID, link moniker, OLE Package file). |
| ooxml.js | Ooxml: lookups by local name (child, children, descendants, attribute, relationshipId, references), isOn, content type names, units. |