quds_office_engine library

Pure Dart Office Open XML engine.

This library has no Flutter / dart:ui dependency and can run on CLI, server, web, and native targets.

Classes

Aes
AES-128/192/256 (FIPS-197) with CBC and optional PKCS#7 padding.
ArabicShaper
Isolated / initial / medial / final shaping plus obligatory Lam-Alef ligatures.
BidiParagraph
Result of running the Unicode Bidirectional Algorithm on a paragraph.
BidiRun
One directional run after UAX #9 reordering.
BinaryNode
Class BinaryNode.
BrokenLine
A laid-out line of shaped visual glyphs.
ByteCursor
Sequential little-endian / big-endian cursor over a Uint8List.
ByteSink
Growable little-endian byte sink used by writers.
ByteSource
Random-access byte provider used by ZIP and CFBF readers.
CallNode
Class CallNode.
CellNode
Class CellNode.
CfbfDirectoryEntry
One 128-byte directory entry.
CfbfFile
Parsed Compound File Binary (OLE 2.0 structured storage).
CfbfHeader
CFBF header (first 512 bytes).
CfbfWriter
Builds a version-3 (512-byte sector) Compound File Binary.
ChartDisplay
Legend, labels, axes, and titles for a chart or diagram.
ChartPoint
Class ChartPoint.
ChartSeries
Named series used by multi-series line / area / stacked charts.
CmapTable
Character-to-glyph map supporting cmap format 4 and 12.
ContentTypes
Parsed [Content_Types].xml (Defaults + Overrides).
Crc32
IEEE CRC-32 as used by ZIP and PNG.
DocxDocumentBuilder
Fluent Word builder: headings, lists, RTL tables, images, charts, comments.
DocxHeaderFooter
Class DocxHeaderFooter.
Class DocxHyperlink.
DocxPlainReader
Extracts plain paragraphs, tables, and hyperlinks from a .docx package.
DrawingmlCharts
DrawingML chart parts shared by Word and PowerPoint.
DrawingmlVisualIo
Shared DrawingML conversions used by Word, Excel, and PowerPoint writers.
EmbeddedPart
Extracts and packages nested OOXML documents stored as OLE objects.
FontMetrics
Horizontal metrics resolved in typographic points (1 pt = 1/72 inch).
FontSubset
Result of subsetting a TrueType font to the glyphs actually used.
FontSubsetter
Builds a minimal TrueType containing only the requested code points.
FormulaContext
Class FormulaContext.
FormulaDepGraph
Dependency graph with topological recalculation and cycle detection.
FormulaEvaluator
Class FormulaEvaluator.
FormulaFnDoc
Localized documentation for one implemented function.
FormulaFunctionGuide
Catalog of every function FormulaFunctions evaluates.
FormulaFunctions
Broad catalog of spreadsheet functions (Excel-like names; not full Excel).
FormulaLexer
Tokenizes an Excel formula (leading = optional).
FormulaNameQuery
Class FormulaNameQuery.
FormulaNode
Class FormulaNode.
FormulaParser
Pratt / recursive-descent parser.
FormulaRefScanner
Finds A1 / range tokens in a formula while it is being typed.
FormulaRefSpan
A cell or range reference inside a formula, with source offsets.
FormulaSpill
A spilled array written into adjacent cells (SEQUENCE).
FormulaToken
Class FormulaToken.
GlyphOutline
Decoded TrueType glyf outline.
GlyphOutlineDecoder
Converts TrueType quadratic contours (and composites) to path commands.
GlyphPathCommand
Class GlyphPathCommand.
GraphemeCluster
UAX #29 grapheme-cluster segmentation used for caret hit-testing.
GraphemeClusters
Class GraphemeClusters.
ImageFit
Raster contain-fit helpers shared by Word, PPTX, and PDF writers.
ImageSize
Intrinsic pixel size of a raster image.
IsolatedEmbeddedPackage
Isolated child package extracted from (or destined for) an OLE embedding.
LaidOutBand
Class LaidOutBand.
LaidOutBox
Decorative box in page coordinates (table cell, picture, chart).
LaidOutDocument
Class LaidOutDocument.
LaidOutGlyph
Class LaidOutGlyph.
LaidOutLine
Class LaidOutLine.
LaidOutOmml
Class LaidOutOmml.
LaidOutOmmlItem
Class LaidOutOmmlItem.
LaidOutOmmlRule
Class LaidOutOmmlRule.
LaidOutOmmlSlot
Class LaidOutOmmlSlot.
LaidOutOmmlStroke
Class LaidOutOmmlStroke.
LaidOutOmmlText
Class LaidOutOmmlText.
LaidOutPage
Class LaidOutPage.
LineBreaker
UAX #14 opportunities + Knuth–Plass least-demerits wrapping.
LiteralNode
Class LiteralNode.
MemoryByteSource
In-memory ByteSource backed by a single Uint8List.
NamedRangeNode
Resolves a workbook defined name.
OfficeColors
Named RRGGBB colors for OfficePalette, cell fills, and PDF text.
OfficeContentTypes
Well-known OPC / Office content types.
OfficeCrypto
File-level Office password encryption (MS-OFFCRYPTO Agile + Standard).
OfficeDiagnosis
Class OfficeDiagnosis.
OfficeDocumentProperties
Dublin Core / App properties stored in docProps/core.xml and app.xml.
OfficeDocumentTheme
Product-agnostic document theme injected into fluent builders.
OfficeExtractSheet
Class OfficeExtractSheet.
OfficeExtractSlide
Class OfficeExtractSlide.
OfficeFind
Model-level find and replace. Hosts drive caret / selection from hits.
OfficeFindHit
One hit inside a document, workbook, or deck.
OfficeFindOptions
Options shared by find / replace across Word, sheets, and slides.
OfficeFontResolver
Picks covering faces from a candidate list for a body of text.
OfficeFontSet
One or more glyf-backed faces used when embedding PDF text.
OfficeIsolateOpen
Decodes Office packages on a worker isolate so the UI isolate stays live.
OfficeIsolateSave
Encodes Office packages on a worker isolate so the UI isolate stays live.
OfficeIssue
Class OfficeIssue.
OfficeMarkup
Shared OOXML text helpers used by the document builders.
OfficeNamespaces
ECMA-376 / OPC namespace URIs used across Word, Excel, PowerPoint, and DrawingML.
OfficeOpenProgress
Progress while a package is decoded on a worker isolate.
OfficePageMargins
Word w:pgMar in twips. Defaults match a typical 0.79" office margin.
OfficePageSize
Page extents used by document builders (EMU) and PDF (points).
OfficePalette
Document-level colors, type, and page size shared by Word, PPTX, XLSX, and PDF.
OfficePdfExport
Office-faithful PDF 1.7 export for Word, Excel, and PowerPoint models.
OfficePdfVisuals
Paints OfficeVisual charts, diagrams, and pictures onto a PDF page.
OfficePrint
Compiles a printable PDF from the live models.
OfficePrintSettings
Shared print / PDF range used by every host.
OfficeRepair
Diagnoses why an Office file will not open and rebuilds a clean package when the damage is recoverable.
OfficeRepairResult
Class OfficeRepairResult.
OfficeSaveCost
Cost heuristics so hosts can offload ZIP/XML encoding off the UI isolate.
OfficeSpell
Walks words and asks checker — or a tiny built-in Latin/Arabic split.
OfficeSpellIssue
One misspelled span the host can underline or offer replacements for.
OfficeTextExtract
Class OfficeTextExtract.
OfficeTextExtractor
Format-generic plain-text facade for RAG / search. No prompt logic.
OfficeTextStats
Counts that Word / Excel / PowerPoint hosts show in a status bar.
OfficeTypeface
Shared typeface names, sizes, and script helpers for Word and PDF.
OfficeVisual
Class OfficeVisual.
OleClsids
Well-known OLE CLSIDs for Office embeddings.
OmmlAcc
Class OmmlAcc.
OmmlBar
Class OmmlBar.
OmmlCharRef
Class OmmlCharRef.
OmmlDelim
Class OmmlDelim.
OmmlEdit
Slot navigation and structural edits on an OmmlEquation.
OmmlEquation
Class OmmlEquation.
OmmlFrac
Class OmmlFrac.
OmmlFunc
Class OmmlFunc.
OmmlGallery
Class OmmlGallery.
OmmlGalleryItem
Built-in Equation gallery matching the Word Insert → Equation list.
OmmlIo
Reads and writes Office Math (m:oMath / m:oMathPara).
OmmlLayout
Professional / linear box layout for an OmmlEquation.
OmmlLimLow
Class OmmlLimLow.
OmmlLinear
UnicodeMath-style linear format used by Word's Linear / Professional toggle.
OmmlLinearPlain
Class OmmlLinearPlain.
OmmlMatrix
Class OmmlMatrix.
OmmlNary
Class OmmlNary.
OmmlNode
Class OmmlNode.
OmmlRad
Class OmmlRad.
OmmlScript
Class OmmlScript.
OmmlSeq
Class OmmlSeq.
OmmlText
Class OmmlText.
OpcPackage
In-memory OPC package backed by a streaming ZIP archive.
OpcUris
OPC URI helpers (ECMA-376 Part 2).
PackagePart
Stream-based OPC part. Bytes stay in the owning OpcPackage until readBytes or openStream is called.
PackageRelationship
One <Relationship> row.
PdfAcroForm
Class PdfAcroForm.
PdfAnnot
Markup or navigation annotation (ISO 32000-1 §12.5).
PdfBox
Axis-aligned PDF rectangle in user space.
PdfCanvas
Vector emitter: cm, BT/ET, Tf, Td, TJ, m/l/c/re/f/S.
PdfCidFont
Type 0 / CIDFontType2 + Identity-H + ToUnicode CMap for a subset TTF.
PdfClipPath
W / W* clip (already mapped to page space).
PdfCos
Closed COS value union (ISO 32000-1 §7.3).
PdfCosArray
Class PdfCosArray.
PdfCosBool
Class PdfCosBool.
PdfCosDict
Class PdfCosDict.
PdfCosInt
Class PdfCosInt.
PdfCosName
Class PdfCosName.
PdfCosNull
Class PdfCosNull.
PdfCosReal
Class PdfCosReal.
PdfCosRef
Indirect reference id gen R.
PdfCosStream
Stream object: dictionary plus undecoded bytes.
PdfCosString
Literal or hexadecimal PDF string.
PdfDisplayList
Device-independent page paint ops (ISO 32000 content stream result).
PdfDocInfo
Document Info dictionary (ISO 32000-1 §14.3.3).
PdfDocument
Native PDF 1.7 compiler.
PdfDrawImage
Class PdfDrawImage.
PdfDrawText
Class PdfDrawText.
PdfEmbeddedFace
One embedded CID face written as /FontFile2.
PdfEmbeddedFile
Embedded file from the /EmbeddedFiles name tree.
PdfEmbeddedImage
Class PdfEmbeddedImage.
PdfExtract
Text helpers for an opened PdfFile.
PdfExtractedPage
One page ready to be written as a new file.
PdfFile
Opened PDF file (ISO 32000). Parallel to OOXML models — not the writer.
PdfFillPath
Class PdfFillPath.
PdfFlate
FlateDecode wrapper for PDF content and font streams.
PdfFormField
AcroForm field (ISO 32000-1 §12.7).
PdfHotspot
Clickable annotation hotspot in top-left page space.
PdfImageCodec
PNG (IHDR/IDAT) and JPEG embedding helpers. No Flutter / dart:ui.
PdfIncrementalSave
Appends annotation / form / page-tree updates (ISO 32000-1 §7.5.6).
PdfLayer
Optional content group (ISO 32000-1 §8.11).
PdfLinkAction
Resolved navigation action the host may follow.
PdfLinkAnnot
Class PdfLinkAnnot.
PdfOpenPayload
Isolate (or sync) result of opening a PDF.
PdfOutlineItem
Bookmark entry for the PDF document outline tree.
PdfOutlineNode
Outline node (ISO 32000-1 §12.3.3).
PdfPage
Class PdfPage.
PdfPageInfo
Page boxes and rotation after inheritance (ISO 32000-1 §7.7.3 / §14.11.2).
PdfPageIo
Builds a new 1.7 file from selected pages (extract / blank).
PdfPageRec
Internal page record.
PdfPageSource
One input file and the ranges to take from it.
PdfPageView
Maps unrotated crop-space points into the clockwise /Rotate view.
PdfPaintOp
One paint command.
PdfPathVerb
Class PdfPathVerb.
PdfPoint
Class PdfPoint.
PdfQuad
Class PdfQuad.
PdfRaster
Decoded raster ready for a PDF image XObject.
PdfRect
Class PdfRect.
PdfRedactRect
One redaction rectangle recorded on a page.
PdfReportBuilder
Block-oriented PDF 1.7 report surface. Branding comes from theme only.
PdfRestoreGState
Q — pop graphics state.
PdfSaveGState
q — push graphics state (clip + transform) for the painter.
PdfSaveOptions
Options applied when compiling a PDF (PdfDocument.save).
PdfSecurity
ISO 32000-1 §7.6 Standard security handler (Rev 2–4, plus Rev 5/6 AES-256).
PdfSheetPrintOptions
Print layout for worksheet PDF (Office Print defaults to A4 portrait).
PdfSignatureInfo
Signature field snapshot. Creation of new signatures is out of Phase 6.
PdfSplitSpec
Split rule.
PdfStrokePath
Class PdfStrokePath.
PdfStructNode
Tagged-PDF node from /StructTreeRoot (ISO 32000-1 §14.7). Read-only.
PdfTextRun
Selectable text run with a box in top-left page space.
PdfToolbox
Page assembly: merge, split, extract, reorder, rotate.
PdfViewerPrefs
Catalog /ViewerPreferences (ISO 32000-1 §12.2).
PdfXfdf
XFDF import/export (ISO 32000-1 §12.7.8 / XFDF spec subset).
PictureAdjust
Crop, tone, rotation, stroke, wrap, and effects applied to a picture.
PmlAnimSample
Class PmlAnimSample.
PmlArrange
Align / distribute / section helpers for a deck.
PmlLayout
Class PmlLayout.
PmlMaster
Class PmlMaster.
PmlMorph
Matches shapes between two slides and samples Morph frames.
PmlMorphFrame
Interpolated shape drawn during a Morph transition.
PmlMorphPair
Class PmlMorphPair.
PmlMotionCatalog
Class PmlMotionCatalog.
PmlPathPoint
Class PmlPathPoint.
PmlPresentation
Class PmlPresentation.
PmlSection
A named group of consecutive slides in the sorter.
PmlSections
Named slide sections in the sorter.
PmlShape
Class PmlShape.
PmlShapeAnimation
Class PmlShapeAnimation.
PmlSlide
Class PmlSlide.
PmlSlideShow
Click-driven slideshow clock for transitions and shape animations.
PmlSlideTransition
Class PmlSlideTransition.
PmlTable
Class PmlTable.
PmlTableCell
Class PmlTableCell.
PmlTransform
Class PmlTransform.
PngBytes
Minimal RGB PNG writer used for demo pictures (no dart:ui).
PptxDeckBuilder
Fluent PowerPoint builder: geometric layouts, charts, notes, contain-fit images.
PptxPalette
Class PptxPalette.
RangeNode
Class RangeNode.
RawDeflate
Raw DEFLATE (RFC 1951) inflate / deflate used by ZIP method 8.
RelationshipCollection
.rels collection with a monotonic rId allocator.
RelationshipTypes
OPC relationship type URIs used when allocating .rels entries.
SfntFont
Parsed TrueType / OpenType SFNT font.
SfntTableRecord
Table directory entry.
ShapedChar
One shaped character. Diacritics keep advanceFactor = 0.
ShapedGlyph
Shaped visual glyph with document metrics in points.
SharedStringTable
Streaming shared-string table with write-side deduplication.
SheetChartData
Builds chart points from a worksheet range, evaluating formulas.
SheetDeserializer
Class SheetDeserializer.
SheetDrawingIo
SpreadsheetML drawings (xdr:wsDr / xdr:oneCellAnchor).
SheetSerializer
Class SheetSerializer.
SlideDeserializer
Class SlideDeserializer.
SlideSerializer
Class SlideSerializer.
SmlAnalysis
Sort / filter / validate / paint helpers.
SmlAutoFilter
AutoFilter + sort on a worksheet range.
SmlCell
Class SmlCell.
SmlCellRef
Class SmlCellRef.
SmlComment
A cell comment (comments.xml).
SmlConditionalRule
One conditional-format rule.
SmlDataValidation
Data-validation rule on a range.
SmlDrawing
Floating drawing anchored to a worksheet cell.
SmlHeaderFooter
Class SmlHeaderFooter.
SmlMerge
A merged rectangle (mergeCell/@ref), inclusive on every edge.
SmlNamedRange
A workbook-defined name (definedName).
SmlPivotTable
A compact pivot cache: one row field, one data field, SUM aggregation.
SmlPowerQuery
Loads a delimited table into a worksheet (CSV helper — not full Power Query).
SmlRange
Class SmlRange.
SmlRow
Class SmlRow.
SmlSheetProtection
Worksheet protection flag.
SmlSolver
Goal Seek / one-variable solver.
SmlSortKey
Sort one column inside a range.
SmlSparkline
A sparkline bound to a source range and drawn in anchor.
SmlStyleSheet
Parsed styles.xml subset: numFmts, fills, fonts, and cellXfs.
SmlTable
An Excel Table (ListObject).
SmlWorkbook
Class SmlWorkbook.
SmlWorksheet
Class SmlWorksheet.
Uax9Bidi
Full UAX #9 implementation for a single paragraph.
UnaryNode
Class UnaryNode.
VisualPalette
Class VisualPalette.
WmlBlock
Class WmlBlock.
WmlBorder
Class WmlBorder.
WmlBreak
Class WmlBreak.
WmlCitation
A bibliographic source referenced from the document body.
WmlClone
Deep copies of Word blocks so cut / paste / undo never share mutable state.
WmlComment
Class WmlComment.
WmlDocument
Class WmlDocument.
WmlEquation
Class WmlEquation.
WmlFrame
Absolutely positioned text box / shape, independent of the story flow.
WmlHeadingRef
Class WmlHeadingRef.
WmlHighlight
Maps Word w:highlight names (and raw hex) to RRGGBB.
Office-style hyperlink: heading/bookmark, web URL, or local file.
WmlIndent
Class WmlIndent.
WmlIndexMark
An index term marked in the document.
WmlInline
Class WmlInline.
WmlNote
Footnote or endnote body.
WmlObject
Class WmlObject.
WmlPageMargins
Class WmlPageMargins.
WmlPageSize
Class WmlPageSize.
WmlParagraph
Class WmlParagraph.
WmlParagraphProps
Class WmlParagraphProps.
WmlRevision
One tracked change that can be accepted or rejected.
WmlRun
Class WmlRun.
WmlRunEdit
Split and format WmlRun spans inside a paragraph.
WmlRunProps
Class WmlRunProps.
WmlSection
Class WmlSection.
WmlStyle
A paragraph + run style that hosts can show in a gallery.
WmlTable
Class WmlTable.
WmlTableCell
Class WmlTableCell.
WmlTableProps
Class WmlTableProps.
WmlTableRow
Class WmlTableRow.
WmlTabStop
Class WmlTabStop.
WmlToc
Live table of contents built from heading paragraphs.
WmlTocEntry
Class WmlTocEntry.
WmlVisual
Class WmlVisual.
WmlVisualImage
Class WmlVisualImage.
WordCaptions
Figure / table captions using the Caption style.
WordCitations
Citation / bibliography / index helpers.
WordComment
Review comments attached to text runs.
WordCompare
Builds insert/delete revisions that turn original into revised.
WordDeserializer
Reads a .docx OPC package into a WmlDocument tree.
WordDrawingIo
Word inline pictures (w:drawing / wp:inline / pic:pic).
WordFields
Resolves and refreshes Word fields stored on WmlParagraphProps.
WordLayoutEngine
Flowable pagination: Knuth-Plass lines accumulated into physical pages.
WordLikeMedia
Class WordLikeMedia.
Bookmark names, link look, and heading cross-references.
WordLists
Multilevel list scheme (1 / 1.1 / أ).
WordMailMerge
Replaces «Field» / MERGEFIELD Field tokens from a data table.
WordNotes
Inserts and looks up notes on a WmlDocument.
WordOpenPayload
Word document plus its print layout after an isolate (or sync) open.
WordRevisions
Track-changes helpers on WmlDocument.
WordSerializer
Writes a WmlDocument back to a .docx OPC package.
WordStyles
Built-in Word styles and apply / inspect helpers.
WordTable
Locate and mutate Word tables (insert / delete rows and columns).
WordToc
Heading styles and live TOC field maintenance.
XlsxCell
Class XlsxCell.
XlsxGridCell
Display text plus optional raw number / Excel date serial.
XlsxGridReader
Reads worksheets as string grids and optional header→row maps.
XlsxNamedSheet
Class XlsxNamedSheet.
XlsxSheetBuilder
Class XlsxSheetBuilder.
XlsxWorkbookBuilder
Multi-sheet workbook writer with styles, freeze, merges, RTL, and filters.
XmlAttribute
Attribute on an XmlElement.
XmlCdata
CDATA node.
XmlComment
Comment node.
XmlDocument
Document wrapper holding an optional XML declaration and a root element.
XmlElement
Element node with attributes and ordered children.
XmlNode
Lightweight mutable XML node.
XmlPullReader
Low-allocation XML 1.0 pull parser.
XmlText
Character data node.
XmlWriter
High-speed buffered XML 1.0 serializer.
ZipEntry
Central-directory entry describing one ZIP member.
ZipReader
Streaming ZIP reader. Loads only the central directory up front and inflates individual members on demand.
ZipWriter
Streaming ZIP writer that emits local headers as parts are added and finishes with a central directory plus EOCD (ZIP64 when required).

