diff --git a/api/classes/index.AbstractNumbering.html b/api/classes/index.AbstractNumbering.html
index 47d68ef8c4..6c77c57015 100644
--- a/api/classes/index.AbstractNumbering.html
+++ b/api/classes/index.AbstractNumbering.html
@@ -35,7 +35,7 @@ Each abstract definition can contain up to 9 levels.
diff --git a/api/classes/index.Body.html b/api/classes/index.Body.html
index f6551e9111..19de86c85e 100644
--- a/api/classes/index.Body.html
+++ b/api/classes/index.Body.html
@@ -37,7 +37,7 @@ section. The last section's properties are stored as a direct child of the body
diff --git a/api/classes/index.Bookmark.html b/api/classes/index.Bookmark.html
index b7602988c0..aad3a5773e 100644
--- a/api/classes/index.Bookmark.html
+++ b/api/classes/index.Bookmark.html
@@ -31,7 +31,7 @@ of a start marker, content, and an end marker.
diff --git a/api/classes/index.BookmarkEnd.html b/api/classes/index.BookmarkEnd.html
index b9d765c8ee..c2b05fbda7 100644
--- a/api/classes/index.BookmarkEnd.html
+++ b/api/classes/index.BookmarkEnd.html
@@ -35,7 +35,7 @@ taken from bookmarkUniqueNumericId (see BookmarkStart)
diff --git a/api/classes/index.BookmarkStart.html b/api/classes/index.BookmarkStart.html
index 334287be82..5917c61339 100644
--- a/api/classes/index.BookmarkStart.html
+++ b/api/classes/index.BookmarkStart.html
@@ -37,7 +37,7 @@ same as a Bookmark's.
diff --git a/api/classes/index.CellMerge.html b/api/classes/index.CellMerge.html
index 6beab292b1..5976c330a8 100644
--- a/api/classes/index.CellMerge.html
+++ b/api/classes/index.CellMerge.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.CellMergeAttributes.html b/api/classes/index.CellMergeAttributes.html
index 5f95241761..edf5f1e1fa 100644
--- a/api/classes/index.CellMergeAttributes.html
+++ b/api/classes/index.CellMergeAttributes.html
@@ -30,7 +30,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.CheckBoxSymbolElement.html b/api/classes/index.CheckBoxSymbolElement.html
index 344e3d7fff..4f348fe51a 100644
--- a/api/classes/index.CheckBoxSymbolElement.html
+++ b/api/classes/index.CheckBoxSymbolElement.html
@@ -33,7 +33,7 @@ specifying the Unicode character and font to render.
diff --git a/api/classes/index.CheckBoxUtil.html b/api/classes/index.CheckBoxUtil.html
index 71c1276613..8c196e7c52 100644
--- a/api/classes/index.CheckBoxUtil.html
+++ b/api/classes/index.CheckBoxUtil.html
@@ -33,7 +33,7 @@ including its checked state and the symbols used for checked and unchecked state
diff --git a/api/classes/index.CommentRangeEnd.html b/api/classes/index.CommentRangeEnd.html
index 3175552960..67a15fcba1 100644
--- a/api/classes/index.CommentRangeEnd.html
+++ b/api/classes/index.CommentRangeEnd.html
@@ -36,7 +36,7 @@ Must be paired with a CommentRangeStart with the same ID.
diff --git a/api/classes/index.CommentRangeStart.html b/api/classes/index.CommentRangeStart.html
index 13ddb7aad8..a696bc26c1 100644
--- a/api/classes/index.CommentRangeStart.html
+++ b/api/classes/index.CommentRangeStart.html
@@ -36,7 +36,7 @@ Must be paired with a CommentRangeEnd with the same ID.
diff --git a/api/classes/index.CommentReference.html b/api/classes/index.CommentReference.html
index 9ccca3ec5d..a00f50e825 100644
--- a/api/classes/index.CommentReference.html
+++ b/api/classes/index.CommentReference.html
@@ -36,7 +36,7 @@ It should be placed after the CommentRangeEnd element.
diff --git a/api/classes/index.Comments.html b/api/classes/index.Comments.html
index d63828d9d4..d27f3b9f7d 100644
--- a/api/classes/index.Comments.html
+++ b/api/classes/index.Comments.html
@@ -35,7 +35,7 @@ threading is activated and thread data is generated for commentsExtended.xml.
diff --git a/api/classes/index.CommentsIds.html b/api/classes/index.CommentsIds.html
index 6db6dcf067..cfdf055d2c 100644
--- a/api/classes/index.CommentsIds.html
+++ b/api/classes/index.CommentsIds.html
@@ -27,7 +27,7 @@ to a stable w16cid:durableId preserved by Word across edits.
diff --git a/api/classes/index.ConcreteHyperlink.html b/api/classes/index.ConcreteHyperlink.html
index b9172fc83f..fae54dc867 100644
--- a/api/classes/index.ConcreteHyperlink.html
+++ b/api/classes/index.ConcreteHyperlink.html
@@ -30,7 +30,7 @@ Use InternalHyperlink or ExternalHyperlink for creating hyperlinks in documents.
diff --git a/api/classes/index.DeletedTableCell.html b/api/classes/index.DeletedTableCell.html
index b7927a35d5..025aa87031 100644
--- a/api/classes/index.DeletedTableCell.html
+++ b/api/classes/index.DeletedTableCell.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.DeletedTableRow.html b/api/classes/index.DeletedTableRow.html
index b9226ac82a..fd890f400c 100644
--- a/api/classes/index.DeletedTableRow.html
+++ b/api/classes/index.DeletedTableRow.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.DocumentDefaults.html b/api/classes/index.DocumentDefaults.html
index 33df15bb5a..556d8faf0f 100644
--- a/api/classes/index.DocumentDefaults.html
+++ b/api/classes/index.DocumentDefaults.html
@@ -34,7 +34,7 @@ paragraphs and runs in a document unless overridden by a style or direct formatt
diff --git a/api/classes/index.DrawingPatch.html b/api/classes/index.DrawingPatch.html
index 99c4f9b9af..f358d47f9c 100644
--- a/api/classes/index.DrawingPatch.html
+++ b/api/classes/index.DrawingPatch.html
@@ -27,7 +27,7 @@ is one: it replaces the data of a chart made in Word.
diff --git a/api/classes/index.EndnoteIdReference.html b/api/classes/index.EndnoteIdReference.html
index 15511012a9..f08d802b0f 100644
--- a/api/classes/index.EndnoteIdReference.html
+++ b/api/classes/index.EndnoteIdReference.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.EndnoteReferenceRunAttributes.html b/api/classes/index.EndnoteReferenceRunAttributes.html
index d00b7671bc..ed849a233b 100644
--- a/api/classes/index.EndnoteReferenceRunAttributes.html
+++ b/api/classes/index.EndnoteReferenceRunAttributes.html
@@ -30,7 +30,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.Endnotes.html b/api/classes/index.Endnotes.html
index 898b897ae2..c661741112 100644
--- a/api/classes/index.Endnotes.html
+++ b/api/classes/index.Endnotes.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.ExternalHyperlink.html b/api/classes/index.ExternalHyperlink.html
index 20096e6f06..c6c09a95d6 100644
--- a/api/classes/index.ExternalHyperlink.html
+++ b/api/classes/index.ExternalHyperlink.html
@@ -37,7 +37,7 @@ is converted to a ConcreteHyperlink with the relationship ID.
diff --git a/api/classes/index.FileChild.html b/api/classes/index.FileChild.html
index 3dd7d52bb0..98a8d13709 100644
--- a/api/classes/index.FileChild.html
+++ b/api/classes/index.FileChild.html
@@ -28,7 +28,7 @@ to the document body. Examples include Paragraph and Table.
diff --git a/api/classes/index.FootNotes.html b/api/classes/index.FootNotes.html
index 3c2c5cd5a7..dc3dcc52c2 100644
--- a/api/classes/index.FootNotes.html
+++ b/api/classes/index.FootNotes.html
@@ -36,7 +36,7 @@ line used when footnotes continue across pages.
diff --git a/api/classes/index.FooterWrapper.html b/api/classes/index.FooterWrapper.html
index acb761b0d9..54539bf65a 100644
--- a/api/classes/index.FooterWrapper.html
+++ b/api/classes/index.FooterWrapper.html
@@ -29,7 +29,7 @@ Each section can have multiple footers for different page types.
diff --git a/api/classes/index.FootnoteReference.html b/api/classes/index.FootnoteReference.html
index 8428064bbf..b5d3a0138b 100644
--- a/api/classes/index.FootnoteReference.html
+++ b/api/classes/index.FootnoteReference.html
@@ -27,7 +27,7 @@ and the footnote content by using a unique identifier.
diff --git a/api/classes/index.GridSpan.html b/api/classes/index.GridSpan.html
index a628a73529..4309e92d3b 100644
--- a/api/classes/index.GridSpan.html
+++ b/api/classes/index.GridSpan.html
@@ -34,7 +34,7 @@ in the table grid. This is used to merge cells horizontally (column span).
diff --git a/api/classes/index.HeaderWrapper.html b/api/classes/index.HeaderWrapper.html
index ee83ad0408..8ef316f42f 100644
--- a/api/classes/index.HeaderWrapper.html
+++ b/api/classes/index.HeaderWrapper.html
@@ -29,7 +29,7 @@ Each section can have multiple headers for different page types.
diff --git a/api/classes/index.HpsMeasureElement.html b/api/classes/index.HpsMeasureElement.html
index 562b5b1e9b..1b9ef26716 100644
--- a/api/classes/index.HpsMeasureElement.html
+++ b/api/classes/index.HpsMeasureElement.html
@@ -33,7 +33,7 @@ Values can be specified as numbers (interpreted as half-points) or with explicit
diff --git a/api/classes/index.IgnoreIfEmptyXmlComponent.html b/api/classes/index.IgnoreIfEmptyXmlComponent.html
index 3719e2de50..8343cd42ee 100644
--- a/api/classes/index.IgnoreIfEmptyXmlComponent.html
+++ b/api/classes/index.IgnoreIfEmptyXmlComponent.html
@@ -39,7 +39,7 @@ to be excluded from the output.
diff --git a/api/classes/index.ImageRun.html b/api/classes/index.ImageRun.html
index f91e8cbb6f..c71d35653c 100644
--- a/api/classes/index.ImageRun.html
+++ b/api/classes/index.ImageRun.html
@@ -33,7 +33,7 @@ including JPG, PNG, GIF, BMP, and SVG. Optionally wraps the run in
diff --git a/api/classes/index.ImportedXmlComponent.html b/api/classes/index.ImportedXmlComponent.html
index 766bd8e2c1..bdfeaae350 100644
--- a/api/classes/index.ImportedXmlComponent.html
+++ b/api/classes/index.ImportedXmlComponent.html
@@ -30,7 +30,7 @@ templates or when you need to include pre-existing XML fragments.
diff --git a/api/classes/index.InitializableXmlComponent.html b/api/classes/index.InitializableXmlComponent.html
index b86153dbd9..cc8cf65870 100644
--- a/api/classes/index.InitializableXmlComponent.html
+++ b/api/classes/index.InitializableXmlComponent.html
@@ -30,7 +30,7 @@ create a new component that shares or extends the children of an existing compon
diff --git a/api/classes/index.InsertedTableCell.html b/api/classes/index.InsertedTableCell.html
index dc98cb4096..717812e6bc 100644
--- a/api/classes/index.InsertedTableCell.html
+++ b/api/classes/index.InsertedTableCell.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.InsertedTableRow.html b/api/classes/index.InsertedTableRow.html
index b1315b0e9b..50e3cae23f 100644
--- a/api/classes/index.InsertedTableRow.html
+++ b/api/classes/index.InsertedTableRow.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.InsertedTextRun.html b/api/classes/index.InsertedTextRun.html
index 9989842579..f69137b377 100644
--- a/api/classes/index.InsertedTextRun.html
+++ b/api/classes/index.InsertedTextRun.html
@@ -37,7 +37,7 @@ made the insertion and when.
diff --git a/api/classes/index.InternalHyperlink.html b/api/classes/index.InternalHyperlink.html
index af4e276373..deec116e65 100644
--- a/api/classes/index.InternalHyperlink.html
+++ b/api/classes/index.InternalHyperlink.html
@@ -36,7 +36,7 @@ The bookmark must exist in the document for the hyperlink to function.
diff --git a/api/classes/index.LastRenderedPageBreak.html b/api/classes/index.LastRenderedPageBreak.html
index da4fcc5f0c..ffcca44f22 100644
--- a/api/classes/index.LastRenderedPageBreak.html
+++ b/api/classes/index.LastRenderedPageBreak.html
@@ -23,7 +23,7 @@ This is typically generated by Word and not created manually.
diff --git a/api/classes/index.MathDegree.html b/api/classes/index.MathDegree.html
index 588ca925cd..85ec9581e6 100644
--- a/api/classes/index.MathDegree.html
+++ b/api/classes/index.MathDegree.html
@@ -28,7 +28,7 @@ For square roots, this element is typically hidden.
diff --git a/api/classes/index.MathFunctionName.html b/api/classes/index.MathFunctionName.html
index 9893d29017..0c5e77bf31 100644
--- a/api/classes/index.MathFunctionName.html
+++ b/api/classes/index.MathFunctionName.html
@@ -28,7 +28,7 @@ that appears before the function argument.
diff --git a/api/classes/index.MathFunctionProperties.html b/api/classes/index.MathFunctionProperties.html
index a175fe47ba..a06d51286a 100644
--- a/api/classes/index.MathFunctionProperties.html
+++ b/api/classes/index.MathFunctionProperties.html
@@ -28,7 +28,7 @@ such as function name alignment and spacing.
diff --git a/api/classes/index.MathLimitUpper.html b/api/classes/index.MathLimitUpper.html
index 7d99b248e9..27e120f393 100644
--- a/api/classes/index.MathLimitUpper.html
+++ b/api/classes/index.MathLimitUpper.html
@@ -36,7 +36,7 @@ commonly used for mathematical notation like lim with conditions above.
diff --git a/api/classes/index.MathPreSubSuperScript.html b/api/classes/index.MathPreSubSuperScript.html
index 085d225a8d..cb5271bce2 100644
--- a/api/classes/index.MathPreSubSuperScript.html
+++ b/api/classes/index.MathPreSubSuperScript.html
@@ -36,7 +36,7 @@ positioned before (to the left of) the base, commonly used in tensor notation.
diff --git a/api/classes/index.MathRadicalProperties.html b/api/classes/index.MathRadicalProperties.html
index 52b147735e..b7cc805941 100644
--- a/api/classes/index.MathRadicalProperties.html
+++ b/api/classes/index.MathRadicalProperties.html
@@ -28,7 +28,7 @@ such as whether to hide the degree (for square roots).
diff --git a/api/classes/index.MathRun.html b/api/classes/index.MathRun.html
index bc5227e953..697c961368 100644
--- a/api/classes/index.MathRun.html
+++ b/api/classes/index.MathRun.html
@@ -36,7 +36,7 @@ similar to how Run contains text in regular paragraphs.
diff --git a/api/classes/index.MathSubSuperScript.html b/api/classes/index.MathSubSuperScript.html
index 0b810c36c2..c5d09b8aad 100644
--- a/api/classes/index.MathSubSuperScript.html
+++ b/api/classes/index.MathSubSuperScript.html
@@ -36,7 +36,7 @@ commonly used for tensor notation or indexed variables with exponents.
diff --git a/api/classes/index.Media.html b/api/classes/index.Media.html
index 5ad8b451b8..acd471edc7 100644
--- a/api/classes/index.Media.html
+++ b/api/classes/index.Media.html
@@ -24,7 +24,7 @@ is stored with a unique key for retrieval.
diff --git a/api/classes/index.NextAttributeComponent.html b/api/classes/index.NextAttributeComponent.html
index 48a23e66aa..5368236268 100644
--- a/api/classes/index.NextAttributeComponent.html
+++ b/api/classes/index.NextAttributeComponent.html
@@ -34,7 +34,7 @@ This gives more control but is more verbose than XmlAttributeComponent.
diff --git a/api/classes/index.OnOffElement.html b/api/classes/index.OnOffElement.html
index 2644fa7bad..1f31c90178 100644
--- a/api/classes/index.OnOffElement.html
+++ b/api/classes/index.OnOffElement.html
@@ -34,7 +34,7 @@ it is explicitly disabled. When the value is true, the attribute is often omitte
diff --git a/api/classes/index.Packer.html b/api/classes/index.Packer.html
index 85027976fb..fd112be76b 100644
--- a/api/classes/index.Packer.html
+++ b/api/classes/index.Packer.html
@@ -26,7 +26,7 @@ of the document structure into OOXML format and compression into a .docx ZIP arc
diff --git a/api/classes/index.PageBorders.html b/api/classes/index.PageBorders.html
index 889ca8538d..7c0acde7f1 100644
--- a/api/classes/index.PageBorders.html
+++ b/api/classes/index.PageBorders.html
@@ -34,7 +34,7 @@ including which pages display the borders and how they are positioned.
diff --git a/api/classes/index.PageTextDirection.html b/api/classes/index.PageTextDirection.html
index c64017b4dd..30fb3ec884 100644
--- a/api/classes/index.PageTextDirection.html
+++ b/api/classes/index.PageTextDirection.html
@@ -30,7 +30,7 @@ for all pages in a section.
diff --git a/api/classes/index.Paragraph.html b/api/classes/index.Paragraph.html
index 51eeac6b5a..6053ebfd4a 100644
--- a/api/classes/index.Paragraph.html
+++ b/api/classes/index.Paragraph.html
@@ -36,7 +36,7 @@ various inline elements such as text runs, images, hyperlinks, and bookmarks.
diff --git a/api/classes/index.ParagraphPropertiesChange.html b/api/classes/index.ParagraphPropertiesChange.html
index c4be5b2c40..3b2ed02bf8 100644
--- a/api/classes/index.ParagraphPropertiesChange.html
+++ b/api/classes/index.ParagraphPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.ParagraphPropertiesDefaults.html b/api/classes/index.ParagraphPropertiesDefaults.html
index 23fe69bc6c..2cb08b177b 100644
--- a/api/classes/index.ParagraphPropertiesDefaults.html
+++ b/api/classes/index.ParagraphPropertiesDefaults.html
@@ -34,7 +34,7 @@ to all paragraphs in the document unless overridden.
diff --git a/api/classes/index.PositionalTab.html b/api/classes/index.PositionalTab.html
index c439e933ae..d3cc511796 100644
--- a/api/classes/index.PositionalTab.html
+++ b/api/classes/index.PositionalTab.html
@@ -37,7 +37,7 @@ an exact alignment and position within the paragraph.
diff --git a/api/classes/index.RunPropertiesDefaults.html b/api/classes/index.RunPropertiesDefaults.html
index 32669fb58d..d12c70794e 100644
--- a/api/classes/index.RunPropertiesDefaults.html
+++ b/api/classes/index.RunPropertiesDefaults.html
@@ -34,7 +34,7 @@ to all text runs in the document unless overridden by styles or direct formattin
diff --git a/api/classes/index.SectionProperties.html b/api/classes/index.SectionProperties.html
index 73cabc3c7a..db50e12762 100644
--- a/api/classes/index.SectionProperties.html
+++ b/api/classes/index.SectionProperties.html
@@ -35,7 +35,7 @@ A document can contain multiple sections with different properties.
diff --git a/api/classes/index.SectionPropertiesChange.html b/api/classes/index.SectionPropertiesChange.html
index 93c1920fcd..66f8b48120 100644
--- a/api/classes/index.SectionPropertiesChange.html
+++ b/api/classes/index.SectionPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.SimpleField.html b/api/classes/index.SimpleField.html
index 8a2d86a5a1..d9b3684b7c 100644
--- a/api/classes/index.SimpleField.html
+++ b/api/classes/index.SimpleField.html
@@ -40,7 +40,7 @@ Simple fields are typically used for fields that don't require complex nesting.<
diff --git a/api/classes/index.SimpleMailMergeField.html b/api/classes/index.SimpleMailMergeField.html
index 2ac0f107fa..576a7e7e12 100644
--- a/api/classes/index.SimpleMailMergeField.html
+++ b/api/classes/index.SimpleMailMergeField.html
@@ -30,7 +30,7 @@ It creates a MERGEFIELD that will be populated with data during mail merge.
diff --git a/api/classes/index.StringContainer.html b/api/classes/index.StringContainer.html
index 3c076fb1bd..1f92abe54c 100644
--- a/api/classes/index.StringContainer.html
+++ b/api/classes/index.StringContainer.html
@@ -30,7 +30,7 @@ rather than an attribute.
diff --git a/api/classes/index.StringEnumValueElement.html b/api/classes/index.StringEnumValueElement.html
index cbef4d489f..0c9cf32198 100644
--- a/api/classes/index.StringEnumValueElement.html
+++ b/api/classes/index.StringEnumValueElement.html
@@ -33,7 +33,7 @@ type parameter to enforce type safety for enum values.
diff --git a/api/classes/index.StyleForParagraph.html b/api/classes/index.StyleForParagraph.html
index 5b5dbc2d0b..cf237b8ee2 100644
--- a/api/classes/index.StyleForParagraph.html
+++ b/api/classes/index.StyleForParagraph.html
@@ -35,7 +35,7 @@ run-level properties (font, size, color) for text within the paragraph.
diff --git a/api/classes/index.StyleLevel.html b/api/classes/index.StyleLevel.html
index 301ca906ca..154cae3067 100644
--- a/api/classes/index.StyleLevel.html
+++ b/api/classes/index.StyleLevel.html
@@ -20,7 +20,7 @@ custom styles to be included in the table of contents at specific levels.
diff --git a/api/classes/index.Styles.html b/api/classes/index.Styles.html
index a965365c5a..469f7e0dd8 100644
--- a/api/classes/index.Styles.html
+++ b/api/classes/index.Styles.html
@@ -35,7 +35,7 @@ a way to define consistent formatting across a document.
diff --git a/api/classes/index.TDirection.html b/api/classes/index.TDirection.html
index 5534380ae2..40cf87cd6d 100644
--- a/api/classes/index.TDirection.html
+++ b/api/classes/index.TDirection.html
@@ -34,7 +34,7 @@ useful for creating rotated text or supporting different writing systems.
diff --git a/api/classes/index.Table.html b/api/classes/index.Table.html
index 96b7b64f93..12b63f62f9 100644
--- a/api/classes/index.Table.html
+++ b/api/classes/index.Table.html
@@ -36,7 +36,7 @@ Tables are used to organize content into a grid structure.
diff --git a/api/classes/index.TableCellBorders.html b/api/classes/index.TableCellBorders.html
index 1e5d49a1c5..f5b9a3f647 100644
--- a/api/classes/index.TableCellBorders.html
+++ b/api/classes/index.TableCellBorders.html
@@ -34,7 +34,7 @@ can be configured independently with different styles, colors, and widths.
diff --git a/api/classes/index.TableRow.html b/api/classes/index.TableRow.html
index 330fd38dec..e2d7ab071f 100644
--- a/api/classes/index.TableRow.html
+++ b/api/classes/index.TableRow.html
@@ -36,7 +36,7 @@ one or more table cells that hold the actual content.
diff --git a/api/classes/index.TableRowProperties.html b/api/classes/index.TableRowProperties.html
index 22c2998af2..a2ebfe3e61 100644
--- a/api/classes/index.TableRowProperties.html
+++ b/api/classes/index.TableRowProperties.html
@@ -30,7 +30,7 @@ whether it can split across pages, and whether it's a header row.
diff --git a/api/classes/index.TableRowPropertiesChange.html b/api/classes/index.TableRowPropertiesChange.html
index 77f138cada..0d5384e63e 100644
--- a/api/classes/index.TableRowPropertiesChange.html
+++ b/api/classes/index.TableRowPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.VerticalMerge.html b/api/classes/index.VerticalMerge.html
index 288fd6c602..bc72fee7c1 100644
--- a/api/classes/index.VerticalMerge.html
+++ b/api/classes/index.VerticalMerge.html
@@ -35,7 +35,7 @@ This is used to create row spans in tables.
diff --git a/api/classes/index.WpsShapeRun.html b/api/classes/index.WpsShapeRun.html
index 92c0e5bc40..11f38207af 100644
--- a/api/classes/index.WpsShapeRun.html
+++ b/api/classes/index.WpsShapeRun.html
@@ -28,7 +28,7 @@ options for fills, lines, effects and text layout, and can be any of the preset
diff --git a/api/classes/index.XmlAttributeComponent.html b/api/classes/index.XmlAttributeComponent.html
index 97e686fa13..411525643a 100644
--- a/api/classes/index.XmlAttributeComponent.html
+++ b/api/classes/index.XmlAttributeComponent.html
@@ -41,7 +41,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.XmlComponent.html b/api/classes/index.XmlComponent.html
index 6345681a66..25ebe53b29 100644
--- a/api/classes/index.XmlComponent.html
+++ b/api/classes/index.XmlComponent.html
@@ -129,7 +129,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/math.MathBrackets.html b/api/classes/math.MathBrackets.html
index dcdb68dfe6..4a4b336609 100644
--- a/api/classes/math.MathBrackets.html
+++ b/api/classes/math.MathBrackets.html
@@ -29,7 +29,7 @@ with what they hold.
diff --git a/api/classes/math.MathLargeOperator.html b/api/classes/math.MathLargeOperator.html
index bf6288ecf2..612a3c11cf 100644
--- a/api/classes/math.MathLargeOperator.html
+++ b/api/classes/math.MathLargeOperator.html
@@ -28,7 +28,7 @@ it applies to. MathSum and MathIntegral are two of the
diff --git a/api/classes/math.MathMatrix.html b/api/classes/math.MathMatrix.html
index 6fd80df7b7..7696d8d203 100644
--- a/api/classes/math.MathMatrix.html
+++ b/api/classes/math.MathMatrix.html
@@ -30,7 +30,7 @@ and Pages centre every column.
diff --git a/api/classes/math.MathPhantom.html b/api/classes/math.MathPhantom.html
index 434787c58c..601329d0de 100644
--- a/api/classes/math.MathPhantom.html
+++ b/api/classes/math.MathPhantom.html
@@ -28,7 +28,7 @@ line things up with it. Or math that is seen but takes up no room, or less, as <
diff --git a/api/classes/shapes.ShapeCanvasRun.html b/api/classes/shapes.ShapeCanvasRun.html
index eda61f9958..62f32ae64b 100644
--- a/api/classes/shapes.ShapeCanvasRun.html
+++ b/api/classes/shapes.ShapeCanvasRun.html
@@ -35,7 +35,7 @@ written in mc:AlternateContent, with the group as its fallback, unl
diff --git a/api/classes/shapes.ShapeGroupRun.html b/api/classes/shapes.ShapeGroupRun.html
index bf9c2acdfa..7f9968cf9d 100644
--- a/api/classes/shapes.ShapeGroupRun.html
+++ b/api/classes/shapes.ShapeGroupRun.html
@@ -35,7 +35,7 @@ when shapes are moved on a
diff --git a/api/classes/shapes.ShapeRun.html b/api/classes/shapes.ShapeRun.html
index c4bb396289..c7d21f2fad 100644
--- a/api/classes/shapes.ShapeRun.html
+++ b/api/classes/shapes.ShapeRun.html
@@ -33,7 +33,7 @@ and arrowheads, and text inside it. It sits inline with text unless floati
diff --git a/api/classes/watermarks.ImageWatermark.html b/api/classes/watermarks.ImageWatermark.html
index b706d69b6f..eafa58d033 100644
--- a/api/classes/watermarks.ImageWatermark.html
+++ b/api/classes/watermarks.ImageWatermark.html
@@ -46,7 +46,7 @@ way as an ImageRun.
diff --git a/api/classes/watermarks.TextWatermark.html b/api/classes/watermarks.TextWatermark.html
index 87ad897251..5d75279e9e 100644
--- a/api/classes/watermarks.TextWatermark.html
+++ b/api/classes/watermarks.TextWatermark.html
@@ -44,7 +44,7 @@ recognizes it and can remove or replace it through that command.
\n option - causes the field result to be the paragraph number without trailing periods. No information about prior numbered levels is displayed unless it is included as part of the current level.
diff --git a/api/functions/index.convertToXmlComponent.html b/api/functions/index.convertToXmlComponent.html
index 03bbb91ad9..11d9d8054c 100644
--- a/api/functions/index.convertToXmlComponent.html
+++ b/api/functions/index.convertToXmlComponent.html
@@ -36,7 +36,7 @@ of the original XML.
diff --git a/api/functions/index.createEmphasisMark.html b/api/functions/index.createEmphasisMark.html
index 890378bc96..ebf3107d84 100644
--- a/api/functions/index.createEmphasisMark.html
+++ b/api/functions/index.createEmphasisMark.html
@@ -37,7 +37,7 @@ text to emphasize it. This is commonly used in East Asian typography.
diff --git a/api/functions/index.createFrameProperties.html b/api/functions/index.createFrameProperties.html
index 45d735d922..1d1713e335 100644
--- a/api/functions/index.createFrameProperties.html
+++ b/api/functions/index.createFrameProperties.html
@@ -41,7 +41,7 @@ drop cap effects and various text wrapping options.
diff --git a/api/functions/index.createHorizontalPosition.html b/api/functions/index.createHorizontalPosition.html
index 2534ec8bf0..0c3aa766c8 100644
--- a/api/functions/index.createHorizontalPosition.html
+++ b/api/functions/index.createHorizontalPosition.html
@@ -40,7 +40,7 @@ object relative to a base element (page, margin, column, etc.).
diff --git a/api/functions/index.createMathAccentCharacter.html b/api/functions/index.createMathAccentCharacter.html
index ea4f0c3096..518f616d35 100644
--- a/api/functions/index.createMathAccentCharacter.html
+++ b/api/functions/index.createMathAccentCharacter.html
@@ -31,7 +31,7 @@ such as summation (∑), integral (∫), or product (∏) symbols.
diff --git a/api/functions/index.createMathNAryProperties.html b/api/functions/index.createMathNAryProperties.html
index b41db6c96a..99da7c7605 100644
--- a/api/functions/index.createMathNAryProperties.html
+++ b/api/functions/index.createMathNAryProperties.html
@@ -31,7 +31,7 @@ and integrals, including the operator character and limit positioning.
diff --git a/api/functions/index.createMathSubScriptElement.html b/api/functions/index.createMathSubScriptElement.html
index 823232e7fe..275157018a 100644
--- a/api/functions/index.createMathSubScriptElement.html
+++ b/api/functions/index.createMathSubScriptElement.html
@@ -31,7 +31,7 @@ script objects, and other structures that support subscripts.
diff --git a/api/functions/index.createMathSuperScriptElement.html b/api/functions/index.createMathSuperScriptElement.html
index 9f0924ce09..d7399453bb 100644
--- a/api/functions/index.createMathSuperScriptElement.html
+++ b/api/functions/index.createMathSuperScriptElement.html
@@ -31,7 +31,7 @@ script objects, and other structures that support superscripts.
diff --git a/api/functions/index.createPageNumberType.html b/api/functions/index.createPageNumberType.html
index 41234eac9c..6dd8149256 100644
--- a/api/functions/index.createPageNumberType.html
+++ b/api/functions/index.createPageNumberType.html
@@ -37,7 +37,7 @@ for all pages in a section.
diff --git a/api/functions/index.createSectionType.html b/api/functions/index.createSectionType.html
index 1d792ea0d8..03165db05f 100644
--- a/api/functions/index.createSectionType.html
+++ b/api/functions/index.createSectionType.html
@@ -37,7 +37,7 @@ where the new section begins relative to the previous section.
diff --git a/api/functions/index.createTableFloatProperties.html b/api/functions/index.createTableFloatProperties.html
index 2e6f96ea0d..b09917fc76 100644
--- a/api/functions/index.createTableFloatProperties.html
+++ b/api/functions/index.createTableFloatProperties.html
@@ -38,7 +38,7 @@ The overlap option isn't part of it: the table properties write it as w:tblOverl
diff --git a/api/functions/index.createTableLook.html b/api/functions/index.createTableLook.html
index 3158803f76..a73741c4ac 100644
--- a/api/functions/index.createTableLook.html
+++ b/api/functions/index.createTableLook.html
@@ -34,7 +34,7 @@ styles to apply special formatting to specific regions of the table.
diff --git a/api/functions/index.createTableRowHeight.html b/api/functions/index.createTableRowHeight.html
index d9f1fd3693..63dac724b9 100644
--- a/api/functions/index.createTableRowHeight.html
+++ b/api/functions/index.createTableRowHeight.html
@@ -38,7 +38,7 @@ determining how the height should be applied.
diff --git a/api/functions/index.createWrapNone.html b/api/functions/index.createWrapNone.html
index b9af183b67..1e8a742c6e 100644
--- a/api/functions/index.createWrapNone.html
+++ b/api/functions/index.createWrapNone.html
@@ -23,7 +23,7 @@ without wrapping around it.
diff --git a/api/functions/index.createWrapSquare.html b/api/functions/index.createWrapSquare.html
index 8c8cbb58a4..9212401ae7 100644
--- a/api/functions/index.createWrapSquare.html
+++ b/api/functions/index.createWrapSquare.html
@@ -32,7 +32,7 @@ of the drawing on the specified side(s).
diff --git a/api/functions/index.createWrapThrough.html b/api/functions/index.createWrapThrough.html
index 89f1721220..1db3c5112c 100644
--- a/api/functions/index.createWrapThrough.html
+++ b/api/functions/index.createWrapThrough.html
@@ -36,7 +36,7 @@ fills any open space inside the drawing, such as the middle of a ring.
diff --git a/api/functions/index.createWrapTight.html b/api/functions/index.createWrapTight.html
index ba70229aea..63caec6b5d 100644
--- a/api/functions/index.createWrapTight.html
+++ b/api/functions/index.createWrapTight.html
@@ -36,7 +36,7 @@ of the drawing rather than its rectangular bounding box.
diff --git a/api/functions/index.dateTimeValue.html b/api/functions/index.dateTimeValue.html
index 158a73c47c..eb7ec90135 100644
--- a/api/functions/index.dateTimeValue.html
+++ b/api/functions/index.dateTimeValue.html
@@ -36,7 +36,7 @@ This matches the xsd:dateTime format required by OOXML.
diff --git a/api/functions/index.fillPageNumbers.html b/api/functions/index.fillPageNumbers.html
index 29973d2cde..b842ae3828 100644
--- a/api/functions/index.fillPageNumbers.html
+++ b/api/functions/index.fillPageNumbers.html
@@ -29,7 +29,7 @@ numbers were worked out. The estimate is kept for the document's headers and foo
diff --git a/api/functions/index.fillPartPageNumbers.html b/api/functions/index.fillPartPageNumbers.html
index eb049538a7..dd69697bee 100644
--- a/api/functions/index.fillPartPageNumbers.html
+++ b/api/functions/index.fillPartPageNumbers.html
@@ -33,7 +33,7 @@ footer that show them, once the document's body is written.
diff --git a/api/functions/index.hpsMeasureValue.html b/api/functions/index.hpsMeasureValue.html
index 8b69c68c43..c8e5f6b05b 100644
--- a/api/functions/index.hpsMeasureValue.html
+++ b/api/functions/index.hpsMeasureValue.html
@@ -36,7 +36,7 @@ HPS (half-points) are commonly used for font sizes.
diff --git a/api/functions/index.patchDocument.html b/api/functions/index.patchDocument.html
index 8c026f5485..9c1fa5a6b1 100644
--- a/api/functions/index.patchDocument.html
+++ b/api/functions/index.patchDocument.html
@@ -42,7 +42,7 @@ the original document structure and optionally the original formatting.
diff --git a/api/functions/index.universalMeasureToTwips.html b/api/functions/index.universalMeasureToTwips.html
index 188a3af995..c49a7afd69 100644
--- a/api/functions/index.universalMeasureToTwips.html
+++ b/api/functions/index.universalMeasureToTwips.html
@@ -35,7 +35,7 @@ Strings are converted according to their unit suffix.
diff --git a/api/functions/layout.estimatePageNumbersWith.html b/api/functions/layout.estimatePageNumbersWith.html
index 74bcdb0801..301aece32f 100644
--- a/api/functions/layout.estimatePageNumbersWith.html
+++ b/api/functions/layout.estimatePageNumbersWith.html
@@ -31,7 +31,7 @@ options say. Give what it returns to a document as its pageNumbers,
diff --git a/api/functions/layout.layoutDocument.html b/api/functions/layout.layoutDocument.html
index 6b0073c965..fe49165059 100644
--- a/api/functions/layout.layoutDocument.html
+++ b/api/functions/layout.layoutDocument.html
@@ -37,7 +37,7 @@ text box, it stops, and gives the pages up to there, with why in stoppedAt
diff --git a/api/functions/layout.measureWithPretext.html b/api/functions/layout.measureWithPretext.html
index fe2943807f..f5c2aed5f1 100644
--- a/api/functions/layout.measureWithPretext.html
+++ b/api/functions/layout.measureWithPretext.html
@@ -40,7 +40,7 @@ measures text in another, and Pretext keeps the widths it measured.
diff --git a/api/functions/math.latexToMath.html b/api/functions/math.latexToMath.html
index 05d41b46d0..aee8d14cf5 100644
--- a/api/functions/math.latexToMath.html
+++ b/api/functions/math.latexToMath.html
@@ -44,7 +44,7 @@ cases and aligned equations, with \tag for their numbers. The math
diff --git a/api/interfaces/index.IXmlableObject.html b/api/interfaces/index.IXmlableObject.html
index 4c9180bba5..c03b7152df 100644
--- a/api/interfaces/index.IXmlableObject.html
+++ b/api/interfaces/index.IXmlableObject.html
@@ -31,7 +31,7 @@ to generate the final XML output. Objects typically have a structure like:
diff --git a/api/types/charts.BarChartBaseOptions.html b/api/types/charts.BarChartBaseOptions.html
index 25f2f63b4d..fdd0eec373 100644
--- a/api/types/charts.BarChartBaseOptions.html
+++ b/api/types/charts.BarChartBaseOptions.html
@@ -31,7 +31,7 @@ Default is Office's: -27 for column charts and 0 for bar charts. Stacked bars al
@@ -49,14 +49,14 @@ bar, line or area chart spaces them by date
Sales. 2025: Jan 10, Feb 20.", and none for a decorative chart. An empty description removes it
+
diff --git a/api/types/charts.CategoryChartOptions.html b/api/types/charts.CategoryChartOptions.html
index d1f9c8cda9..d85ac68d2f 100644
--- a/api/types/charts.CategoryChartOptions.html
+++ b/api/types/charts.CategoryChartOptions.html
@@ -59,7 +59,7 @@ in years, are labelled in rows, the groups below their categories
diff --git a/api/types/charts.ChartAxisCrossing.html b/api/types/charts.ChartAxisCrossing.html
index f98d3eb67c..17803a5077 100644
--- a/api/types/charts.ChartAxisCrossing.html
+++ b/api/types/charts.ChartAxisCrossing.html
@@ -20,7 +20,7 @@ the value is the category's number, from 1, or when the categories are dates, a
diff --git a/api/types/charts.ChartAxisGroup.html b/api/types/charts.ChartAxisGroup.html
index a7d651c326..87979563f5 100644
--- a/api/types/charts.ChartAxisGroup.html
+++ b/api/types/charts.ChartAxisGroup.html
@@ -19,7 +19,7 @@ chart's are along the bottom and the top.
diff --git a/api/types/charts.ChartCategoryGroup.html b/api/types/charts.ChartCategoryGroup.html
index 29ae2699f4..8566c10797 100644
--- a/api/types/charts.ChartCategoryGroup.html
+++ b/api/types/charts.ChartCategoryGroup.html
@@ -20,7 +20,7 @@ categories, or groups of its own, such as the months of each quarter of each yea
@@ -67,21 +67,21 @@ a point, and where they fit best on a pie. A chart's position is for the series
another way keep Office's, unless their own labels give one
diff --git a/api/types/charts.ChartDataPatchOptions.html b/api/types/charts.ChartDataPatchOptions.html
index b381dbdc00..9a5e67f08d 100644
--- a/api/types/charts.ChartDataPatchOptions.html
+++ b/api/types/charts.ChartDataPatchOptions.html
@@ -19,7 +19,7 @@ series' points, or for a stock chart its prices.
diff --git a/api/types/charts.ChartErrorBarsAmount.html b/api/types/charts.ChartErrorBarsAmount.html
index 5aabc8d2f6..be20aa3b97 100644
--- a/api/types/charts.ChartErrorBarsAmount.html
+++ b/api/types/charts.ChartErrorBarsAmount.html
@@ -64,7 +64,7 @@ deviations, or the standard error.
diff --git a/api/types/charts.ChartLineDash.html b/api/types/charts.ChartLineDash.html
index f31f99e9f9..517a138b7c 100644
--- a/api/types/charts.ChartLineDash.html
+++ b/api/types/charts.ChartLineDash.html
@@ -19,7 +19,7 @@ and so on.
diff --git a/api/types/charts.ChartPointLabel.html b/api/types/charts.ChartPointLabel.html
index b66deebc7e..3d673618f4 100644
--- a/api/types/charts.ChartPointLabel.html
+++ b/api/types/charts.ChartPointLabel.html
@@ -19,7 +19,7 @@ format and its font. Anything left out is as the series' labels have it.
diff --git a/api/types/charts.ChartTrendline.html b/api/types/charts.ChartTrendline.html
index 75235d9321..944472d699 100644
--- a/api/types/charts.ChartTrendline.html
+++ b/api/types/charts.ChartTrendline.html
@@ -20,7 +20,7 @@ forecast. It is drawn as a dotted line in the series' colour, and has an entry i
@@ -57,7 +57,7 @@ forecast. It is drawn as a dotted line in the series' colour, and has an entry i
along the x axis. Default is 0. Not for moving averages
@@ -73,35 +73,35 @@ the x axis. Default is 0. Not for moving averages
linear, exponential and polynomial trendlines, and above 0 for exponential ones
+
diff --git a/api/types/charts.ChartValueAxis.html b/api/types/charts.ChartValueAxis.html
index bc506e955c..6ae31b679f 100644
--- a/api/types/charts.ChartValueAxis.html
+++ b/api/types/charts.ChartValueAxis.html
@@ -43,7 +43,7 @@ of 0 or less can't be shown. Default is a linear scale
diff --git a/api/types/charts.ComboChartSeriesType.html b/api/types/charts.ComboChartSeriesType.html
index d557fe7129..dcb4669ec6 100644
--- a/api/types/charts.ComboChartSeriesType.html
+++ b/api/types/charts.ComboChartSeriesType.html
@@ -19,7 +19,7 @@ or an area. A chart with series of more than one type is Word's "Combo"
@@ -59,14 +59,14 @@ with undefined, takes the next of the theme's accent colours
one for each slice in the order of the categories, where undefined leaves a slice in. Default is 0
+
diff --git a/api/types/charts.SplitPieChartBaseOptions.html b/api/types/charts.SplitPieChartBaseOptions.html
index e74d0d5c41..f0fca793c7 100644
--- a/api/types/charts.SplitPieChartBaseOptions.html
+++ b/api/types/charts.SplitPieChartBaseOptions.html
@@ -42,7 +42,7 @@ second pie or a stacked bar, joined to the slice of the pie that stands for them
diff --git a/api/types/index.AttributePayload.html b/api/types/index.AttributePayload.html
index c7b1b39923..9f854b2d86 100644
--- a/api/types/index.AttributePayload.html
+++ b/api/types/index.AttributePayload.html
@@ -21,7 +21,7 @@ control over attribute name mapping.
Specifies the additional length, in EMUs, which shall be added to the bottom edge of the DrawingML object to determine its actual bottom edge including effects.
Specifies the additional length, in EMUs, which shall be added to the left edge of the DrawingML object to determine its actual left edge including effects.
Specifies the additional length, in EMUs, which shall be added to the right edge of the DrawingML object to determine its actual right edge including effects.
Specifies the additional length, in EMUs, which shall be added to the top edge of the DrawingML object to determine its actual top edge including effects.
@@ -57,7 +57,7 @@ name. The page references to a bookmark that isn't in it are left blank.
in headers and footers only on its pages, show. Those of a section whose number is undefined are left blank.
+
diff --git a/api/types/index.GraphicMediaData.html b/api/types/index.GraphicMediaData.html
index a50cbdf609..04a9ed8e85 100644
--- a/api/types/index.GraphicMediaData.html
+++ b/api/types/index.GraphicMediaData.html
@@ -25,7 +25,7 @@ graphic it is. This is how docx/shapes writes its shapes.
diff --git a/api/types/index.IContext.html b/api/types/index.IContext.html
index a8c500b9d3..c76a4720b3 100644
--- a/api/types/index.IContext.html
+++ b/api/types/index.IContext.html
@@ -18,7 +18,7 @@ during the conversion of components to XML.
diff --git a/api/types/index.ICropOptions.html b/api/types/index.ICropOptions.html
index ec52da7641..630f7401cf 100644
--- a/api/types/index.ICropOptions.html
+++ b/api/types/index.ICropOptions.html
@@ -19,7 +19,7 @@ side of the image.
The grid can define a grid which snaps all East Asian characters to grid positions, but leaves Latin text with its default spacing; a grid which adds the specified character pitch to each character on each row; or a grid which affects only the line pitch for the current section.
Specifies that the paragraph (or at least part of it) should be rendered on the same page as the next paragraph when possible. If multiple paragraphs are to be kept together but they exceed a page, then the set of paragraphs begin on a new page and page breaks are used thereafter as needed.
diff --git a/api/types/index.IRunOptions.html b/api/types/index.IRunOptions.html
index a27d6a8a31..44da8bfe99 100644
--- a/api/types/index.IRunOptions.html
+++ b/api/types/index.IRunOptions.html
@@ -21,7 +21,7 @@ The children property can contain various inline content elements.
diff --git a/api/types/index.IRunStylePropertiesOptions.html b/api/types/index.IRunStylePropertiesOptions.html
index de9c9b5411..43f1658988 100644
--- a/api/types/index.IRunStylePropertiesOptions.html
+++ b/api/types/index.IRunStylePropertiesOptions.html
@@ -19,7 +19,7 @@ including font, size, bold, italic, underline, color, and other character format
@@ -140,117 +140,117 @@ including font, size, bold, italic, underline, color, and other character format
highlights all the run's text. docx used to write it as w:highlightCs, which is in no schema.
diff --git a/api/types/index.ITableCellBorders.html b/api/types/index.ITableCellBorders.html
index 179c5232d5..1edeb1dc92 100644
--- a/api/types/index.ITableCellBorders.html
+++ b/api/types/index.ITableCellBorders.html
@@ -22,7 +22,7 @@ can be specified for top, bottom, left, right, start, and end edges.
@@ -46,7 +46,7 @@ If relativeHorizontalPosition is also specified, then the absoluteHorizontalPosi
If the attribute is omitted, the value is assumed to be zero.
@@ -57,7 +57,7 @@ If relativeVerticalPosition is also specified, then the absoluteVerticalPosition
If the attribute is omitted, the value is assumed to be zero.
@@ -65,7 +65,7 @@ If the attribute is omitted, the value is assumed to be zero.
below the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -85,7 +85,7 @@ If omitted, the value is assumed to be page.
to the left of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -121,7 +121,7 @@ inline - the table should be vertically aligned in line with the surrounding tex
top - the table should be vertically aligned to the top edge of the anchor
+
@@ -129,7 +129,7 @@ top - the table should be vertically aligned to the top edge of the anchor
to the right of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -137,7 +137,7 @@ to the right of the table. The value is in twentieths of a point. If omitted, th
above the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -88,7 +88,7 @@ When true, horizontal banding (alternating row colors) is disabled.
When false or undefined, horizontal banding is enabled if defined in the table style.
+
@@ -97,7 +97,7 @@ When true, vertical banding (alternating column colors) is disabled.
When false or undefined, vertical banding is enabled if defined in the table style.
+
diff --git a/api/types/index.ITableOfContentsOptions.html b/api/types/index.ITableOfContentsOptions.html
index 8a29926e2f..e47e9e05a0 100644
--- a/api/types/index.ITableOfContentsOptions.html
+++ b/api/types/index.ITableOfContentsOptions.html
@@ -23,7 +23,7 @@ Options correspond to field switches in the TOC field code.
@@ -59,7 +59,7 @@ The identifier designated by text in this switch's field-argument corresponds to
Use captionLabelIncludingNumbers (\c) to build a table of captions with labels and numbers.
@@ -85,7 +85,7 @@ the bookmark named by text in this switch's field-argument.
that separate an entry and its page number. The default is a tab with leader dots.
+
@@ -96,21 +96,21 @@ to the style with a style ID of HeadingX (e.g. 1 corresponds to Heading1).
If no heading range is specified, all heading levels used in the document are listed.
+
@@ -119,21 +119,21 @@ Page numbers are omitted from all levels unless a range of entry levels is speci
text in this switch's field-argument. A range is specified as for \l.
+
@@ -168,7 +168,7 @@ with each doublet being a comma-separated set of style name and table of content
text in this switch's field-argument (which is typically a letter).
+
@@ -178,14 +178,14 @@ where startLevel and endLevel are integers, and startLevel has a value equal-to
TC fields that assign entries to lower levels are skipped.
+
@@ -76,64 +76,64 @@ parent cell) when the document is packed, so the table renders the same in every
consumer. Supply explicit values to take full control of the grid.
diff --git a/api/types/index.IThemeColorsOptions.html b/api/types/index.IThemeColorsOptions.html
index c8d304d36b..412ea073a7 100644
--- a/api/types/index.IThemeColorsOptions.html
+++ b/api/types/index.IThemeColorsOptions.html
@@ -21,7 +21,7 @@ when the theme's colors change. The colors not given are Office's.
diff --git a/api/types/index.IXmlAttribute.html b/api/types/index.IXmlAttribute.html
index d3ef082c45..551bd008b3 100644
--- a/api/types/index.IXmlAttribute.html
+++ b/api/types/index.IXmlAttribute.html
@@ -17,7 +17,7 @@
numbers, or booleans, which will be converted to strings in the final XML.
diff --git a/api/types/index.MathRunStyle.html b/api/types/index.MathRunStyle.html
index ad7200ff6b..14404bbe9c 100644
--- a/api/types/index.MathRunStyle.html
+++ b/api/types/index.MathRunStyle.html
@@ -23,7 +23,7 @@
alphabet other than roman is plain unless given a style, as LaTeX draws its alphabets upright.
diff --git a/api/types/index.OutputByType.html b/api/types/index.OutputByType.html
index 96a46a3d74..d691d53b38 100644
--- a/api/types/index.OutputByType.html
+++ b/api/types/index.OutputByType.html
@@ -24,7 +24,7 @@ format determines the return type. Based on JSZip's output types.
diff --git a/api/types/index.PageNumberEstimator.html b/api/types/index.PageNumberEstimator.html
index 9413b33405..20cf9fda09 100644
--- a/api/types/index.PageNumberEstimator.html
+++ b/api/types/index.PageNumberEstimator.html
@@ -38,7 +38,7 @@ page counts can be written with it.
diff --git a/api/types/index.ParagraphChild.html b/api/types/index.ParagraphChild.html
index 9b9ec5fab0..e6a1df228a 100644
--- a/api/types/index.ParagraphChild.html
+++ b/api/types/index.ParagraphChild.html
@@ -17,7 +17,7 @@ This union type represents all valid inline content elements that can appear
within a paragraph in WordprocessingML.
diff --git a/api/types/index.RelationshipType.html b/api/types/index.RelationshipType.html
index 882e022430..8ab56a1543 100644
--- a/api/types/index.RelationshipType.html
+++ b/api/types/index.RelationshipType.html
@@ -17,7 +17,7 @@
Each type corresponds to a specific kind of document component or resource.
diff --git a/api/types/index.TableRowsPatch.html b/api/types/index.TableRowsPatch.html
index c554a876ac..08d0d87e2e 100644
--- a/api/types/index.TableRowsPatch.html
+++ b/api/types/index.TableRowsPatch.html
@@ -32,7 +32,7 @@ none. The other patches are applied after the rows are repeated, so a placeholde
@@ -55,14 +55,14 @@ A field's patch can repeat rows of a table in the copy in turn, whose fields are
repeated for each part, with its item's fields, and an item without parts has no row
diff --git a/api/types/index.TemplatePageNumberEstimator.html b/api/types/index.TemplatePageNumberEstimator.html
index 4e5d805a97..7ab7ed0121 100644
--- a/api/types/index.TemplatePageNumberEstimator.html
+++ b/api/types/index.TemplatePageNumberEstimator.html
@@ -33,7 +33,7 @@ pages, are written with it.
Specifies the height of the containing block of the shape. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the left of the containing block of the shape relative to the element left of it in the flow of the page. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element. This property shall not be used for shapes anchored inline.
Specifies the position of the bottom of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the left of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the right of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the top of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the type of positioning used to place an element. Default is static. When the element is contained inside a group, this property must be absolute.
Specifies relative horizontal position data for objects in WordprocessingML documents. This modifies the mso-position-horizontal property. Default is text.
Specifies relative vertical position data for objects in WordprocessingML documents. This modifies the mso-position-vertical property. Default is text.
Specifies the position of the top of the containing block of the shape relative to the element above it in the flow of the page. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element. This property shall not be used for shapes anchored inline.
Specifies the width of the containing block of the shape. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the distance from the bottom of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the left side of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the right side of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the top of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies whether the wrap coordinates were customized by the user. If the wrap coordinates are generated by an editor, this property is true; otherwise they were customized by a user. Default is false.
diff --git a/api/types/layout.MeasureWidth.html b/api/types/layout.MeasureWidth.html
index 6f19005af7..9b3abf7596 100644
--- a/api/types/layout.MeasureWidth.html
+++ b/api/types/layout.MeasureWidth.html
@@ -33,7 +33,7 @@ between characters and the width of scaled text, which the document's formatting
diff --git a/api/types/shapes.ConnectorEnd.html b/api/types/shapes.ConnectorEnd.html
index c6f283a32e..54ed830445 100644
--- a/api/types/shapes.ConnectorEnd.html
+++ b/api/types/shapes.ConnectorEnd.html
@@ -38,7 +38,7 @@ bottom-left corner. On a shape without connection points, the connector ends at
diff --git a/api/types/shapes.CustomShapeGeometry.html b/api/types/shapes.CustomShapeGeometry.html
index 02fd0d115d..0af5c49bf7 100644
--- a/api/types/shapes.CustomShapeGeometry.html
+++ b/api/types/shapes.CustomShapeGeometry.html
@@ -50,7 +50,7 @@ fill the shape. Later paths are drawn over earlier ones
diff --git a/api/types/shapes.CustomShapePath.html b/api/types/shapes.CustomShapePath.html
index 9ece1de5e3..c6a489060c 100644
--- a/api/types/shapes.CustomShapePath.html
+++ b/api/types/shapes.CustomShapePath.html
@@ -20,7 +20,7 @@ own, so paths can overlap without cutting holes in each other.
diff --git a/api/types/shapes.CustomShapePathFill.html b/api/types/shapes.CustomShapePathFill.html
index 43e223961c..7628aa83a9 100644
--- a/api/types/shapes.CustomShapePathFill.html
+++ b/api/types/shapes.CustomShapePathFill.html
@@ -19,7 +19,7 @@ fill made lighter or darker, as Word's preset shapes shade the top of a cube or
diff --git a/api/types/shapes.IShapeCanvasOptions.html b/api/types/shapes.IShapeCanvasOptions.html
index 303f2e94e3..026c42faab 100644
--- a/api/types/shapes.IShapeCanvasOptions.html
+++ b/api/types/shapes.IShapeCanvasOptions.html
@@ -64,7 +64,7 @@ The shapes are not scaled.
diff --git a/api/types/shapes.IShapeConnectorOptions.html b/api/types/shapes.IShapeConnectorOptions.html
index f596a2c486..5221210515 100644
--- a/api/types/shapes.IShapeConnectorOptions.html
+++ b/api/types/shapes.IShapeConnectorOptions.html
@@ -23,7 +23,7 @@ or several connectors join the same two shapes, their ends are spread out along
@@ -64,21 +64,21 @@ or several connectors join the same two shapes, their ends are spread out along
shape, so Word doesn't move it when the connector moves
diff --git a/api/types/shapes.IShapeGroupChildOptions.html b/api/types/shapes.IShapeGroupChildOptions.html
index 44d962199c..4f4a3920e5 100644
--- a/api/types/shapes.IShapeGroupChildOptions.html
+++ b/api/types/shapes.IShapeGroupChildOptions.html
@@ -20,7 +20,7 @@ in pixels, unless a layout places it, and id names it
diff --git a/api/types/shapes.IShapeGroupOptions.html b/api/types/shapes.IShapeGroupOptions.html
index 5ec824732b..8fa08878ee 100644
--- a/api/types/shapes.IShapeGroupOptions.html
+++ b/api/types/shapes.IShapeGroupOptions.html
@@ -50,7 +50,7 @@ the box around the children. A different size scales every shape in the group.
diff --git a/api/types/shapes.IShapeNestedGroupOptions.html b/api/types/shapes.IShapeNestedGroupOptions.html
index d599d371e7..7193e30797 100644
--- a/api/types/shapes.IShapeNestedGroupOptions.html
+++ b/api/types/shapes.IShapeNestedGroupOptions.html
@@ -47,7 +47,7 @@ box around the children, and a different size scales every child
diff --git a/api/types/shapes.IShapeOptions.html b/api/types/shapes.IShapeOptions.html
index 0e753b1d07..c836b58422 100644
--- a/api/types/shapes.IShapeOptions.html
+++ b/api/types/shapes.IShapeOptions.html
@@ -23,7 +23,7 @@ or startAngle and endAngle for a "pie"
diff --git a/api/types/shapes.PresetShapeAdjustments.html b/api/types/shapes.PresetShapeAdjustments.html
index 3b1d104e18..79258c67d2 100644
--- a/api/types/shapes.PresetShapeAdjustments.html
+++ b/api/types/shapes.PresetShapeAdjustments.html
@@ -21,7 +21,7 @@ allows, so a value that is too large acts like the largest allowed value.
diff --git a/api/types/shapes.ShapeAdjustments.html b/api/types/shapes.ShapeAdjustments.html
index 4efd4e6e03..593ca04e98 100644
--- a/api/types/shapes.ShapeAdjustments.html
+++ b/api/types/shapes.ShapeAdjustments.html
@@ -23,7 +23,7 @@ It is never for shapes without handles, which take no adjustments.<
diff --git a/api/types/shapes.ShapeFlowLayout.html b/api/types/shapes.ShapeFlowLayout.html
index 474d438531..d7579a66f9 100644
--- a/api/types/shapes.ShapeFlowLayout.html
+++ b/api/types/shapes.ShapeFlowLayout.html
@@ -20,7 +20,7 @@ that connect to it, and the shapes on each level are ordered so connectors cross
@@ -52,26 +52,26 @@ with a lane goes in the band of that name, and shapes without one g
across the direction the flow runs in, each with a header at the start of the flow
diff --git a/api/types/shapes.ShapeHorizontalPosition.html b/api/types/shapes.ShapeHorizontalPosition.html
index 29ab7c2d84..cdb5834aa9 100644
--- a/api/types/shapes.ShapeHorizontalPosition.html
+++ b/api/types/shapes.ShapeHorizontalPosition.html
@@ -26,7 +26,7 @@ a base of the page, the space between its margins, or one of its margins
diff --git a/api/types/shapes.ShapeLayout.html b/api/types/shapes.ShapeLayout.html
index ec444fb333..fa58e8584e 100644
--- a/api/types/shapes.ShapeLayout.html
+++ b/api/types/shapes.ShapeLayout.html
@@ -20,7 +20,7 @@ layout, which is placed around them. Connectors are routed after the shapes are
diff --git a/api/types/shapes.ShapeSize.html b/api/types/shapes.ShapeSize.html
index f332143eb8..9f02d935d9 100644
--- a/api/types/shapes.ShapeSize.html
+++ b/api/types/shapes.ShapeSize.html
@@ -19,7 +19,7 @@ percentage of the space between the page's margins, or of what floating.si
diff --git a/api/types/shapes.ShapeTextWarp.html b/api/types/shapes.ShapeTextWarp.html
index a1e9ec440f..5aef3f715d 100644
--- a/api/types/shapes.ShapeTextWarp.html
+++ b/api/types/shapes.ShapeTextWarp.html
@@ -19,7 +19,7 @@ The ...Filled arches, circle and button spread the text over the wh
diff --git a/api/types/shapes.ShapeThemeColor.html b/api/types/shapes.ShapeThemeColor.html
index 9717470055..0e0093261a 100644
--- a/api/types/shapes.ShapeThemeColor.html
+++ b/api/types/shapes.ShapeThemeColor.html
@@ -20,7 +20,7 @@ same as docx's ThemeColor, which text, borders and sha
diff --git a/api/types/shapes.ShapeTransformation.html b/api/types/shapes.ShapeTransformation.html
index 8172699efe..e2368df8ac 100644
--- a/api/types/shapes.ShapeTransformation.html
+++ b/api/types/shapes.ShapeTransformation.html
@@ -30,7 +30,7 @@ between the margins for a floating shape, such as "100%"<
diff --git a/api/types/shapes.ShapeTreeLayout.html b/api/types/shapes.ShapeTreeLayout.html
index 6eaef4f1f0..b39638e810 100644
--- a/api/types/shapes.ShapeTreeLayout.html
+++ b/api/types/shapes.ShapeTreeLayout.html
@@ -20,7 +20,7 @@ children are placed side by side below their parent, which is centred over them.
diff --git a/api/types/shapes.ShapeVerticalPosition.html b/api/types/shapes.ShapeVerticalPosition.html
index eb8acce72b..b039f13616 100644
--- a/api/types/shapes.ShapeVerticalPosition.html
+++ b/api/types/shapes.ShapeVerticalPosition.html
@@ -26,7 +26,7 @@ a base of the page, the space between its margins, or one of its margins
diff --git a/api/variables/index.CharacterSet.html b/api/variables/index.CharacterSet.html
index ffb482b77c..438451e562 100644
--- a/api/variables/index.CharacterSet.html
+++ b/api/variables/index.CharacterSet.html
@@ -60,7 +60,7 @@ Maps character set names to their hexadecimal identifiers.
diff --git a/api/variables/index.DocumentAttributeNamespaces.html b/api/variables/index.DocumentAttributeNamespaces.html
index e14374107c..01dc57892f 100644
--- a/api/variables/index.DocumentAttributeNamespaces.html
+++ b/api/variables/index.DocumentAttributeNamespaces.html
@@ -94,7 +94,7 @@ in a document, including WordprocessingML, DrawingML, VML, and others.
When this value is set, the input specified via the user interface may be restricted to the number of lines per page and characters per line, with the consumer or producer translating this information based on the current font data to get the resulting line and character pitch values
diff --git a/api/variables/index.DropCapType.html b/api/variables/index.DropCapType.html
index 8dc0fb2dfc..43c563fbd2 100644
--- a/api/variables/index.DropCapType.html
+++ b/api/variables/index.DropCapType.html
@@ -32,7 +32,7 @@ beginning of a paragraph. This enum defines how the drop cap should be positione
diff --git a/api/variables/index.EMPTY_OBJECT.html b/api/variables/index.EMPTY_OBJECT.html
index 4ecfdb7875..004a7a786b 100644
--- a/api/variables/index.EMPTY_OBJECT.html
+++ b/api/variables/index.EMPTY_OBJECT.html
@@ -20,7 +20,7 @@ has no children or attributes.
diff --git a/api/variables/index.EmphasisMarkType.html b/api/variables/index.EmphasisMarkType.html
index 676623f651..d8e2fbf91e 100644
--- a/api/variables/index.EmphasisMarkType.html
+++ b/api/variables/index.EmphasisMarkType.html
@@ -31,7 +31,7 @@ Emphasis marks are commonly used in East Asian typography.
Specifies that this header or footer shall appear on the first page in this section. The appearance of this header or footer is contingent on the setting of the titlePg element (§2.10.6).
diff --git a/api/variables/index.LevelFormat.html b/api/variables/index.LevelFormat.html
index cc279ba395..3168ec3c9e 100644
--- a/api/variables/index.LevelFormat.html
+++ b/api/variables/index.LevelFormat.html
@@ -281,7 +281,7 @@ decimal, roman numerals, letters, and various international formats.
diff --git a/api/variables/index.PageTextDirectionType.html b/api/variables/index.PageTextDirectionType.html
index 1cb9fe2a64..6dbeca31cd 100644
--- a/api/variables/index.PageTextDirectionType.html
+++ b/api/variables/index.PageTextDirectionType.html
@@ -28,7 +28,7 @@ vertically (top-to-bottom), commonly used for East Asian languages.
Top-to-bottom, right-to-left (vertical East Asian text flow)
diff --git a/api/variables/index.ShadingType.html b/api/variables/index.ShadingType.html
index b88e8befc8..c584b28ac2 100644
--- a/api/variables/index.ShadingType.html
+++ b/api/variables/index.ShadingType.html
@@ -103,7 +103,7 @@ color and the pattern color.
diff --git a/api/variables/index.TextEffect.html b/api/variables/index.TextEffect.html
index b2d7fbf462..8f75ed6a41 100644
--- a/api/variables/index.TextEffect.html
+++ b/api/variables/index.TextEffect.html
@@ -56,7 +56,7 @@ these effects are deprecated and may not be supported by all applications.
diff --git a/api/variables/index.VerticalAlign.html b/api/variables/index.VerticalAlign.html
index 9a75abeeec..886e3b508e 100644
--- a/api/variables/index.VerticalAlign.html
+++ b/api/variables/index.VerticalAlign.html
@@ -32,7 +32,7 @@ backward-compatibility and will be removed in the next major release.
diff --git a/api/variables/index.VerticalAlignTable.html b/api/variables/index.VerticalAlignTable.html
index 53d2a8b20c..e572eaded5 100644
--- a/api/variables/index.VerticalAlignTable.html
+++ b/api/variables/index.VerticalAlignTable.html
@@ -28,7 +28,7 @@ are valid according to ECMA-376 (§17.18.87 ST_VerticalJc within <w:tcP
diff --git a/api/variables/index.VerticalMergeType.html b/api/variables/index.VerticalMergeType.html
index b42399b45b..fb92a5f6d8 100644
--- a/api/variables/index.VerticalMergeType.html
+++ b/api/variables/index.VerticalMergeType.html
@@ -29,7 +29,7 @@ This cell continues a vertical merge started by a cell above it.
This cell begins a new vertical merge region.
diff --git a/api/variables/index.bookmarkUniqueNumericId.html b/api/variables/index.bookmarkUniqueNumericId.html
index 11dac5fd24..e529fb676a 100644
--- a/api/variables/index.bookmarkUniqueNumericId.html
+++ b/api/variables/index.bookmarkUniqueNumericId.html
@@ -27,7 +27,7 @@ than a generator per instance.
diff --git a/api/variables/index.docPropertiesUniqueNumericId.html b/api/variables/index.docPropertiesUniqueNumericId.html
index a2456212fa..bd45750971 100644
--- a/api/variables/index.docPropertiesUniqueNumericId.html
+++ b/api/variables/index.docPropertiesUniqueNumericId.html
@@ -28,7 +28,7 @@ one counter rather than a generator per instance.
diff --git a/api/variables/layout.estimatePageNumbers.html b/api/variables/layout.estimatePageNumbers.html
index 75b2a3d993..6a11386277 100644
--- a/api/variables/layout.estimatePageNumbers.html
+++ b/api/variables/layout.estimatePageNumbers.html
@@ -23,12 +23,14 @@ numbers of pages, are written with it. Give it to a document as its pageNu
Arial and Times New Roman. It follows paragraphs' spacing, indents, line spacing, tab stops and keep settings, widow
and orphan control, lists, pictures in the line, tables, whose rows break across pages, footnotes and endnotes, page,
column and section breaks, and each section's page size, margins, columns, headers, footers and page numbering.
-
It stops at the first thing it can't lay out yet: a drawing that text flows around, a text box or frame, an equation,
-a footnote that continues on the next page, columns evened out before a continuous section break, a table row kept
-whole that is taller than a page, or a character whose width in its font isn't known, such as a mathematical symbol in
-Calibri, which Word draws in Cambria Math. The page references to bookmarks after it are left blank, for Word to fill
-in when it updates the fields. A document in compatibility mode, which Word lays out as an older version of Word did,
-isn't laid out at all.
+
It stops at the first thing it can't lay out yet: a drawing or table that text flows around, a text box or frame, an
+equation, a footnote that continues on the next page, columns evened out before a continuous section break, a table
+row kept whole that is taller than a page, or a character whose width in its font isn't known, such as a mathematical
+symbol in Calibri, which Word draws in Cambria Math. The page references to bookmarks after it are left blank, for Word
+to fill in when it updates the fields. A document in compatibility mode, which Word lays out as an older version of
+Word did, isn't laid out at all. When laying the pages out again with the page numbers it worked out still changes
+them after three passes, as when a table of contents wraps one way with a number and the other way without it, all of
+them are left blank.
Page references and tables of contents are written clean, so Word shows the numbers as they are written, and the
page numbers it left blank stay blank, without asking to update the fields, unless the document has updateFields
on.
diff --git a/live-examples/lib/layout.d.ts b/live-examples/lib/layout.d.ts
index 32dda5c612..3454946c4a 100644
--- a/live-examples/lib/layout.d.ts
+++ b/live-examples/lib/layout.d.ts
@@ -43,12 +43,14 @@ export declare type DocumentLayout = {
* and orphan control, lists, pictures in the line, tables, whose rows break across pages, footnotes and endnotes, page,
* column and section breaks, and each section's page size, margins, columns, headers, footers and page numbering.
*
- * It stops at the first thing it can't lay out yet: a drawing that text flows around, a text box or frame, an equation,
- * a footnote that continues on the next page, columns evened out before a continuous section break, a table row kept
- * whole that is taller than a page, or a character whose width in its font isn't known, such as a mathematical symbol in
- * Calibri, which Word draws in Cambria Math. The page references to bookmarks after it are left blank, for Word to fill
- * in when it updates the fields. A document in compatibility mode, which Word lays out as an older version of Word did,
- * isn't laid out at all.
+ * It stops at the first thing it can't lay out yet: a drawing or table that text flows around, a text box or frame, an
+ * equation, a footnote that continues on the next page, columns evened out before a continuous section break, a table
+ * row kept whole that is taller than a page, or a character whose width in its font isn't known, such as a mathematical
+ * symbol in Calibri, which Word draws in Cambria Math. The page references to bookmarks after it are left blank, for Word
+ * to fill in when it updates the fields. A document in compatibility mode, which Word lays out as an older version of
+ * Word did, isn't laid out at all. When laying the pages out again with the page numbers it worked out still changes
+ * them after three passes, as when a table of contents wraps one way with a number and the other way without it, all of
+ * them are left blank.
*
* Page references and tables of contents are written clean, so Word shows the numbers as they are written, and the
* page numbers it left blank stay blank, without asking to update the fields, unless the document has `updateFields`
diff --git a/live-examples/lib/layout.iife.js b/live-examples/lib/layout.iife.js
index 76371f7481..4207d5bd70 100644
--- a/live-examples/lib/layout.iife.js
+++ b/live-examples/lib/layout.iife.js
@@ -3366,20 +3366,24 @@ var docxLayout = (function(exports) {
var knownPageCount = ({ pageCount, stoppedAt }) => stoppedAt === void 0 ? pageCount : void 0;
var sameNumbers = (one, other) => one.bookmarks.size === other.bookmarks.size && [...one.bookmarks].every(([name, page]) => other.bookmarks.get(name) === page) && knownPageCount(one) === knownPageCount(other) && one.sectionPageCounts.length === other.sectionPageCounts.length && one.sectionPageCounts.every((count, index) => other.sectionPageCounts[index] === count);
/**
- * Lays out a document's pages, again with the page numbers each pass works out, until they stop changing, or for at most
- * three passes, and gives the last.
+ * Lays out a document's pages, again with the page numbers each pass works out, until they stop changing, and gives the
+ * last. Each pass is laid out with the numbers of the pass before, so the last pass's numbers are those it was laid out
+ * with only when they stop changing. When they still change after three passes, as when a table of contents wraps one
+ * way with a number and the other way without it, none can be written, so it gives the first pass, laid out without them,
+ * as not settled.
*/
var layOutPasses = (content, measurer) => {
- const layOut = (before, pass) => {
+ const layOut = (before, pass, first) => {
const pagination = paginate(content, {
measurer,
pageNumbers: before === null || before === void 0 ? void 0 : before.bookmarks,
pageCount: before && knownPageCount(before),
sectionPageCounts: before === null || before === void 0 ? void 0 : before.sectionPageCounts
});
- return pass >= PASSES || before !== void 0 && sameNumbers(pagination, before) ? pagination : layOut(pagination, pass + 1);
+ if (before !== void 0 && sameNumbers(pagination, before)) return _objectSpread2(_objectSpread2({}, pagination), {}, { settled: true });
+ return pass >= PASSES ? _objectSpread2(_objectSpread2({}, first), {}, { settled: false }) : layOut(pagination, pass + 1, first !== null && first !== void 0 ? first : pagination);
};
- return layOut(void 0, 1);
+ return layOut(void 0, 1, void 0);
};
//#endregion
//#region src/layout/measure-width.ts
@@ -3500,12 +3504,45 @@ var docxLayout = (function(exports) {
"charformat",
"mergeformatinet"
]);
+ var BOUND_CONTROL = "a content control filled from custom XML";
var nameOf = (element) => Object.keys(element)[0];
/** The content of an element, including its text. An element without content has its attributes, or nothing */
var contentOf$2 = (element) => {
const content = element[nameOf(element)];
return Array.isArray(content) ? content : [content];
};
+ /** Whether an attribute that is on or off, such as `w:combine`, is on: it is off when it isn't given */
+ var isOn = (value) => value !== void 0 && !isOff(value);
+ /** Whether a content control (`w:sdt`) is bound to custom XML (`w:dataBinding`), which Word fills it in from */
+ var isBound = (control) => find(childrenOf(find(childrenOf(control["w:sdt"]), "w:sdtPr")), "w:dataBinding") !== void 0;
+ /**
+ * The elements of a part of a document, such as a table's rows or a cell's paragraphs, with those in its content controls
+ * and custom XML in their place. A content control bound to custom XML is kept whole, as it can't be laid out.
+ */
+ var unwrap = (elements) => elements.filter(isObject).flatMap((element) => {
+ const name = nameOf(element);
+ if (name === "w:sdt" && !isBound(element)) return unwrap(childrenOf(find(childrenOf(element[name]), "w:sdtContent")));
+ return name === "w:customXml" ? unwrap(contentOf$2(element)) : [element];
+ });
+ /** The name of the bookmark a bookmark's start (`w:bookmarkStart`) starts */
+ var bookmarkOf = (element) => stringOf(attributesOf(element["w:bookmarkStart"])["w:name"]);
+ /** The names of the bookmarks that start among elements, in order */
+ var bookmarksIn = (elements) => elements.flatMap((element) => {
+ const bookmark = "w:bookmarkStart" in element ? bookmarkOf(element) : void 0;
+ return bookmark === void 0 ? [] : [bookmark];
+ });
+ /**
+ * The elements of a name in a part of a document, such as the rows of a table, each with the names of the bookmarks
+ * that start between it and the one before. A bookmark there starts with the element, as it starts where the element's
+ * text does. Those after the last are left out.
+ */
+ var withBookmarks = (elements, name) => {
+ const indexes = elements.flatMap((element, index) => name in element ? [index] : []);
+ return indexes.map((at, index) => ({
+ element: elements[at],
+ bookmarks: bookmarksIn(elements.slice(index === 0 ? 0 : indexes[index - 1] + 1, at))
+ }));
+ };
var SUPERSCRIPT_WIDTH = .65;
/**
* The number of a footnote or endnote, at its reference or at the start of the note: as narrow as superscript, and as tall
@@ -3602,6 +3639,16 @@ var docxLayout = (function(exports) {
return [];
};
/**
+ * Why a run's own formatting changes the room its text takes in a way not yet followed, when it does: text fitted to a
+ * width (`w:fitText`), and two lines in one or text across in vertical text (`w:eastAsianLayout`).
+ */
+ var unsupportedFormatOf = (properties) => {
+ const { "w:combine": combined, "w:vert": across } = attributesOf(find(properties, "w:eastAsianLayout"));
+ if (find(properties, "w:fitText") !== void 0) return "text fitted to a width";
+ if (isOn(combined)) return "two lines in one";
+ return isOn(across) ? "text across in vertical text" : void 0;
+ };
+ /**
* Reads a run (`w:r`) in the paragraph's formatting, as its character style and its own formatting change it.
*/
var readRun = (element, paragraphRun, reader) => {
@@ -3615,6 +3662,7 @@ var docxLayout = (function(exports) {
readRunFormat(properties, styles.themeFonts)
]);
const font = fontOf(format);
+ const unsupportedFormat = unsupportedFormatOf(childrenOf(properties));
const items = children.map((child) => {
const name = nameOf(child);
if (name === "w:fldChar") return readFieldCharacter(child, font, reader);
@@ -3623,7 +3671,8 @@ var docxLayout = (function(exports) {
if (field && !field.inResult) field.instruction += contentOf$2(child).filter((part) => typeof part === "string").join("");
return [];
}
- if (!isShown(reader)) return [];
+ if (!isShown(reader) || name === "w:rPr") return [];
+ if (unsupportedFormat !== void 0) return unsupportedFormat;
switch (name) {
case "w:t": return contentOf$2(child).filter((part) => typeof part === "string").join("").split(" ").flatMap((part, index) => [...index > 0 && !format.hidden ? [{
type: "tab",
@@ -3686,6 +3735,8 @@ var docxLayout = (function(exports) {
}
case "w:pict":
case "w:object": return reader.inHeader ? [] : "a VML drawing";
+ case "w:ruby": return "text with a phonetic guide";
+ case "w:contentPart": return "a content part, such as ink";
default: return [];
}
});
@@ -3710,18 +3761,19 @@ var docxLayout = (function(exports) {
const name = nameOf(element);
if (name === "w:r") return readRun(element, paragraphRun, reader);
if (RUN_CONTAINERS.has(name)) return readInline(contentOf$2(element), paragraphRun, reader);
- if (name === "w:sdt") return readInline(childrenOf(find(childrenOf(element[name]), "w:sdtContent")), paragraphRun, reader);
+ if (name === "w:sdt") return isBound(element) ? BOUND_CONTROL : readInline(childrenOf(find(childrenOf(element[name]), "w:sdtContent")), paragraphRun, reader);
if (name === "w:fldSimple") {
const result = workedOutResultOf(String(attributesOf(element[name])["w:instr"]), fontOf(paragraphRun));
return result !== void 0 && isShown(reader) ? [result] : readInline(contentOf$2(element), paragraphRun, reader);
}
if (name === "w:bookmarkStart") {
- const bookmark = stringOf(attributesOf(element[name])["w:name"]);
+ const bookmark = bookmarkOf(element);
return bookmark === void 0 ? [] : [{
type: "marker",
name: bookmark
}];
}
+ if (name === "w:subDoc") return "a subdocument";
return name === "m:oMath" || name === "m:oMathPara" ? "an equation" : [];
});
const unsupported = parts.find((part) => typeof part === "string");
@@ -3792,7 +3844,7 @@ var docxLayout = (function(exports) {
readParagraphFormat(properties)
];
const items = readInline(children, paragraphRun, reader);
- const unsupported = find(properties, "w:framePr") === void 0 ? unknownLengthIn(element) : "a text frame";
+ const unsupported = find(properties, "w:framePr") !== void 0 ? "a text frame" : find(properties, "w:divId") === void 0 ? unknownLengthIn(element) : "a paragraph in an HTML division";
return _objectSpread2(_objectSpread2({
type: "paragraph",
items: typeof items === "string" ? [] : [...list.items, ...items],
@@ -3808,20 +3860,16 @@ var docxLayout = (function(exports) {
const style = attributes["w:val"];
return style === void 0 || style === "nil" || style === "none" ? 0 : ((_numberOf3 = numberOf(attributes["w:sz"])) !== null && _numberOf3 !== void 0 ? _numberOf3 : 0) / EIGHTHS_PER_POINT;
};
- /** The rows of a table, or of a content control or custom XML in it */
- var rowsOf = (elements) => elements.filter(isObject).flatMap((element) => {
- const name = nameOf(element);
- if (name === "w:tr") return [element];
- if (name === "w:sdt") return rowsOf(childrenOf(find(childrenOf(element[name]), "w:sdtContent")));
- return name === "w:customXml" ? rowsOf(contentOf$2(element)) : [];
- });
- /** The cells of a row */
- var cellsOf = (elements) => elements.filter(isObject).flatMap((element) => {
- const name = nameOf(element);
- if (name === "w:tc") return [element];
- if (name === "w:sdt") return cellsOf(childrenOf(find(childrenOf(element[name]), "w:sdtContent")));
- return name === "w:customXml" ? cellsOf(contentOf$2(element)) : [];
- });
+ /**
+ * Why a cell's properties (`w:tcPr`) change how its text is laid out in a way not yet followed, when they do: cells merged
+ * across columns as the oldest versions of Word wrote them (`w:hMerge`), text that doesn't wrap (`w:noWrap`), and text
+ * fitted to the cell (`w:tcFitText`).
+ */
+ var unsupportedCellOf = (properties) => {
+ if (find(properties, "w:hMerge") !== void 0) return "cells merged across columns as old versions of Word wrote them";
+ if (onOff(properties, "w:noWrap") === true) return "a table cell whose text doesn't wrap";
+ return onOff(properties, "w:tcFitText") === true ? "text fitted to its table cell" : void 0;
+ };
/** A share of a width, as a fraction, from fiftieths of a percent or a percentage written with a % */
var shareOf = (value) => {
const amount = numberOf(value);
@@ -3842,7 +3890,7 @@ var docxLayout = (function(exports) {
* out.
*/
var readTable = (element, reader) => {
- var _ref5, _ref6, _blocks$find;
+ var _ref5, _ref6, _ref7, _ref8, _ref9, _read$find, _blocks$find;
const children = contentOf$2(element).filter(isObject);
const properties = childrenOf(find(children, "w:tblPr"));
const style = valueOf(properties, "w:tblStyle");
@@ -3859,17 +3907,20 @@ var docxLayout = (function(exports) {
var _twips;
return (_twips = twips(attributesOf(column["w:gridCol"])["w:w"])) !== null && _twips !== void 0 ? _twips : 0;
});
- const rows = rowsOf(children);
+ const parts = unwrap(children);
+ const rows = withBookmarks(parts, "w:tr");
const gridWidth = (from, to) => grid.slice(from, to).reduce((total, value) => total + value, 0);
- const read = rows.map((row, rowIndex) => {
+ const read = rows.map(({ element: row, bookmarks: rowBookmarks }, rowIndex) => {
var _numberOf4;
const rowChildren = contentOf$2(row).filter(isObject);
const rowProperties = childrenOf(find(rowChildren, "w:trPr"));
+ const rowParts = unwrap(rowChildren);
+ const rowCells = withBookmarks(rowParts, "w:tc");
const heightAttributes = attributesOf(find(rowProperties, "w:trHeight"));
const height = twips(heightAttributes["w:val"]);
const { "w:hRule": rule } = heightAttributes;
const skipped = (_numberOf4 = numberOf(attributesOf(find(rowProperties, "w:gridBefore"))["w:val"])) !== null && _numberOf4 !== void 0 ? _numberOf4 : 0;
- const { cells, edges, column: end } = cellsOf(rowChildren).reduce(({ column, cells: done, edges: before }, cell) => {
+ const { cells, edges, column: end, unsupported: cellsUnsupported } = rowCells.reduce(({ column, cells: done, edges: before, unsupported: unsupportedBefore }, { element: cell }) => {
var _numberOf5, _twips2, _shareOf;
const cellChildren = contentOf$2(cell).filter(isObject);
const cellProperties = childrenOf(find(cellChildren, "w:tcPr"));
@@ -3881,25 +3932,28 @@ var docxLayout = (function(exports) {
const inTwips = widthType === "dxa" ? (_twips2 = twips(ownWidth)) !== null && _twips2 !== void 0 ? _twips2 : 0 : 0;
const hasWidth = inTwips > 0 || widthType === "pct" && ((_shareOf = shareOf(ownWidth)) !== null && _shareOf !== void 0 ? _shareOf : 0) > 0;
const width = inTwips > 0 ? inTwips : gridWidth(column, column + span);
- return {
+ return _objectSpread2(_objectSpread2({
column: column + span,
- edges: new Map([...before, [column + span, before.get(column) + width]]),
- cells: [...done, _objectSpread2(_objectSpread2(_objectSpread2({ column }, span > 1 ? { span } : {}), {}, { width: width - margins.left - margins.right }, hasWidth ? { ownWidth: width } : {}), {}, {
- blocks: readBlocks(cellChildren, reader, style),
- marginTop: margins.top,
- marginBottom: margins.bottom,
- marginLeft: margins.left,
- marginRight: margins.right
- }, merge ? { verticalMerge: merge } : {})]
- };
+ edges: new Map([...before, [column + span, before.get(column) + width]])
+ }, withoutUndefined({ unsupported: unsupportedBefore !== null && unsupportedBefore !== void 0 ? unsupportedBefore : unsupportedCellOf(cellProperties) })), {}, { cells: [...done, _objectSpread2(_objectSpread2(_objectSpread2({ column }, span > 1 ? { span } : {}), {}, { width: width - margins.left - margins.right }, hasWidth ? { ownWidth: width } : {}), {}, {
+ blocks: readBlocks(cellChildren, reader, style),
+ marginTop: margins.top,
+ marginBottom: margins.bottom,
+ marginLeft: margins.left,
+ marginRight: margins.right
+ }, merge ? { verticalMerge: merge } : {})] });
}, {
column: skipped,
cells: [],
edges: /* @__PURE__ */ new Map([[skipped, gridWidth(0, skipped)]])
});
- return {
+ const rowUnsupported = find(rowProperties, "w:divId") !== void 0 ? "a table row in an HTML division" : rowParts.some((part) => "w:sdt" in part) ? BOUND_CONTROL : cellsUnsupported;
+ return _objectSpread2(_objectSpread2({
edges,
- end,
+ end
+ }, withoutUndefined({ unsupported: rowUnsupported })), {}, {
+ bookmarks: rowBookmarks,
+ cellBookmarks: rowCells.map(({ bookmarks }) => bookmarks),
row: _objectSpread2(_objectSpread2({ cells }, height !== void 0 && rule !== "auto" ? { height: {
value: height,
rule: rule === "exact" ? "exact" : "atLeast"
@@ -3909,7 +3963,17 @@ var docxLayout = (function(exports) {
borderTop: borderWidth(borders, rowIndex === 0 ? "w:top" : "w:insideH"),
borderBottom: rowIndex === rows.length - 1 ? borderWidth(borders, "w:bottom") : 0
})
- };
+ });
+ });
+ let carried = [];
+ const tableRows = read.map(({ row, bookmarks, cellBookmarks }) => {
+ carried = [...carried, ...bookmarks];
+ return _objectSpread2(_objectSpread2({}, row), {}, { cells: row.cells.map((cell, index) => {
+ const pending = [...carried, ...cellBookmarks[index]];
+ const marked = pending.length === 0 ? void 0 : startingAtFirst(cell.blocks, pending);
+ carried = marked === void 0 ? pending : [];
+ return marked === void 0 ? cell : _objectSpread2(_objectSpread2({}, cell), {}, { blocks: marked });
+ }) });
});
const edgesAt = /* @__PURE__ */ new Map();
const unequal = read.some(({ edges }) => [...edges].some(([column, edge]) => {
@@ -3926,41 +3990,93 @@ var docxLayout = (function(exports) {
const lengths = unknownLengthIn([
find(children, "w:tblPr"),
find(children, "w:tblGrid"),
- ...rows.flatMap((row) => {
+ ...rows.flatMap(({ element: row }) => {
const rowChildren = contentOf$2(row).filter(isObject);
- return [find(rowChildren, "w:trPr"), ...cellsOf(rowChildren).map((cell) => find(contentOf$2(cell).filter(isObject), "w:tcPr"))];
+ return [find(rowChildren, "w:trPr"), ...unwrap(rowChildren).filter((part) => "w:tc" in part).map((cell) => find(contentOf$2(cell).filter(isObject), "w:tcPr"))];
})
]);
- const unsupported = (_ref5 = (_ref6 = fits ? unfitted : unequal ? "a table whose rows give a column different widths" : void 0) !== null && _ref6 !== void 0 ? _ref6 : lengths) !== null && _ref5 !== void 0 ? _ref5 : (_blocks$find = blocks.find((block) => block.unsupported !== void 0)) === null || _blocks$find === void 0 ? void 0 : _blocks$find.unsupported;
+ const unsupported = (_ref5 = (_ref6 = (_ref7 = (_ref8 = (_ref9 = find(properties, "w:tblpPr") === void 0 ? void 0 : "a table that text flows around") !== null && _ref9 !== void 0 ? _ref9 : parts.some((part) => "w:sdt" in part) ? BOUND_CONTROL : void 0) !== null && _ref8 !== void 0 ? _ref8 : (_read$find = read.find((row) => row.unsupported !== void 0)) === null || _read$find === void 0 ? void 0 : _read$find.unsupported) !== null && _ref7 !== void 0 ? _ref7 : fits ? unfitted : unequal ? "a table whose rows give a column different widths" : void 0) !== null && _ref6 !== void 0 ? _ref6 : lengths) !== null && _ref5 !== void 0 ? _ref5 : (_blocks$find = blocks.find((block) => block.unsupported !== void 0)) === null || _blocks$find === void 0 ? void 0 : _blocks$find.unsupported;
return _objectSpread2(_objectSpread2(_objectSpread2({
type: "table",
- rows: read.map(({ row }) => row)
+ rows: tableRows
}, fits ? { fit: readTableWidth(properties) } : {}), !fits && !fixed ? { widen: _objectSpread2(_objectSpread2({}, readTableWidth(properties)), {}, { acrossColumns: tableCells.some(({ span }) => span !== void 0) }) } : {}), {}, {
borderLeft: borderWidth(borders, "w:left"),
borderRight: borderWidth(borders, "w:right")
}, unsupported ? { unsupported } : {});
};
+ /** A block in place of what can't be laid out, with why */
+ var unsupportedBlock = (unsupported) => ({
+ type: "paragraph",
+ items: [],
+ format: {},
+ tabStops: [],
+ markFont: {},
+ unsupported
+ });
+ /**
+ * A block with bookmarks that start where its text does: before its first item, or, for a table, in the first of its
+ * cells with any text. Undefined when it has no text for them to start at, as a table without rows.
+ */
+ var startingWith = (block, bookmarks) => {
+ if (bookmarks.length === 0) return block;
+ if (block.type === "paragraph") return _objectSpread2(_objectSpread2({}, block), {}, { items: [...bookmarks.map((name) => ({
+ type: "marker",
+ name
+ })), ...block.items] });
+ for (const [rowIndex, row] of block.rows.entries()) for (const [cellIndex, cell] of row.cells.entries()) {
+ const blocks = startingAtFirst(cell.blocks, bookmarks);
+ if (blocks !== void 0) {
+ const cells = row.cells.map((other, index) => index === cellIndex ? _objectSpread2(_objectSpread2({}, cell), {}, { blocks }) : other);
+ return _objectSpread2(_objectSpread2({}, block), {}, { rows: block.rows.map((other, index) => index === rowIndex ? _objectSpread2(_objectSpread2({}, row), {}, { cells }) : other) });
+ }
+ }
+ };
+ /**
+ * Blocks with bookmarks that start where the text of the first of them with any text does. Undefined when none has any.
+ */
+ var startingAtFirst = (blocks, bookmarks) => {
+ for (const [index, block] of blocks.entries()) {
+ const marked = startingWith(block, bookmarks);
+ if (marked !== void 0) return [
+ ...blocks.slice(0, index),
+ marked,
+ ...blocks.slice(index + 1)
+ ];
+ }
+ };
+ /**
+ * Reads a paragraph or table, or what is in its place and can't be laid out: an imported document, an equation outside
+ * a paragraph, or a content control bound to custom XML. Undefined for anything else.
+ */
+ var readBlock = (element, reader, tableStyle) => {
+ switch (nameOf(element)) {
+ case "w:p": return readParagraph(element, reader, tableStyle);
+ case "w:tbl": return readTable(element, reader);
+ case "w:sdt": return unsupportedBlock(BOUND_CONTROL);
+ case "w:altChunk": return unsupportedBlock("an imported document");
+ case "m:oMath":
+ case "m:oMathPara": return unsupportedBlock("an equation");
+ default: return;
+ }
+ };
/**
* Reads the paragraphs and tables in a part of a document, such as a table cell or a header, and in the content controls
- * and custom XML in it.
+ * and custom XML in it. A bookmark between them starts with the next.
*/
- var readBlocks = (elements, reader, tableStyle) => elements.filter(isObject).flatMap((element) => {
- switch (nameOf(element)) {
- case "w:p": return [readParagraph(element, reader, tableStyle)];
- case "w:tbl": return [readTable(element, reader)];
- case "w:sdt": return readBlocks(childrenOf(find(childrenOf(element["w:sdt"]), "w:sdtContent")), reader, tableStyle);
- case "w:customXml": return readBlocks(contentOf$2(element), reader, tableStyle);
- case "w:altChunk": return [{
- type: "paragraph",
- items: [],
- format: {},
- tabStops: [],
- markFont: {},
- unsupported: "an imported document"
- }];
- default: return [];
+ var readBlocks = (elements, reader, tableStyle) => {
+ const blocks = [];
+ let bookmarks = [];
+ for (const element of unwrap(elements)) {
+ const block = readBlock(element, reader, tableStyle);
+ if (block === void 0) bookmarks = [...bookmarks, ...bookmarksIn([element])];
+ else {
+ const marked = startingWith(block, bookmarks);
+ blocks.push(marked !== null && marked !== void 0 ? marked : block);
+ bookmarks = marked ? [] : bookmarks;
+ }
}
- });
+ return blocks;
+ };
var START_TYPES = /* @__PURE__ */ new Set([
"nextPage",
"continuous",
@@ -4015,7 +4131,7 @@ var docxLayout = (function(exports) {
const marginRight = (_twips7 = twips((_margins$wRight = margins["w:right"]) !== null && _margins$wRight !== void 0 ? _margins$wRight : margins["w:end"])) !== null && _twips7 !== void 0 ? _twips7 : DEFAULT_SECTION.marginRight;
const gutter = (_twips8 = twips(margins["w:gutter"])) !== null && _twips8 !== void 0 ? _twips8 : DEFAULT_SECTION.gutter;
const columns = readColumns(find(properties, "w:cols"), pageWidth - marginLeft - marginRight - gutter);
- const unsupported = grid === "lines" || grid === "linesAndChars" || grid === "snapToChars" ? "a document grid" : formatPageNumber(1, format) === void 0 ? "page numbers in a format not yet written" : find(properties, "w:textDirection") !== void 0 ? "text that runs down the page" : unknownLengthIn(element);
+ const unsupported = grid === "lines" || grid === "linesAndChars" || grid === "snapToChars" ? "a document grid" : formatPageNumber(1, format) === void 0 ? "page numbers in a format not yet written" : find(properties, "w:textDirection") !== void 0 ? "text that runs down the page" : find(properties, "w15:footnoteColumns") === void 0 ? unknownLengthIn(element) : "footnotes in columns of their own";
const headers = readReferences(properties, "w:headerReference", readPart);
const footers = readReferences(properties, "w:footerReference", readPart);
return _objectSpread2(_objectSpread2(_objectSpread2({
@@ -4096,13 +4212,21 @@ var docxLayout = (function(exports) {
* Reads the parts of the document's settings (`w:settings`) that change how it is laid out.
*/
var readSettings = (xml) => {
- var _compatibility$find, _twips14;
+ var _compatibility$find, _find$, _find, _twips14;
const settings = childrenOf(xml === null || xml === void 0 ? void 0 : xml["w:settings"]);
const compatibility = childrenOf(find(settings, "w:compat"));
const lists = readKinsokuLists(settings);
const spacingControl = valueOf(settings, "w:characterSpacingControl");
const mode = numberOf(attributesOf((_compatibility$find = compatibility.find((child) => "w:compatSetting" in child && attributesOf(child["w:compatSetting"])["w:name"] === "compatibilityMode")) === null || _compatibility$find === void 0 ? void 0 : _compatibility$find["w:compatSetting"])["w:val"]);
- const unsupported = onOff(settings, "w:autoHyphenation") === true ? "hyphenation" : onOff(settings, "w:strictFirstAndLastChars") === true ? "the strict rules for the characters that can't start a line" : spacingControl !== void 0 && spacingControl !== "doNotCompress" ? "punctuation compressed" : mode === void 0 || mode < CURRENT_COMPATIBILITY_MODE ? "a document in compatibility mode" : unknownLengthIn(settings);
+ const unsupported = (_find$ = (_find = [
+ [onOff(settings, "w:autoHyphenation"), "hyphenation"],
+ [onOff(settings, "w:strictFirstAndLastChars"), "the strict rules for the characters that can't start a line"],
+ [spacingControl !== void 0 && spacingControl !== "doNotCompress", "punctuation compressed"],
+ [mode === void 0 || mode < CURRENT_COMPATIBILITY_MODE, "a document in compatibility mode"],
+ [onOff(settings, "w:bookFoldPrinting") || onOff(settings, "w:bookFoldRevPrinting"), "pages printed as a folded booklet"],
+ [onOff(settings, "w:printTwoOnOne"), "two pages printed on each sheet"],
+ [onOff(settings, "w:linkStyles"), "styles updated from the document's template when Word opens it"]
+ ].find(([applies]) => applies === true)) === null || _find === void 0 ? void 0 : _find[1]) !== null && _find$ !== void 0 ? _find$ : unknownLengthIn(settings);
return _objectSpread2(_objectSpread2({
defaultTabStop: (_twips14 = twips(attributesOf(find(settings, "w:defaultTabStop"))["w:val"])) !== null && _twips14 !== void 0 ? _twips14 : 36,
evenAndOddHeaders: onOff(settings, "w:evenAndOddHeaders") === true,
@@ -4145,7 +4269,7 @@ var docxLayout = (function(exports) {
* Reads a document's body (`w:body`), with the other parts of the document.
*/
var readContent = (body, parts) => {
- var _parts$otherListIds, _ref7, _documentContent$unsu;
+ var _parts$otherListIds, _ref10, _documentContent$unsu;
const { styles } = parts;
const { lists: numbering, unsupported: inNumbering } = readNumbering(parts.numbering, styles, (_parts$otherListIds = parts.otherListIds) !== null && _parts$otherListIds !== void 0 ? _parts$otherListIds : /* @__PURE__ */ new Map());
const readerOf = (inHeader) => ({
@@ -4212,33 +4336,27 @@ var docxLayout = (function(exports) {
const addSection = (element) => {
sections.push(readSection(element, readPart, sections[sections.length - 1]));
};
- const read = (elements) => {
- for (const element of elements.filter(isObject)) {
- const name = nameOf(element);
- if (name === "w:sdt") read(childrenOf(find(childrenOf(element[name]), "w:sdtContent")));
- else if (name === "w:customXml") read(contentOf$2(element));
- else if (name === "w:sectPr") addSection(element[name]);
- else if (name === "w:bookmarkStart") bookmarks = [...bookmarks, String(attributesOf(element[name])["w:name"])];
- else {
- const sectionProperties = name === "w:p" ? find(childrenOf(find(contentOf$2(element).filter(isObject), "w:pPr")), "w:sectPr") : void 0;
- for (const block of readBlocks([element], reader)) {
- const markers = bookmarks.map((marker) => ({
- type: "marker",
- name: marker
- }));
- const marked = block.type === "paragraph" && markers.length > 0;
- const sectionBreak = sectionProperties !== void 0 && block.type === "paragraph" && block.items.length === 0 && !marked;
- blocks.push({
- block: marked ? _objectSpread2(_objectSpread2({}, block), {}, { items: [...markers, ...block.items] }) : sectionBreak ? _objectSpread2(_objectSpread2({}, block), {}, { sectionBreak }) : block,
- section: sections.length
- });
- bookmarks = marked ? [] : bookmarks;
- }
- if (sectionProperties !== void 0) addSection(sectionProperties);
+ for (const element of unwrap(contentOf$2(body))) {
+ const name = nameOf(element);
+ if (name === "w:sectPr") addSection(element[name]);
+ else if (name === "w:bookmarkStart") {
+ const bookmark = bookmarkOf(element);
+ bookmarks = bookmark === void 0 ? bookmarks : [...bookmarks, bookmark];
+ } else {
+ const block = readBlock(element, reader);
+ const sectionProperties = name === "w:p" ? find(childrenOf(find(contentOf$2(element).filter(isObject), "w:pPr")), "w:sectPr") : void 0;
+ if (block !== void 0) {
+ const marked = startingWith(block, bookmarks);
+ const sectionBreak = sectionProperties !== void 0 && block.type === "paragraph" && block.items.length === 0 && bookmarks.length === 0;
+ blocks.push({
+ block: sectionBreak ? _objectSpread2(_objectSpread2({}, block), {}, { sectionBreak }) : marked !== null && marked !== void 0 ? marked : block,
+ section: sections.length
+ });
+ bookmarks = marked ? [] : bookmarks;
}
+ if (sectionProperties !== void 0) addSection(sectionProperties);
}
- };
- read(contentOf$2(body));
+ }
if (sections.length === 0 || blocks.some(({ section }) => section >= sections.length)) addSection(void 0);
const documentContent = _objectSpread2({
blocks,
@@ -4250,7 +4368,7 @@ var docxLayout = (function(exports) {
footnoteNumbers,
endnoteNumbers
}, readSettings(parts.settings));
- return _objectSpread2(_objectSpread2({}, documentContent), withoutUndefined({ unsupported: (_ref7 = (_documentContent$unsu = documentContent.unsupported) !== null && _documentContent$unsu !== void 0 ? _documentContent$unsu : styles.unsupported) !== null && _ref7 !== void 0 ? _ref7 : inNumbering }));
+ return _objectSpread2(_objectSpread2({}, documentContent), withoutUndefined({ unsupported: (_ref10 = (_documentContent$unsu = documentContent.unsupported) !== null && _documentContent$unsu !== void 0 ? _documentContent$unsu : styles.unsupported) !== null && _ref10 !== void 0 ? _ref10 : inNumbering }));
};
//#endregion
//#region src/layout/read-docx.ts
@@ -4327,10 +4445,10 @@ var docxLayout = (function(exports) {
//#region src/layout/estimate-page-numbers.ts
/** What a document is read into: a template patchDocument patched, or the body of a document being written */
var contentOf = (document, context) => "parts" in document ? readDocx(document.parts) : (context === null || context === void 0 ? void 0 : context.file) && readDocument(document, context);
- /** Lays out the pages until their page numbers stop changing, with a measurer */
+ /** Lays out the pages until their page numbers stop changing, with a measurer. Gives none when they don't */
var estimateWith = (content, measurer) => {
- if (!content) return { bookmarks: /* @__PURE__ */ new Map() };
- const pagination = layOutPasses(content, measurer);
+ const pagination = content && layOutPasses(content, measurer);
+ if (!(pagination === null || pagination === void 0 ? void 0 : pagination.settled)) return { bookmarks: /* @__PURE__ */ new Map() };
const pageCount = knownPageCount(pagination);
return _objectSpread2({
bookmarks: pagination.bookmarks,
@@ -4353,12 +4471,14 @@ var docxLayout = (function(exports) {
* and orphan control, lists, pictures in the line, tables, whose rows break across pages, footnotes and endnotes, page,
* column and section breaks, and each section's page size, margins, columns, headers, footers and page numbering.
*
- * It stops at the first thing it can't lay out yet: a drawing that text flows around, a text box or frame, an equation,
- * a footnote that continues on the next page, columns evened out before a continuous section break, a table row kept
- * whole that is taller than a page, or a character whose width in its font isn't known, such as a mathematical symbol in
- * Calibri, which Word draws in Cambria Math. The page references to bookmarks after it are left blank, for Word to fill
- * in when it updates the fields. A document in compatibility mode, which Word lays out as an older version of Word did,
- * isn't laid out at all.
+ * It stops at the first thing it can't lay out yet: a drawing or table that text flows around, a text box or frame, an
+ * equation, a footnote that continues on the next page, columns evened out before a continuous section break, a table
+ * row kept whole that is taller than a page, or a character whose width in its font isn't known, such as a mathematical
+ * symbol in Calibri, which Word draws in Cambria Math. The page references to bookmarks after it are left blank, for Word
+ * to fill in when it updates the fields. A document in compatibility mode, which Word lays out as an older version of
+ * Word did, isn't laid out at all. When laying the pages out again with the page numbers it worked out still changes
+ * them after three passes, as when a table of contents wraps one way with a number and the other way without it, all of
+ * them are left blank.
*
* Page references and tables of contents are written clean, so Word shows the numbers as they are written, and the
* page numbers it left blank stay blank, without asking to update the fields, unless the document has `updateFields`
diff --git a/usage/layout.md b/usage/layout.md
index eef3fddb7b..b9729c9002 100644
--- a/usage/layout.md
+++ b/usage/layout.md
@@ -192,7 +192,7 @@ The pages are laid out with the widths and heights of the characters of the font
It stops at the first thing it can't lay out yet, and the page numbers of the headings and bookmarks after it are left blank, until the fields are updated in Word (see [Opening the document in Word](#opening-the-document-in-word)):
-- a picture or shape that text wraps around, a text box, or a text frame
+- a picture, shape or table that text wraps around (a table's `float`), a text box, or a text frame
- an equation
- a footnote that continues on the next page where it would break in a paragraph kept together or with the next, or in a table with header rows or a row of more than one line; one that continues from a paragraph kept with a longer one or a table, or onto a page of its own after a section break; and a footnote line, or a line and the start of its footnote, taller than a page
- a paragraph kept together that is taller than a column, in columns of different widths, and a paragraph kept with the next before a paragraph kept together that is taller than a column, when that one would move to a new page without it
@@ -209,6 +209,9 @@ It stops at the first thing it can't lay out yet, and the page numbers of the he
- page numbers in Thai and Hindi words (`thaiCounting` and `hindiCounting`), and page numbers Word writes as an error: any in `none`, 0 in Hebrew, Arabic, Thai and Hindi digits and Chicago's symbols, and those past where a format's letters run out, such as 781 in letters. Page numbers in Hebrew past 100, and in Hindi letters past 75 (`hindiVowels`) and 37 (`hindiConsonants`), haven't been checked in Word yet
- a chapter number from a heading in a table
- a document in compatibility mode, which Word lays out as an older version of Word did: one saved by Word 2010 or earlier, or by an application that writes an older mode, such as LibreOffice, or given an older `compatibility` `version`
+- in [templates](#templates), what `docx` doesn't write and Word lays out in ways not yet followed: text with a phonetic guide, text fitted to a width or to its cell, two lines in one and horizontal in vertical text, ink and other content parts, a subdocument, a paragraph or table row in an HTML division, a table cell whose text doesn't wrap, cells merged across columns as old versions of Word wrote them, footnotes in columns of their own, a content control Word fills in from custom XML when it opens the document, pages printed as a folded booklet or two to a sheet, and styles Word updates from the document's template when it opens it
+
+When laying out the pages again with the page numbers it worked out still changes them after three passes, as when a table of contents wraps one way with a number and the other way without it, all of them are left blank, and `layoutDocument` lays out the pages without them.
A wrong page number is worse than a blank one, so it doesn't guess.
The unique identifier for this abstract numbering definition.