Enums

ArabicJoinForm
Arabic joining form after contextual analysis.
BidiClass
Unicode bidirectional classes (UAX #9).
CfbfObjectType
Directory object type (MS-CFB §2.6.1).
ChartKind
Enum ChartKind.
ChartLegendPos
Legend placement (c:legendPos).
FormulaFnCategory
Category for the in-app Excel function guide.
FormulaTokenKind
Enum FormulaTokenKind.
GlyphPathOp
A quadratic Bézier path command in font units.
LaidOutBoxKind
Enum LaidOutBoxKind.
OfficeExtractKind
Enum OfficeExtractKind.
OfficeIssueCode
Enum OfficeIssueCode.
OfficeIssueSeverity
Enum OfficeIssueSeverity.
OfficeVisualKind
In-document visual: picture, chart, or SmartArt-style diagram.
OmmlDisplay
Office Math (OMML) tree used by Word equations.
OmmlFracType
Enum OmmlFracType.
OmmlScriptKind
Enum OmmlScriptKind.
OmmlStrokeKind
Enum OmmlStrokeKind.
OmmlStructure
Structural templates inserted from the Equation Tools ribbon.
OmmlView
Enum OmmlView.
OpcPackageKind
Kind of office package, inferred from the officeDocument relationship and [Content_Types].xml overrides.
OpcPackageKindHint
Discriminator that does not import OPC.
PdfBlendMode
ExtGState /BM subset (ISO 32000-1 §8.4.5).
PdfExtractMode
How PdfToolbox.extract writes several ranges.
PdfLinkKind
Class PdfLinkKind.
PdfOpenError
Typed failure while opening or decoding a PDF file (ISO 32000).
PdfPathKind
Class PdfPathKind.
PdfRedactMode
Visual markup vs content-removal redaction (ISO 32000-1 §12.5.6).
PdfSignatureStatus
How a signature field is treated (P6.6).
PdfSlideExportMode
How a deck is paginated — matching PowerPoint's print what.
PdfSplitKind
How PdfToolbox.split cuts one file.
PictureWrap
Text wrapping for a Word inline / floating picture (wp:inline / wp:anchor).
PmlAlignAxis
Align selected shapes to a shared edge or center.
PmlAnimClass
Enum PmlAnimClass.
PmlAnimPreset
Enum PmlAnimPreset.
PmlAnimTrigger
Enum PmlAnimTrigger.
PmlMorphRole
Enum PmlMorphRole.
PmlShapePreset
Enum PmlShapePreset.
PmlTextAlign
Enum PmlTextAlign.
PmlTransitionDir
Enum PmlTransitionDir.
PmlTransitionKind
Slide-to-slide transition, matching the common PowerPoint gallery.
RelationshipTargetMode
Internal vs. external relationship target (ECMA-376 Part 2 §9.3).
SmlCellType
Enum SmlCellType.
SmlConditionalKind
Conditional format kinds hosts can paint.
SmlHAlign
Horizontal cell alignment (alignment/@horizontal).
SmlSparklineKind
In-cell sparkline (line or column).
SmlValidationKind
How a cell value is validated.
WmlBreakType
Enum WmlBreakType.
WmlFieldKind
Live Word field kinds we evaluate on layout / update.
WmlFrameAnchor
Enum WmlFrameAnchor.
WmlFrameWrap
Enum WmlFrameWrap.
WmlJustification
Enum WmlJustification.
WmlLineSpacingRule
Enum WmlLineSpacingRule.
WmlRestrictMode
What a restricted document still allows.
WmlRevisionKind
Insert or delete tracked as a Word revision.
WmlSectionBreakKind
How the next section starts.
WmlTabAlignment
Enum WmlTabAlignment.
WmlTabLeader
Enum WmlTabLeader.
WmlUnderline
Enum WmlUnderline.
WmlVertAlign
Enum WmlVertAlign.
WmlVMerge
Enum WmlVMerge.
WordTableAutoFit
Enum WordTableAutoFit.
XmlEventType
Event kinds emitted by XmlPullReader.

Extensions

WmlVertAlignMetrics on WmlVertAlign
Word-like script metrics: about two-thirds size, raised or lowered.

Constants

cfbfDifatSect → const int
cfbfEndOfChain → const int
cfbfFatSect → const int
cfbfFreeSect → const int
cfbfNoStream → const int
cfbfSignature → const List<int>
Compound File Binary signature: D0 CF 11 E0 A1 B1 1A E1.
kDefaultTabWidth → const double
Word's default tab-stop interval (0.5 inch).
zipCentralSig → const int
zipDataDescriptorSig → const int
zipEocd64LocatorSig → const int
zipEocd64Sig → const int
zipEocdSig → const int
zipLocalSig → const int
zipMethodDeflate → const int
zipMethodStore → const int

Functions

applyNumberFormat(Object? value, String code) → String
ECMA-376 §18.8.30 number formats (common subset).
asFormulaNumber(Object? v) → double?
asFormulaNumber helper.
caretClusters(String text) → List<GraphemeCluster>
Expose cluster bounds for caret engines.
decodeXmlEntities(String raw) → String
Decodes XML predefined and numeric character entities.
encodeXmlAttribute(String raw) → String
Encodes text for a double-quoted XML attribute.
encodeXmlText(String raw) → String
Encodes text for XML character data.
evaluateFormula(String source, FormulaContext ctx) → Object?
evaluateFormula helper.
excelSerialToDate(double serial) → DateTime
Excel 1900-date-system serial → UTC date (leap-year bug included).
flattenNumbers(Object? v) → List<double>
flattenNumbers helper.
flattenValues(Object? v) → List<Object?>
flattenValues helper.
formatExcelDate(DateTime dt, String code) → String
formatExcelDate API.
formulaString(Object? v) → String
formulaString helper.
logicalToVisualX(BrokenLine line, int logicalIndex) → double
Maps a logical index to a visual caret X on line.
officeEmptyXmlBytes(String xml) → List<int>
UTF-8 helper used when creating empty parts.
officeParagraphDirectionFromSides({required bool leftCtrl, required bool rightCtrl, required bool leftShift, required bool rightShift, bool extraKeys = false}) → bool?
Windows / Linux paragraph direction from same-side Ctrl+Shift.
ommlMeasure(String text, double fontSize) → double
ommlMeasure helper.
parseChartVisual(String xml, {double width = 360, double height = 180}) → OfficeVisual
parseChartVisual helper.
parseFormula(String source) → FormulaNode
parseFormula helper.
parseHexInt(String? raw) → int?
parseHexInt helper.
parseSlideMotion(String xml, PmlSlide slide) → void
parseSlideMotion helper.
parseSlideShapes(String xml) → List<PmlShape>
parseSlideShapes helper.
pdfCosInt(PdfCos? value) → int?
Integer helper.
pdfCosName(PdfCos? value) → String?
Name helper.
pdfCosNumber(PdfCos? value) → double?
Numeric helper for mixed int/real COS.
pdfCosRect(PdfCos? value) → ({double llx, double lly, double urx, double ury})?
Rectangle [llx lly urx ury].
pdfCosText(PdfCos? value) → String?
Literal text helper.
pointsToTwips(double points) → int
pointsToTwips helper.
slideToXml(PmlSlide slide, {Map<PmlShape, String>? embedIds}) → String
slideToXml helper.
twipsToPoints(int twips) → double
twipsToPoints helper.
visualXToLogical(BrokenLine line, double x) → int
Hit-test a visual X offset on line and return the logical UTF-16 index.
writeSlideMotion(XmlWriter w, PmlSlide slide) → void
writeSlideMotion helper.

Typedefs

GlyphIdFn = int Function(int codePoint)
Typedef GlyphIdFn.
GlyphWidthFn = double Function(int codePoint)
Width provider used by the breaker (typically FontMetrics.characterWidth).
OfficeSpellChecker = List<OfficeSpellIssue> Function(String text)
Host-supplied dictionary / service. The engine never ships a full lexicon.

Exceptions / Errors

CfbfException
Thrown when a CFBF file is corrupt or unsupported.
OfficePasswordException
Class OfficePasswordException.
OfficePasswordRequiredException
Class OfficePasswordRequiredException.
OfficeRepairException
Class OfficeRepairException.
PdfFilterUnsupported
Stream filter that the interpreter must skip rather than crash.
PdfOpenException
Exception carrying a PdfOpenError.
SfntException
Thrown when an SFNT font is corrupt or missing required tables.
XmlParseException
Thrown when the pull parser encounters malformed XML.
ZipDeflateException
Thrown when a DEFLATE stream is corrupt.
ZipException
Thrown when a ZIP archive is corrupt or uses an unsupported feature.