diff --git a/english/cpp/aspose.words.saving/_index.md b/english/cpp/aspose.words.saving/_index.md
index eaa71b87dee..5a5cf22708c 100644
--- a/english/cpp/aspose.words.saving/_index.md
+++ b/english/cpp/aspose.words.saving/_index.md
@@ -117,6 +117,7 @@ The **Aspose.Words.Saving** namespace provides classes and enumerations that all
| [TableContentAlignment](./tablecontentalignment/) | Allows to specify the alignment of the content of the table to be used when exporting into Markdown format. |
| [TiffCompression](./tiffcompression/) | Specifies what type of compression to apply when saving page images into a TIFF file. |
| [TxtExportHeadersFootersMode](./txtexportheadersfootersmode/) | Specifies the way headers and footers are exported to plain text format. |
+| [TxtOfficeMathExportMode](./txtofficemathexportmode/) | Specifies how Aspose.Words exports OfficeMath to [Text](../aspose.words/saveformat/). |
| [XlsxDateTimeParsingMode](./xlsxdatetimeparsingmode/) | Specifies how document text is parsed to identify date and time values. |
| [XlsxSectionMode](./xlsxsectionmode/) | Specifies how sections are handled when saving a document in the XLSX format. |
| [Zip64Mode](./zip64mode/) | Specifies when to use ZIP64 format extensions for OOXML files. |
diff --git a/english/cpp/aspose.words.saving/htmlelementsizeoutputmode/_index.md b/english/cpp/aspose.words.saving/htmlelementsizeoutputmode/_index.md
index 863e6ac69a9..82ee02200e9 100644
--- a/english/cpp/aspose.words.saving/htmlelementsizeoutputmode/_index.md
+++ b/english/cpp/aspose.words.saving/htmlelementsizeoutputmode/_index.md
@@ -69,13 +69,13 @@ System::String outDocContents = System::IO::File::ReadAllText(get_ArtifactsDir()
if (allowNegativeIndent)
{
- ASSERT_TRUE(outDocContents.Contains(u"
"));
- ASSERT_TRUE(outDocContents.Contains(u""));
+ ASSERT_TRUE(outDocContents.Contains(u""));
+ ASSERT_TRUE(outDocContents.Contains(u""));
}
else
{
- ASSERT_TRUE(outDocContents.Contains(u""));
- ASSERT_TRUE(outDocContents.Contains(u""));
+ ASSERT_TRUE(outDocContents.Contains(u""));
+ ASSERT_TRUE(outDocContents.Contains(u""));
}
```
diff --git a/english/cpp/aspose.words.saving/htmlsaveoptions/get_allownegativeindent/_index.md b/english/cpp/aspose.words.saving/htmlsaveoptions/get_allownegativeindent/_index.md
index 2548e25cfa0..693cc39a6bb 100644
--- a/english/cpp/aspose.words.saving/htmlsaveoptions/get_allownegativeindent/_index.md
+++ b/english/cpp/aspose.words.saving/htmlsaveoptions/get_allownegativeindent/_index.md
@@ -65,13 +65,13 @@ System::String outDocContents = System::IO::File::ReadAllText(get_ArtifactsDir()
if (allowNegativeIndent)
{
- ASSERT_TRUE(outDocContents.Contains(u""));
- ASSERT_TRUE(outDocContents.Contains(u""));
+ ASSERT_TRUE(outDocContents.Contains(u""));
+ ASSERT_TRUE(outDocContents.Contains(u""));
}
else
{
- ASSERT_TRUE(outDocContents.Contains(u""));
- ASSERT_TRUE(outDocContents.Contains(u""));
+ ASSERT_TRUE(outDocContents.Contains(u""));
+ ASSERT_TRUE(outDocContents.Contains(u""));
}
```
diff --git a/english/cpp/aspose.words.saving/htmlsaveoptions/get_exportroundtripinformation/_index.md b/english/cpp/aspose.words.saving/htmlsaveoptions/get_exportroundtripinformation/_index.md
index 7726f7ecb55..eb5b3ef33c9 100644
--- a/english/cpp/aspose.words.saving/htmlsaveoptions/get_exportroundtripinformation/_index.md
+++ b/english/cpp/aspose.words.saving/htmlsaveoptions/get_exportroundtripinformation/_index.md
@@ -57,7 +57,7 @@ if (exportRoundtripInformation)
ASSERT_TRUE(outDocContents.Contains(u""));
ASSERT_TRUE(outDocContents.Contains(u"
"));
- ASSERT_TRUE(outDocContents.Contains(System::String(u"td colspan=\"2\" style=\"width:210.6pt; border-style:solid; border-width:0.75pt 6pt 0.75pt 0.75pt; ") + u"padding-right:2.4pt; padding-left:5.03pt; vertical-align:top; " + u"-aw-border-bottom:0.5pt single; -aw-border-left:0.5pt single; -aw-border-top:0.5pt single\">"));
+ ASSERT_TRUE(outDocContents.Contains(System::String(u"td colspan=\"2\" style=\"width:210.6pt; border-style:solid; border-width:0.75pt 6pt 0.75pt 0.75pt; ") + u"padding-right:2.4pt; padding-left:5.03pt; vertical-align:top; -aw-border-bottom:0.5pt single #000000; " + u"-aw-border-left:0.5pt single #000000; -aw-border-top:0.5pt single #000000\">"));
ASSERT_TRUE(outDocContents.Contains(u"
"));
diff --git a/english/cpp/aspose.words.saving/htmlsaveoptions/get_tablewidthoutputmode/_index.md b/english/cpp/aspose.words.saving/htmlsaveoptions/get_tablewidthoutputmode/_index.md
index 6e4fbdd326d..934d82d1f68 100644
--- a/english/cpp/aspose.words.saving/htmlsaveoptions/get_tablewidthoutputmode/_index.md
+++ b/english/cpp/aspose.words.saving/htmlsaveoptions/get_tablewidthoutputmode/_index.md
@@ -69,13 +69,13 @@ System::String outDocContents = System::IO::File::ReadAllText(get_ArtifactsDir()
if (allowNegativeIndent)
{
- ASSERT_TRUE(outDocContents.Contains(u""));
- ASSERT_TRUE(outDocContents.Contains(u""));
+ ASSERT_TRUE(outDocContents.Contains(u""));
+ ASSERT_TRUE(outDocContents.Contains(u""));
}
else
{
- ASSERT_TRUE(outDocContents.Contains(u""));
- ASSERT_TRUE(outDocContents.Contains(u""));
+ ASSERT_TRUE(outDocContents.Contains(u""));
+ ASSERT_TRUE(outDocContents.Contains(u""));
}
```
diff --git a/english/cpp/aspose.words.saving/markdownsaveoptions/_index.md b/english/cpp/aspose.words.saving/markdownsaveoptions/_index.md
index 8f0781da1df..68628de3b47 100644
--- a/english/cpp/aspose.words.saving/markdownsaveoptions/_index.md
+++ b/english/cpp/aspose.words.saving/markdownsaveoptions/_index.md
@@ -48,6 +48,7 @@ class MarkdownSaveOptions : public Aspose::Words::Saving::TxtSaveOptionsBase
| [get_ParagraphBreak](../txtsaveoptionsbase/get_paragraphbreak/)() const | Specifies the string to use as a paragraph break when exporting in text formats. |
| [get_PrettyFormat](../saveoptions/get_prettyformat/)() const | When **true**, pretty formats output where applicable. Default value is **false**. |
| [get_ProgressCallback](../saveoptions/get_progresscallback/)() const | Called during saving a document and accepts data about saving progress. |
+| [get_ResourceSavingCallback](./get_resourcesavingcallback/)() const | Allows to control how resources are saved when a document is exported to [Markdown](../../aspose.words/saveformat/) format. |
| [get_SaveFormat](./get_saveformat/)() override | Specifies the format in which the document will be saved if this save options object is used. Can only be [Markdown](../../aspose.words/saveformat/). |
| [get_TableContentAlignment](./get_tablecontentalignment/)() const | Gets or sets a value that specifies how to align contents in tables when exporting into the [Markdown](../../aspose.words/saveformat/) format. The default value is [Auto](../tablecontentalignment/). |
| [get_TempFolder](../saveoptions/get_tempfolder/)() const | Specifies the folder for temporary files used when saving to a DOC or DOCX file. By default this property is **null** and no temporary files are used. |
@@ -87,6 +88,7 @@ class MarkdownSaveOptions : public Aspose::Words::Saving::TxtSaveOptionsBase
| [set_ParagraphBreak](../txtsaveoptionsbase/set_paragraphbreak/)(const System::String\&) | Setter for [Aspose::Words::Saving::TxtSaveOptionsBase::get_ParagraphBreak](../txtsaveoptionsbase/get_paragraphbreak/). |
| [set_PrettyFormat](../saveoptions/set_prettyformat/)(bool) | Setter for [Aspose::Words::Saving::SaveOptions::get_PrettyFormat](../saveoptions/get_prettyformat/). |
| [set_ProgressCallback](../saveoptions/set_progresscallback/)(const System::SharedPtr\\&) | Setter for [Aspose::Words::Saving::SaveOptions::get_ProgressCallback](../saveoptions/get_progresscallback/). |
+| [set_ResourceSavingCallback](./set_resourcesavingcallback/)(const System::SharedPtr\\&) | Allows to control how resources are saved when a document is exported to [Markdown](../../aspose.words/saveformat/) format. |
| [set_SaveFormat](./set_saveformat/)(Aspose::Words::SaveFormat) override | Specifies the format in which the document will be saved if this save options object is used. Can only be [Markdown](../../aspose.words/saveformat/). |
| [set_TableContentAlignment](./set_tablecontentalignment/)(Aspose::Words::Saving::TableContentAlignment) | Setter for [Aspose::Words::Saving::MarkdownSaveOptions::get_TableContentAlignment](./get_tablecontentalignment/). |
| [set_TempFolder](../saveoptions/set_tempfolder/)(const System::String\&) | Setter for [Aspose::Words::Saving::SaveOptions::get_TempFolder](../saveoptions/get_tempfolder/). |
diff --git a/english/cpp/aspose.words.saving/markdownsaveoptions/get_resourcesavingcallback/_index.md b/english/cpp/aspose.words.saving/markdownsaveoptions/get_resourcesavingcallback/_index.md
new file mode 100644
index 00000000000..f63e80c20ea
--- /dev/null
+++ b/english/cpp/aspose.words.saving/markdownsaveoptions/get_resourcesavingcallback/_index.md
@@ -0,0 +1,24 @@
+---
+title: Aspose::Words::Saving::MarkdownSaveOptions::get_ResourceSavingCallback method
+linktitle: get_ResourceSavingCallback
+second_title: Aspose.Words for C++ API Reference
+description: 'Aspose::Words::Saving::MarkdownSaveOptions::get_ResourceSavingCallback method. Allows to control how resources are saved when a document is exported to Markdown format in C++.'
+type: docs
+weight: 6750
+url: /cpp/aspose.words.saving/markdownsaveoptions/get_resourcesavingcallback/
+---
+## MarkdownSaveOptions::get_ResourceSavingCallback method
+
+
+Allows to control how resources are saved when a document is exported to [Markdown](../../../aspose.words/saveformat/) format.
+
+```cpp
+const System::SharedPtr & Aspose::Words::Saving::MarkdownSaveOptions::get_ResourceSavingCallback() const
+```
+
+## See Also
+
+* Interface [IResourceSavingCallback](../../iresourcesavingcallback/)
+* Class [MarkdownSaveOptions](../)
+* Namespace [Aspose::Words::Saving](../../)
+* Library [Aspose.Words for C++](../../../)
diff --git a/english/cpp/aspose.words.saving/markdownsaveoptions/set_resourcesavingcallback/_index.md b/english/cpp/aspose.words.saving/markdownsaveoptions/set_resourcesavingcallback/_index.md
new file mode 100644
index 00000000000..59941f05c26
--- /dev/null
+++ b/english/cpp/aspose.words.saving/markdownsaveoptions/set_resourcesavingcallback/_index.md
@@ -0,0 +1,24 @@
+---
+title: Aspose::Words::Saving::MarkdownSaveOptions::set_ResourceSavingCallback method
+linktitle: set_ResourceSavingCallback
+second_title: Aspose.Words for C++ API Reference
+description: 'Aspose::Words::Saving::MarkdownSaveOptions::set_ResourceSavingCallback method. Allows to control how resources are saved when a document is exported to Markdown format in C++.'
+type: docs
+weight: 14750
+url: /cpp/aspose.words.saving/markdownsaveoptions/set_resourcesavingcallback/
+---
+## MarkdownSaveOptions::set_ResourceSavingCallback method
+
+
+Allows to control how resources are saved when a document is exported to [Markdown](../../../aspose.words/saveformat/) format.
+
+```cpp
+void Aspose::Words::Saving::MarkdownSaveOptions::set_ResourceSavingCallback(const System::SharedPtr &value)
+```
+
+## See Also
+
+* Interface [IResourceSavingCallback](../../iresourcesavingcallback/)
+* Class [MarkdownSaveOptions](../)
+* Namespace [Aspose::Words::Saving](../../)
+* Library [Aspose.Words for C++](../../../)
diff --git a/english/cpp/aspose.words.saving/pdfsaveoptions/_index.md b/english/cpp/aspose.words.saving/pdfsaveoptions/_index.md
index cffd143044a..4a59a09ee91 100644
--- a/english/cpp/aspose.words.saving/pdfsaveoptions/_index.md
+++ b/english/cpp/aspose.words.saving/pdfsaveoptions/_index.md
@@ -43,6 +43,7 @@ class PdfSaveOptions : public Aspose::Words::Saving::FixedPageSaveOptions
| [get_EmbedFullFonts](./get_embedfullfonts/)() const | Controls how fonts are embedded into the resulting PDF documents. |
| [get_EncryptionDetails](./get_encryptiondetails/)() const | Gets or sets the details for encrypting the output PDF document. |
| [get_ExportDocumentStructure](./get_exportdocumentstructure/)() const | Gets or sets a value determining whether or not to export document structure. |
+| [get_ExportFloatingShapesAsInlineTag](./get_exportfloatingshapesasinlinetag/)() const | Gets or sets a value determining whether floating shapes are exported as inline tags in the document structure. |
| [get_ExportGeneratorName](../saveoptions/get_exportgeneratorname/)() const | When **true**, causes the name and version of Aspose.Words to be embedded into produced files. Default value is **true**. |
| [get_ExportLanguageToSpanTag](./get_exportlanguagetospantag/)() const | Gets or sets a value determining whether or not to create a "Span" tag in the document structure to export the text language. |
| [get_ExportParagraphGraphicsToArtifact](./get_exportparagraphgraphicstoartifact/)() const | Gets or sets a value determining whether a paragraph graphic should be marked as an artifact. |
@@ -106,6 +107,7 @@ class PdfSaveOptions : public Aspose::Words::Saving::FixedPageSaveOptions
| [set_EmbedFullFonts](./set_embedfullfonts/)(bool) | Setter for [Aspose::Words::Saving::PdfSaveOptions::get_EmbedFullFonts](./get_embedfullfonts/). |
| [set_EncryptionDetails](./set_encryptiondetails/)(const System::SharedPtr\\&) | Setter for [Aspose::Words::Saving::PdfSaveOptions::get_EncryptionDetails](./get_encryptiondetails/). |
| [set_ExportDocumentStructure](./set_exportdocumentstructure/)(bool) | Setter for [Aspose::Words::Saving::PdfSaveOptions::get_ExportDocumentStructure](./get_exportdocumentstructure/). |
+| [set_ExportFloatingShapesAsInlineTag](./set_exportfloatingshapesasinlinetag/)(bool) | Setter for [Aspose::Words::Saving::PdfSaveOptions::get_ExportFloatingShapesAsInlineTag](./get_exportfloatingshapesasinlinetag/). |
| [set_ExportGeneratorName](../saveoptions/set_exportgeneratorname/)(bool) | Setter for [Aspose::Words::Saving::SaveOptions::get_ExportGeneratorName](../saveoptions/get_exportgeneratorname/). |
| [set_ExportLanguageToSpanTag](./set_exportlanguagetospantag/)(bool) | Setter for [Aspose::Words::Saving::PdfSaveOptions::get_ExportLanguageToSpanTag](./get_exportlanguagetospantag/). |
| [set_ExportParagraphGraphicsToArtifact](./set_exportparagraphgraphicstoartifact/)(bool) | Setter for [Aspose::Words::Saving::PdfSaveOptions::get_ExportParagraphGraphicsToArtifact](./get_exportparagraphgraphicstoartifact/). |
diff --git a/english/cpp/aspose.words.saving/pdfsaveoptions/get_exportfloatingshapesasinlinetag/_index.md b/english/cpp/aspose.words.saving/pdfsaveoptions/get_exportfloatingshapesasinlinetag/_index.md
new file mode 100644
index 00000000000..b41956b8bb6
--- /dev/null
+++ b/english/cpp/aspose.words.saving/pdfsaveoptions/get_exportfloatingshapesasinlinetag/_index.md
@@ -0,0 +1,31 @@
+---
+title: Aspose::Words::Saving::PdfSaveOptions::get_ExportFloatingShapesAsInlineTag method
+linktitle: get_ExportFloatingShapesAsInlineTag
+second_title: Aspose.Words for C++ API Reference
+description: 'Aspose::Words::Saving::PdfSaveOptions::get_ExportFloatingShapesAsInlineTag method. Gets or sets a value determining whether floating shapes are exported as inline tags in the document structure in C++.'
+type: docs
+weight: 16500
+url: /cpp/aspose.words.saving/pdfsaveoptions/get_exportfloatingshapesasinlinetag/
+---
+## PdfSaveOptions::get_ExportFloatingShapesAsInlineTag method
+
+
+Gets or sets a value determining whether floating shapes are exported as inline tags in the document structure.
+
+```cpp
+bool Aspose::Words::Saving::PdfSaveOptions::get_ExportFloatingShapesAsInlineTag() const
+```
+
+## Remarks
+
+
+Default value is **false** and floating shapes will be exported as block-level tags, placed after the paragraph in which they are anchored.
+
+When the value is **true** floating shapes will be exported as inline tags, placed within the paragraph where they are anchored.
+
+This value is ignored when [ExportDocumentStructure](../get_exportdocumentstructure/) is **false**.
+## See Also
+
+* Class [PdfSaveOptions](../)
+* Namespace [Aspose::Words::Saving](../../)
+* Library [Aspose.Words for C++](../../../)
diff --git a/english/cpp/aspose.words.saving/pdfsaveoptions/set_exportfloatingshapesasinlinetag/_index.md b/english/cpp/aspose.words.saving/pdfsaveoptions/set_exportfloatingshapesasinlinetag/_index.md
new file mode 100644
index 00000000000..02e2d046e7e
--- /dev/null
+++ b/english/cpp/aspose.words.saving/pdfsaveoptions/set_exportfloatingshapesasinlinetag/_index.md
@@ -0,0 +1,23 @@
+---
+title: Aspose::Words::Saving::PdfSaveOptions::set_ExportFloatingShapesAsInlineTag method
+linktitle: set_ExportFloatingShapesAsInlineTag
+second_title: Aspose.Words for C++ API Reference
+description: 'Aspose::Words::Saving::PdfSaveOptions::set_ExportFloatingShapesAsInlineTag method. Setter for Aspose::Words::Saving::PdfSaveOptions::get_ExportFloatingShapesAsInlineTag in C++.'
+type: docs
+weight: 49500
+url: /cpp/aspose.words.saving/pdfsaveoptions/set_exportfloatingshapesasinlinetag/
+---
+## PdfSaveOptions::set_ExportFloatingShapesAsInlineTag method
+
+
+Setter for [Aspose::Words::Saving::PdfSaveOptions::get_ExportFloatingShapesAsInlineTag](../get_exportfloatingshapesasinlinetag/).
+
+```cpp
+void Aspose::Words::Saving::PdfSaveOptions::set_ExportFloatingShapesAsInlineTag(bool value)
+```
+
+## See Also
+
+* Class [PdfSaveOptions](../)
+* Namespace [Aspose::Words::Saving](../../)
+* Library [Aspose.Words for C++](../../../)
diff --git a/english/cpp/aspose.words.saving/resourcesavingargs/_index.md b/english/cpp/aspose.words.saving/resourcesavingargs/_index.md
index be9d485f000..4aa9f2bec29 100644
--- a/english/cpp/aspose.words.saving/resourcesavingargs/_index.md
+++ b/english/cpp/aspose.words.saving/resourcesavingargs/_index.md
@@ -36,7 +36,7 @@ class ResourceSavingArgs : public System::Object
## Remarks
-By default, when Aspose.Words saves a document to fixed page HTML or SVG, it saves each resource into a separate file. Aspose.Words uses the document file name and a unique number to generate unique file name for each resource found in the document.
+By default, when Aspose.Words saves a document to fixed page HTML, SVG or Markdown, it saves each resource into a separate file. Aspose.Words uses the document file name and a unique number to generate unique file name for each resource found in the document.
[ResourceSavingArgs](./) allows to redefine how resource file names are generated or to completely circumvent saving of resources into files by providing your own stream objects.
diff --git a/english/cpp/aspose.words.saving/resourcesavingargs/get_resourcefilename/_index.md b/english/cpp/aspose.words.saving/resourcesavingargs/get_resourcefilename/_index.md
index 17aa36bf50c..0dc821b4efe 100644
--- a/english/cpp/aspose.words.saving/resourcesavingargs/get_resourcefilename/_index.md
+++ b/english/cpp/aspose.words.saving/resourcesavingargs/get_resourcefilename/_index.md
@@ -19,17 +19,17 @@ System::String Aspose::Words::Saving::ResourceSavingArgs::get_ResourceFileName()
## Remarks
-This property allows you to redefine how the resource file names are generated during export to fixed page HTML or SVG.
+This property allows you to redefine how the resource file names are generated during export to fixed page HTML, SVG or Markdown.
When the event is fired, this property contains the file name that was generated by Aspose.Words. You can change the value of this property to save the resource into a different file. Note that file names must be unique.
-Aspose.Words automatically generates a unique file name for every resource when exporting to fixed page HTML or SVG format. How the resource file name is generated depends on whether you save the document to a file or to a stream.
+Aspose.Words automatically generates a unique file name for every resource when exporting to fixed page HTML, SVG or Markdown format. How the resource file name is generated depends on whether you save the document to a file or to a stream.
When saving a document to a file, the generated resource file name looks like *%..*.
When saving a document to a stream, the generated resource file name looks like *Aspose.Words...*.
-[ResourceFileName](./) must contain only the file name without the path. Aspose.Words determines the path for saving and the value of the **src** attribute for writing to fixed page HTML or SVG using the document file name, the [ResourcesFolder](../../htmlfixedsaveoptions/get_resourcesfolder/) or [ResourcesFolder](../../svgsaveoptions/get_resourcesfolder/) and [ResourcesFolderAlias](../../htmlfixedsaveoptions/get_resourcesfolderalias/) or [ResourcesFolderAlias](../../svgsaveoptions/get_resourcesfolderalias/) properties.
+[ResourceFileName](./) must contain only the file name without the path. Aspose.Words determines the path for saving and the value of the **src** attribute for writing to fixed page HTML, SVG or Markdown using the document file name, the [ResourcesFolder](../../htmlfixedsaveoptions/get_resourcesfolder/) or [ResourcesFolder](../../svgsaveoptions/get_resourcesfolder/) and [ResourcesFolderAlias](../../htmlfixedsaveoptions/get_resourcesfolderalias/) or [ResourcesFolderAlias](../../svgsaveoptions/get_resourcesfolderalias/) or [ImagesFolder](../../markdownsaveoptions/get_imagesfolder/) or [ImagesFolderAlias](../../markdownsaveoptions/get_imagesfolderalias/) properties.
## See Also
diff --git a/english/cpp/aspose.words.saving/resourcesavingargs/get_resourcefileuri/_index.md b/english/cpp/aspose.words.saving/resourcesavingargs/get_resourcefileuri/_index.md
index bed4c6d37dc..0147f8e7f77 100644
--- a/english/cpp/aspose.words.saving/resourcesavingargs/get_resourcefileuri/_index.md
+++ b/english/cpp/aspose.words.saving/resourcesavingargs/get_resourcefileuri/_index.md
@@ -19,9 +19,9 @@ System::String Aspose::Words::Saving::ResourceSavingArgs::get_ResourceFileUri()
## Remarks
-This property allows you to change URIs of resource files exported to fixed page HTML or SVG documents.
+This property allows you to change URIs of resource files exported to fixed page HTML, SVG or Markdown documents.
-Aspose.Words automatically generates an URI for every resource file during export to fixed page HTML or SVG format. The generated URIs reference resource files saved by Aspose.Words. However, the URIs can be incorrect if resource files are to be moved to other location or if resource files are saved to streams. This property allows to correct URIs in these cases.
+Aspose.Words automatically generates an URI for every resource file during export to fixed page HTML, SVG or Markdown format. The generated URIs reference resource files saved by Aspose.Words. However, the URIs can be incorrect if resource files are to be moved to other location or if resource files are saved to streams. This property allows to correct URIs in these cases.
When the event is fired, this property contains the URI that was generated by Aspose.Words. You can change the value of this property to provide a custom URI for the resource file.
## See Also
diff --git a/english/cpp/aspose.words.saving/txtofficemathexportmode/_index.md b/english/cpp/aspose.words.saving/txtofficemathexportmode/_index.md
new file mode 100644
index 00000000000..60384c9ca5d
--- /dev/null
+++ b/english/cpp/aspose.words.saving/txtofficemathexportmode/_index.md
@@ -0,0 +1,44 @@
+---
+title: Aspose::Words::Saving::TxtOfficeMathExportMode enum
+linktitle: TxtOfficeMathExportMode
+second_title: Aspose.Words for C++ API Reference
+description: 'Aspose::Words::Saving::TxtOfficeMathExportMode enum. Specifies how Aspose.Words exports OfficeMath to Text in C++.'
+type: docs
+weight: 86250
+url: /cpp/aspose.words.saving/txtofficemathexportmode/
+---
+## TxtOfficeMathExportMode enum
+
+
+Specifies how Aspose.Words exports OfficeMath to [Text](../../aspose.words/saveformat/).
+
+```cpp
+enum class TxtOfficeMathExportMode
+```
+
+### Values
+
+| Name | Value | Description |
+| --- | --- | --- |
+| Text | 0 | Export OfficeMath as plain text. |
+| Latex | 3 | Export OfficeMath as LaTeX. |
+
+
+## Examples
+
+
+
+Shows how to export OfficeMath object as Latex in TXT.
+```cpp
+auto doc = System::MakeObject(get_MyDir() + u"Office math.docx");
+
+auto saveOptions = System::MakeObject();
+saveOptions->set_OfficeMathExportMode(Aspose::Words::Saving::TxtOfficeMathExportMode::Latex);
+
+doc->Save(get_ArtifactsDir() + u"TxtSaveOptions.ExportOfficeMathAsLatexToText.txt", saveOptions);
+```
+
+## See Also
+
+* Namespace [Aspose::Words::Saving](../)
+* Library [Aspose.Words for C++](../../)
diff --git a/english/cpp/aspose.words.saving/txtsaveoptions/_index.md b/english/cpp/aspose.words.saving/txtsaveoptions/_index.md
index 9d6a1d09a06..02cb5b36797 100644
--- a/english/cpp/aspose.words.saving/txtsaveoptions/_index.md
+++ b/english/cpp/aspose.words.saving/txtsaveoptions/_index.md
@@ -34,9 +34,10 @@ class TxtSaveOptions : public Aspose::Words::Saving::TxtSaveOptionsBase
| [get_ExportHeadersFootersMode](../txtsaveoptionsbase/get_exportheadersfootersmode/)() const | Specifies the way headers and footers are exported to the text formats. Default value is [PrimaryOnly](../txtexportheadersfootersmode/). |
| [get_ForcePageBreaks](../txtsaveoptionsbase/get_forcepagebreaks/)() const | Allows to specify whether the page breaks should be preserved during export. The default value is **false**. |
| [get_ImlRenderingMode](../saveoptions/get_imlrenderingmode/)() const | Gets or sets a value determining how ink (InkML) objects are rendered. |
-| [get_ListIndentation](./get_listindentation/)() const | Gets a [TxtListIndentation](../txtlistindentation/) object that specifies how many and which character to use for indentation of list levels. By default it is zero count of character '\0', that means no indentation. |
+| [get_ListIndentation](./get_listindentation/)() const | Gets a [TxtListIndentation](../txtlistindentation/) object that specifies how many and which character to use for indentation of list levels. By default, it is zero count of character '\0', that means no indentation. |
| [get_MaxCharactersPerLine](./get_maxcharactersperline/)() const | Gets or sets an integer value that specifies the maximum number of characters per one line. The default value is 0, that means no limit. |
| [get_MemoryOptimization](../saveoptions/get_memoryoptimization/)() const | Gets value determining if memory optimization should be performed before saving the document. Default value for this property is **false**. |
+| [get_OfficeMathExportMode](./get_officemathexportmode/)() const | Specifies how OfficeMath will be written to the output file. Default value is [Text](../txtofficemathexportmode/). |
| [get_ParagraphBreak](../txtsaveoptionsbase/get_paragraphbreak/)() const | Specifies the string to use as a paragraph break when exporting in text formats. |
| [get_PreserveTableLayout](./get_preservetablelayout/)() const | Specifies whether the program should attempt to preserve layout of tables when saving in the plain text format. The default value is **false**. |
| [get_PrettyFormat](../saveoptions/get_prettyformat/)() const | When **true**, pretty formats output where applicable. Default value is **false**. |
@@ -67,6 +68,7 @@ class TxtSaveOptions : public Aspose::Words::Saving::TxtSaveOptionsBase
| [set_ImlRenderingMode](../saveoptions/set_imlrenderingmode/)(Aspose::Words::Saving::ImlRenderingMode) | Setter for [Aspose::Words::Saving::SaveOptions::get_ImlRenderingMode](../saveoptions/get_imlrenderingmode/). |
| [set_MaxCharactersPerLine](./set_maxcharactersperline/)(int32_t) | Setter for [Aspose::Words::Saving::TxtSaveOptions::get_MaxCharactersPerLine](./get_maxcharactersperline/). |
| [set_MemoryOptimization](../saveoptions/set_memoryoptimization/)(bool) | Sets value determining if memory optimization should be performed before saving the document. Default value for this property is **false**. |
+| [set_OfficeMathExportMode](./set_officemathexportmode/)(Aspose::Words::Saving::TxtOfficeMathExportMode) | Setter for [Aspose::Words::Saving::TxtSaveOptions::get_OfficeMathExportMode](./get_officemathexportmode/). |
| [set_ParagraphBreak](../txtsaveoptionsbase/set_paragraphbreak/)(const System::String\&) | Setter for [Aspose::Words::Saving::TxtSaveOptionsBase::get_ParagraphBreak](../txtsaveoptionsbase/get_paragraphbreak/). |
| [set_PreserveTableLayout](./set_preservetablelayout/)(bool) | Setter for [Aspose::Words::Saving::TxtSaveOptions::get_PreserveTableLayout](./get_preservetablelayout/). |
| [set_PrettyFormat](../saveoptions/set_prettyformat/)(bool) | Setter for [Aspose::Words::Saving::SaveOptions::get_PrettyFormat](../saveoptions/get_prettyformat/). |
diff --git a/english/cpp/aspose.words.saving/txtsaveoptions/get_listindentation/_index.md b/english/cpp/aspose.words.saving/txtsaveoptions/get_listindentation/_index.md
index 48cae122894..cd658d30c56 100644
--- a/english/cpp/aspose.words.saving/txtsaveoptions/get_listindentation/_index.md
+++ b/english/cpp/aspose.words.saving/txtsaveoptions/get_listindentation/_index.md
@@ -2,7 +2,7 @@
title: Aspose::Words::Saving::TxtSaveOptions::get_ListIndentation method
linktitle: get_ListIndentation
second_title: Aspose.Words for C++ API Reference
-description: 'Aspose::Words::Saving::TxtSaveOptions::get_ListIndentation method. Gets a TxtListIndentation object that specifies how many and which character to use for indentation of list levels. By default it is zero count of character ''\0'', that means no indentation in C++.'
+description: 'Aspose::Words::Saving::TxtSaveOptions::get_ListIndentation method. Gets a TxtListIndentation object that specifies how many and which character to use for indentation of list levels. By default, it is zero count of character ''\0'', that means no indentation in C++.'
type: docs
weight: 4000
url: /cpp/aspose.words.saving/txtsaveoptions/get_listindentation/
@@ -10,7 +10,7 @@ url: /cpp/aspose.words.saving/txtsaveoptions/get_listindentation/
## TxtSaveOptions::get_ListIndentation method
-Gets a [TxtListIndentation](../../txtlistindentation/) object that specifies how many and which character to use for indentation of list levels. By default it is zero count of character '\0', that means no indentation.
+Gets a [TxtListIndentation](../../txtlistindentation/) object that specifies how many and which character to use for indentation of list levels. By default, it is zero count of character '\0', that means no indentation.
```cpp
System::SharedPtr Aspose::Words::Saving::TxtSaveOptions::get_ListIndentation() const
diff --git a/english/cpp/aspose.words.saving/txtsaveoptions/get_officemathexportmode/_index.md b/english/cpp/aspose.words.saving/txtsaveoptions/get_officemathexportmode/_index.md
new file mode 100644
index 00000000000..c47add7c2bb
--- /dev/null
+++ b/english/cpp/aspose.words.saving/txtsaveoptions/get_officemathexportmode/_index.md
@@ -0,0 +1,39 @@
+---
+title: Aspose::Words::Saving::TxtSaveOptions::get_OfficeMathExportMode method
+linktitle: get_OfficeMathExportMode
+second_title: Aspose.Words for C++ API Reference
+description: 'Aspose::Words::Saving::TxtSaveOptions::get_OfficeMathExportMode method. Specifies how OfficeMath will be written to the output file. Default value is Text in C++.'
+type: docs
+weight: 5500
+url: /cpp/aspose.words.saving/txtsaveoptions/get_officemathexportmode/
+---
+## TxtSaveOptions::get_OfficeMathExportMode method
+
+
+Specifies how OfficeMath will be written to the output file. Default value is [Text](../../txtofficemathexportmode/).
+
+```cpp
+Aspose::Words::Saving::TxtOfficeMathExportMode Aspose::Words::Saving::TxtSaveOptions::get_OfficeMathExportMode() const
+```
+
+
+## Examples
+
+
+
+Shows how to export OfficeMath object as Latex in TXT.
+```cpp
+auto doc = System::MakeObject(get_MyDir() + u"Office math.docx");
+
+auto saveOptions = System::MakeObject();
+saveOptions->set_OfficeMathExportMode(Aspose::Words::Saving::TxtOfficeMathExportMode::Latex);
+
+doc->Save(get_ArtifactsDir() + u"TxtSaveOptions.ExportOfficeMathAsLatexToText.txt", saveOptions);
+```
+
+## See Also
+
+* Enum [TxtOfficeMathExportMode](../../txtofficemathexportmode/)
+* Class [TxtSaveOptions](../)
+* Namespace [Aspose::Words::Saving](../../)
+* Library [Aspose.Words for C++](../../../)
diff --git a/english/cpp/aspose.words.saving/txtsaveoptions/set_officemathexportmode/_index.md b/english/cpp/aspose.words.saving/txtsaveoptions/set_officemathexportmode/_index.md
new file mode 100644
index 00000000000..c854187e83b
--- /dev/null
+++ b/english/cpp/aspose.words.saving/txtsaveoptions/set_officemathexportmode/_index.md
@@ -0,0 +1,24 @@
+---
+title: Aspose::Words::Saving::TxtSaveOptions::set_OfficeMathExportMode method
+linktitle: set_OfficeMathExportMode
+second_title: Aspose.Words for C++ API Reference
+description: 'Aspose::Words::Saving::TxtSaveOptions::set_OfficeMathExportMode method. Setter for Aspose::Words::Saving::TxtSaveOptions::get_OfficeMathExportMode in C++.'
+type: docs
+weight: 12500
+url: /cpp/aspose.words.saving/txtsaveoptions/set_officemathexportmode/
+---
+## TxtSaveOptions::set_OfficeMathExportMode method
+
+
+Setter for [Aspose::Words::Saving::TxtSaveOptions::get_OfficeMathExportMode](../get_officemathexportmode/).
+
+```cpp
+void Aspose::Words::Saving::TxtSaveOptions::set_OfficeMathExportMode(Aspose::Words::Saving::TxtOfficeMathExportMode value)
+```
+
+## See Also
+
+* Enum [TxtOfficeMathExportMode](../../txtofficemathexportmode/)
+* Class [TxtSaveOptions](../)
+* Namespace [Aspose::Words::Saving](../../)
+* Library [Aspose.Words for C++](../../../)
diff --git a/english/nodejs-net/Aspose.Words.AI/aimodel/_index.md b/english/nodejs-net/Aspose.Words.AI/aimodel/_index.md
index 7c54147bfa5..acf74588f4d 100644
--- a/english/nodejs-net/Aspose.Words.AI/aimodel/_index.md
+++ b/english/nodejs-net/Aspose.Words.AI/aimodel/_index.md
@@ -14,13 +14,18 @@ url: /nodejs-net/aspose.words.ai/aimodel/
Represents information about a Generative Language Model.
+### Properties
+
+| Name | Description |
+| --- | --- |
+| [timeout](./timeout/) | Gets or sets the number of milliseconds to wait before the request to AI model times out. The default value is 100,000 milliseconds (100 seconds). |
+| [url](./url/) | Gets or sets a URL of the model. The default value is specific for the model. |
+
### Methods
| Name | Description |
| --- | --- |
-|[ asAnthropicAiModel()](./asAnthropicAiModel/#default) | Cast AiModel to [AnthropicAiModel](../anthropicaimodel/). |
-|[ asGoogleAiModel()](./asGoogleAiModel/#default) | Cast AiModel to [GoogleAiModel](../googleaimodel/). |
-|[ asOpenAiModel()](./asOpenAiModel/#default) | Cast AiModel to [OpenAiModel](../openaimodel/). |
+|[ asAnthropicAiModel()](./asAnthropicAiModel/#default) | |
|[ checkGrammar(sourceDocument, options)](./checkGrammar/#document_checkgrammaroptions) | Checks grammar of the provided document. This operation leverages the connected AI model for checking grammar of document. |
|[ create(modelType)](./create/#aimodeltype) | Creates a new instance of [AiModel](./) class. |
|[ createClaude35Haiku()](./createClaude35Haiku/#default) | Creates a new instance of Claude 3.5 Haiku generative model type. |
diff --git a/english/nodejs-net/Aspose.Words.AI/aimodel/asAnthropicAiModel/_index.md b/english/nodejs-net/Aspose.Words.AI/aimodel/asAnthropicAiModel/_index.md
index 512dd5f49b6..49d5512f358 100644
--- a/english/nodejs-net/Aspose.Words.AI/aimodel/asAnthropicAiModel/_index.md
+++ b/english/nodejs-net/Aspose.Words.AI/aimodel/asAnthropicAiModel/_index.md
@@ -3,18 +3,14 @@ title: AiModel.asAnthropicAiModel method
linktitle: asAnthropicAiModel method
articleTitle: asAnthropicAiModel method
second_title: Aspose.Words for Node.js
-description: "AiModel.asAnthropicAiModel method. Cast AiModel to [AnthropicAiModel](../../anthropicaimodel/)."
+description: "AiModel.asAnthropicAiModel method. "
type: docs
-weight: 10
+weight: 30
url: /nodejs-net/aspose.words.ai/aimodel/asAnthropicAiModel/
---
## asAnthropicAiModel() {#default}
-Cast AiModel to [AnthropicAiModel](../../anthropicaimodel/).
-
-
-
```js
asAnthropicAiModel()
```
diff --git a/english/nodejs-net/Aspose.Words.AI/aimodel/asGoogleAiModel/_index.md b/english/nodejs-net/Aspose.Words.AI/aimodel/asGoogleAiModel/_index.md
deleted file mode 100644
index bb0368669a8..00000000000
--- a/english/nodejs-net/Aspose.Words.AI/aimodel/asGoogleAiModel/_index.md
+++ /dev/null
@@ -1,26 +0,0 @@
----
-title: AiModel.asGoogleAiModel method
-linktitle: asGoogleAiModel method
-articleTitle: asGoogleAiModel method
-second_title: Aspose.Words for Node.js
-description: "AiModel.asGoogleAiModel method. Cast AiModel to [GoogleAiModel](../../googleaimodel/)."
-type: docs
-weight: 20
-url: /nodejs-net/aspose.words.ai/aimodel/asGoogleAiModel/
----
-
-## asGoogleAiModel() {#default}
-
-Cast AiModel to [GoogleAiModel](../../googleaimodel/).
-
-
-
-```js
-asGoogleAiModel()
-```
-
-### See Also
-
-* module [Aspose.Words.AI](../../)
-* class [AiModel](../)
-
diff --git a/english/nodejs-net/Aspose.Words.AI/aimodel/asOpenAiModel/_index.md b/english/nodejs-net/Aspose.Words.AI/aimodel/asOpenAiModel/_index.md
deleted file mode 100644
index b70d4cba135..00000000000
--- a/english/nodejs-net/Aspose.Words.AI/aimodel/asOpenAiModel/_index.md
+++ /dev/null
@@ -1,26 +0,0 @@
----
-title: AiModel.asOpenAiModel method
-linktitle: asOpenAiModel method
-articleTitle: asOpenAiModel method
-second_title: Aspose.Words for Node.js
-description: "AiModel.asOpenAiModel method. Cast AiModel to [OpenAiModel](../../openaimodel/)."
-type: docs
-weight: 30
-url: /nodejs-net/aspose.words.ai/aimodel/asOpenAiModel/
----
-
-## asOpenAiModel() {#default}
-
-Cast AiModel to [OpenAiModel](../../openaimodel/).
-
-
-
-```js
-asOpenAiModel()
-```
-
-### See Also
-
-* module [Aspose.Words.AI](../../)
-* class [AiModel](../)
-
diff --git a/english/nodejs-net/Aspose.Words.AI/aimodel/timeout/_index.md b/english/nodejs-net/Aspose.Words.AI/aimodel/timeout/_index.md
new file mode 100644
index 00000000000..49c7b65a14d
--- /dev/null
+++ b/english/nodejs-net/Aspose.Words.AI/aimodel/timeout/_index.md
@@ -0,0 +1,26 @@
+---
+title: AiModel.timeout property
+linktitle: timeout property
+articleTitle: timeout property
+second_title: Aspose.Words for Node.js
+description: "AiModel.timeout property. Gets or sets the number of milliseconds to wait before the request to AI model times out"
+type: docs
+weight: 10
+url: /nodejs-net/aspose.words.ai/aimodel/timeout/
+---
+
+## AiModel.timeout property
+
+Gets or sets the number of milliseconds to wait before the request to AI model times out.
+The default value is 100,000 milliseconds (100 seconds).
+
+
+```js
+get timeout(): number
+```
+
+### See Also
+
+* module [Aspose.Words.AI](../../)
+* class [AiModel](../)
+
diff --git a/english/nodejs-net/Aspose.Words.AI/aimodel/url/_index.md b/english/nodejs-net/Aspose.Words.AI/aimodel/url/_index.md
new file mode 100644
index 00000000000..156e70196b1
--- /dev/null
+++ b/english/nodejs-net/Aspose.Words.AI/aimodel/url/_index.md
@@ -0,0 +1,26 @@
+---
+title: AiModel.url property
+linktitle: url property
+articleTitle: url property
+second_title: Aspose.Words for Node.js
+description: "AiModel.url property. Gets or sets a URL of the model"
+type: docs
+weight: 20
+url: /nodejs-net/aspose.words.ai/aimodel/url/
+---
+
+## AiModel.url property
+
+Gets or sets a URL of the model.
+The default value is specific for the model.
+
+
+```js
+get url(): string
+```
+
+### See Also
+
+* module [Aspose.Words.AI](../../)
+* class [AiModel](../)
+
diff --git a/english/nodejs-net/Aspose.Words.AI/anthropicaimodel/_index.md b/english/nodejs-net/Aspose.Words.AI/anthropicaimodel/_index.md
index eed5b59de01..84059686030 100644
--- a/english/nodejs-net/Aspose.Words.AI/anthropicaimodel/_index.md
+++ b/english/nodejs-net/Aspose.Words.AI/anthropicaimodel/_index.md
@@ -16,13 +16,18 @@ An abstract class representing the integration with Anthropic’s AI models with
**Inheritance:** [AnthropicAiModel](./) → [AiModel](../aimodel/)
+### Properties
+
+| Name | Description |
+| --- | --- |
+| [timeout](../aimodel/timeout/) | Gets or sets the number of milliseconds to wait before the request to AI model times out. The default value is 100,000 milliseconds (100 seconds).
(Inherited from [AiModel](../aimodel/)) |
+| [url](./url/) | Gets or sets a URL of the model. The default value is "https://api.anthropic.com/". |
+
### Methods
| Name | Description |
| --- | --- |
-|[ asAnthropicAiModel()](../aimodel/asAnthropicAiModel/#default) | Cast AiModel to [AnthropicAiModel](./).
(Inherited from [AiModel](../aimodel/)) |
-|[ asGoogleAiModel()](../aimodel/asGoogleAiModel/#default) | Cast AiModel to [GoogleAiModel](../googleaimodel/).
(Inherited from [AiModel](../aimodel/)) |
-|[ asOpenAiModel()](../aimodel/asOpenAiModel/#default) | Cast AiModel to [OpenAiModel](../openaimodel/).
(Inherited from [AiModel](../aimodel/)) |
+|[ asAnthropicAiModel()](../aimodel/asAnthropicAiModel/#default) |
(Inherited from [AiModel](../aimodel/)) |
|[ checkGrammar(sourceDocument, options)](../aimodel/checkGrammar/#document_checkgrammaroptions) | Checks grammar of the provided document. This operation leverages the connected AI model for checking grammar of document.
(Inherited from [AiModel](../aimodel/)) |
|[ create(modelType)](../aimodel/create/#aimodeltype) | Creates a new instance of [AiModel](../aimodel/) class.
(Inherited from [AiModel](../aimodel/)) |
|[ createClaude35Haiku()](../aimodel/createClaude35Haiku/#default) | Creates a new instance of Claude 3.5 Haiku generative model type.
(Inherited from [AiModel](../aimodel/)) |
diff --git a/english/nodejs-net/Aspose.Words.AI/anthropicaimodel/summarize/_index.md b/english/nodejs-net/Aspose.Words.AI/anthropicaimodel/summarize/_index.md
index 90670302840..a311e58f66b 100644
--- a/english/nodejs-net/Aspose.Words.AI/anthropicaimodel/summarize/_index.md
+++ b/english/nodejs-net/Aspose.Words.AI/anthropicaimodel/summarize/_index.md
@@ -5,7 +5,7 @@ articleTitle: summarize method
second_title: Aspose.Words for Node.js
description: "Aspose.Words.AI.AnthropicAiModel.summarize method"
type: docs
-weight: 10
+weight: 20
url: /nodejs-net/aspose.words.ai/anthropicaimodel/summarize/
---
diff --git a/english/nodejs-net/Aspose.Words.AI/anthropicaimodel/translate/_index.md b/english/nodejs-net/Aspose.Words.AI/anthropicaimodel/translate/_index.md
index b165821da78..4533742411b 100644
--- a/english/nodejs-net/Aspose.Words.AI/anthropicaimodel/translate/_index.md
+++ b/english/nodejs-net/Aspose.Words.AI/anthropicaimodel/translate/_index.md
@@ -5,7 +5,7 @@ articleTitle: translate method
second_title: Aspose.Words for Node.js
description: "AnthropicAiModel.translate method. Translates the provided document into the specified target language"
type: docs
-weight: 20
+weight: 30
url: /nodejs-net/aspose.words.ai/anthropicaimodel/translate/
---
diff --git a/english/nodejs-net/Aspose.Words.AI/anthropicaimodel/url/_index.md b/english/nodejs-net/Aspose.Words.AI/anthropicaimodel/url/_index.md
new file mode 100644
index 00000000000..bcef2f73d2a
--- /dev/null
+++ b/english/nodejs-net/Aspose.Words.AI/anthropicaimodel/url/_index.md
@@ -0,0 +1,26 @@
+---
+title: AnthropicAiModel.url property
+linktitle: url property
+articleTitle: url property
+second_title: Aspose.Words for Node.js
+description: "AnthropicAiModel.url property. Gets or sets a URL of the model"
+type: docs
+weight: 10
+url: /nodejs-net/aspose.words.ai/anthropicaimodel/url/
+---
+
+## AnthropicAiModel.url property
+
+Gets or sets a URL of the model.
+The default value is "https://api.anthropic.com/".
+
+
+```js
+get url(): string
+```
+
+### See Also
+
+* module [Aspose.Words.AI](../../)
+* class [AnthropicAiModel](../)
+
diff --git a/english/nodejs-net/Aspose.Words.AI/googleaimodel/_index.md b/english/nodejs-net/Aspose.Words.AI/googleaimodel/_index.md
index 0599ecfd073..8f4a611cdb5 100644
--- a/english/nodejs-net/Aspose.Words.AI/googleaimodel/_index.md
+++ b/english/nodejs-net/Aspose.Words.AI/googleaimodel/_index.md
@@ -16,13 +16,18 @@ An abstract class representing the integration with Google’s AI models within
**Inheritance:** [GoogleAiModel](./) → [AiModel](../aimodel/)
+### Properties
+
+| Name | Description |
+| --- | --- |
+| [timeout](../aimodel/timeout/) | Gets or sets the number of milliseconds to wait before the request to AI model times out. The default value is 100,000 milliseconds (100 seconds).
(Inherited from [AiModel](../aimodel/)) |
+| [url](./url/) | Gets or sets a URL of the model. The default value is "https://generativelanguage.googleapis.com/v1beta/models/". |
+
### Methods
| Name | Description |
| --- | --- |
-|[ asAnthropicAiModel()](../aimodel/asAnthropicAiModel/#default) | Cast AiModel to [AnthropicAiModel](../anthropicaimodel/).
(Inherited from [AiModel](../aimodel/)) |
-|[ asGoogleAiModel()](../aimodel/asGoogleAiModel/#default) | Cast AiModel to [GoogleAiModel](./).
(Inherited from [AiModel](../aimodel/)) |
-|[ asOpenAiModel()](../aimodel/asOpenAiModel/#default) | Cast AiModel to [OpenAiModel](../openaimodel/).
(Inherited from [AiModel](../aimodel/)) |
+|[ asAnthropicAiModel()](../aimodel/asAnthropicAiModel/#default) |
(Inherited from [AiModel](../aimodel/)) |
|[ checkGrammar(sourceDocument, options)](../aimodel/checkGrammar/#document_checkgrammaroptions) | Checks grammar of the provided document. This operation leverages the connected AI model for checking grammar of document.
(Inherited from [AiModel](../aimodel/)) |
|[ create(modelType)](../aimodel/create/#aimodeltype) | Creates a new instance of [AiModel](../aimodel/) class.
(Inherited from [AiModel](../aimodel/)) |
|[ createClaude35Haiku()](../aimodel/createClaude35Haiku/#default) | Creates a new instance of Claude 3.5 Haiku generative model type.
(Inherited from [AiModel](../aimodel/)) |
diff --git a/english/nodejs-net/Aspose.Words.AI/googleaimodel/summarize/_index.md b/english/nodejs-net/Aspose.Words.AI/googleaimodel/summarize/_index.md
index 1b382e17aac..e29e2ba47dc 100644
--- a/english/nodejs-net/Aspose.Words.AI/googleaimodel/summarize/_index.md
+++ b/english/nodejs-net/Aspose.Words.AI/googleaimodel/summarize/_index.md
@@ -5,7 +5,7 @@ articleTitle: summarize method
second_title: Aspose.Words for Node.js
description: "Aspose.Words.AI.GoogleAiModel.summarize method"
type: docs
-weight: 10
+weight: 20
url: /nodejs-net/aspose.words.ai/googleaimodel/summarize/
---
diff --git a/english/nodejs-net/Aspose.Words.AI/googleaimodel/translate/_index.md b/english/nodejs-net/Aspose.Words.AI/googleaimodel/translate/_index.md
index 91f49df59c6..159af1419b5 100644
--- a/english/nodejs-net/Aspose.Words.AI/googleaimodel/translate/_index.md
+++ b/english/nodejs-net/Aspose.Words.AI/googleaimodel/translate/_index.md
@@ -5,7 +5,7 @@ articleTitle: translate method
second_title: Aspose.Words for Node.js
description: "GoogleAiModel.translate method. Translates a specified document."
type: docs
-weight: 20
+weight: 30
url: /nodejs-net/aspose.words.ai/googleaimodel/translate/
---
diff --git a/english/nodejs-net/Aspose.Words.AI/googleaimodel/url/_index.md b/english/nodejs-net/Aspose.Words.AI/googleaimodel/url/_index.md
new file mode 100644
index 00000000000..083e2a66e75
--- /dev/null
+++ b/english/nodejs-net/Aspose.Words.AI/googleaimodel/url/_index.md
@@ -0,0 +1,26 @@
+---
+title: GoogleAiModel.url property
+linktitle: url property
+articleTitle: url property
+second_title: Aspose.Words for Node.js
+description: "GoogleAiModel.url property. Gets or sets a URL of the model"
+type: docs
+weight: 10
+url: /nodejs-net/aspose.words.ai/googleaimodel/url/
+---
+
+## GoogleAiModel.url property
+
+Gets or sets a URL of the model.
+The default value is "https://generativelanguage.googleapis.com/v1beta/models/".
+
+
+```js
+get url(): string
+```
+
+### See Also
+
+* module [Aspose.Words.AI](../../)
+* class [GoogleAiModel](../)
+
diff --git a/english/nodejs-net/Aspose.Words.AI/openaimodel/_index.md b/english/nodejs-net/Aspose.Words.AI/openaimodel/_index.md
index d691b9e3349..80160bb081f 100644
--- a/english/nodejs-net/Aspose.Words.AI/openaimodel/_index.md
+++ b/english/nodejs-net/Aspose.Words.AI/openaimodel/_index.md
@@ -16,13 +16,18 @@ An abstract class representing the integration with OpenAI's large language mode
**Inheritance:** [OpenAiModel](./) → [AiModel](../aimodel/)
+### Properties
+
+| Name | Description |
+| --- | --- |
+| [timeout](../aimodel/timeout/) | Gets or sets the number of milliseconds to wait before the request to AI model times out. The default value is 100,000 milliseconds (100 seconds).
(Inherited from [AiModel](../aimodel/)) |
+| [url](./url/) | Gets or sets a URL of the model. The default value is "https://api.openai.com/". |
+
### Methods
| Name | Description |
| --- | --- |
-|[ asAnthropicAiModel()](../aimodel/asAnthropicAiModel/#default) | Cast AiModel to [AnthropicAiModel](../anthropicaimodel/).
(Inherited from [AiModel](../aimodel/)) |
-|[ asGoogleAiModel()](../aimodel/asGoogleAiModel/#default) | Cast AiModel to [GoogleAiModel](../googleaimodel/).
(Inherited from [AiModel](../aimodel/)) |
-|[ asOpenAiModel()](../aimodel/asOpenAiModel/#default) | Cast AiModel to [OpenAiModel](./).
(Inherited from [AiModel](../aimodel/)) |
+|[ asAnthropicAiModel()](../aimodel/asAnthropicAiModel/#default) |
(Inherited from [AiModel](../aimodel/)) |
|[ checkGrammar(sourceDocument, options)](../aimodel/checkGrammar/#document_checkgrammaroptions) | Checks grammar of the provided document. This operation leverages the connected AI model for checking grammar of document.
(Inherited from [AiModel](../aimodel/)) |
|[ create(modelType)](../aimodel/create/#aimodeltype) | Creates a new instance of [AiModel](../aimodel/) class.
(Inherited from [AiModel](../aimodel/)) |
|[ createClaude35Haiku()](../aimodel/createClaude35Haiku/#default) | Creates a new instance of Claude 3.5 Haiku generative model type.
(Inherited from [AiModel](../aimodel/)) |
diff --git a/english/nodejs-net/Aspose.Words.AI/openaimodel/setOrganization/_index.md b/english/nodejs-net/Aspose.Words.AI/openaimodel/setOrganization/_index.md
index 723c30907db..752b7fc38b3 100644
--- a/english/nodejs-net/Aspose.Words.AI/openaimodel/setOrganization/_index.md
+++ b/english/nodejs-net/Aspose.Words.AI/openaimodel/setOrganization/_index.md
@@ -5,7 +5,7 @@ articleTitle: setOrganization method
second_title: Aspose.Words for Node.js
description: "OpenAiModel.setOrganization method. Sets a specified Organization to the model."
type: docs
-weight: 10
+weight: 20
url: /nodejs-net/aspose.words.ai/openaimodel/setOrganization/
---
diff --git a/english/nodejs-net/Aspose.Words.AI/openaimodel/setProject/_index.md b/english/nodejs-net/Aspose.Words.AI/openaimodel/setProject/_index.md
index 72087956c22..0ac8fda9cf9 100644
--- a/english/nodejs-net/Aspose.Words.AI/openaimodel/setProject/_index.md
+++ b/english/nodejs-net/Aspose.Words.AI/openaimodel/setProject/_index.md
@@ -5,7 +5,7 @@ articleTitle: setProject method
second_title: Aspose.Words for Node.js
description: "OpenAiModel.setProject method. Sets a specified Project to the model."
type: docs
-weight: 20
+weight: 30
url: /nodejs-net/aspose.words.ai/openaimodel/setProject/
---
diff --git a/english/nodejs-net/Aspose.Words.AI/openaimodel/summarize/_index.md b/english/nodejs-net/Aspose.Words.AI/openaimodel/summarize/_index.md
index 5bca2f8ff50..838879036ae 100644
--- a/english/nodejs-net/Aspose.Words.AI/openaimodel/summarize/_index.md
+++ b/english/nodejs-net/Aspose.Words.AI/openaimodel/summarize/_index.md
@@ -5,7 +5,7 @@ articleTitle: summarize method
second_title: Aspose.Words for Node.js
description: "Aspose.Words.AI.OpenAiModel.summarize method"
type: docs
-weight: 30
+weight: 40
url: /nodejs-net/aspose.words.ai/openaimodel/summarize/
---
diff --git a/english/nodejs-net/Aspose.Words.AI/openaimodel/translate/_index.md b/english/nodejs-net/Aspose.Words.AI/openaimodel/translate/_index.md
index f109e1b28a0..078a8b6330f 100644
--- a/english/nodejs-net/Aspose.Words.AI/openaimodel/translate/_index.md
+++ b/english/nodejs-net/Aspose.Words.AI/openaimodel/translate/_index.md
@@ -5,7 +5,7 @@ articleTitle: translate method
second_title: Aspose.Words for Node.js
description: "OpenAiModel.translate method. Translates the provided document into the specified target language"
type: docs
-weight: 40
+weight: 50
url: /nodejs-net/aspose.words.ai/openaimodel/translate/
---
diff --git a/english/nodejs-net/Aspose.Words.AI/openaimodel/url/_index.md b/english/nodejs-net/Aspose.Words.AI/openaimodel/url/_index.md
new file mode 100644
index 00000000000..5edc7bcf68f
--- /dev/null
+++ b/english/nodejs-net/Aspose.Words.AI/openaimodel/url/_index.md
@@ -0,0 +1,26 @@
+---
+title: OpenAiModel.url property
+linktitle: url property
+articleTitle: url property
+second_title: Aspose.Words for Node.js
+description: "OpenAiModel.url property. Gets or sets a URL of the model"
+type: docs
+weight: 10
+url: /nodejs-net/aspose.words.ai/openaimodel/url/
+---
+
+## OpenAiModel.url property
+
+Gets or sets a URL of the model.
+The default value is "https://api.openai.com/".
+
+
+```js
+get url(): string
+```
+
+### See Also
+
+* module [Aspose.Words.AI](../../)
+* class [OpenAiModel](../)
+
diff --git a/english/nodejs-net/Aspose.Words.Drawing/imagedata/_index.md b/english/nodejs-net/Aspose.Words.Drawing/imagedata/_index.md
index a614262e0e2..348440be324 100644
--- a/english/nodejs-net/Aspose.Words.Drawing/imagedata/_index.md
+++ b/english/nodejs-net/Aspose.Words.Drawing/imagedata/_index.md
@@ -20,13 +20,13 @@ Adapts [ImageData](./) class public API for Node.js porting.
Use the [Shape.imageData](../shape/imageData/) property to access and modify the image inside a shape.
You do not create instances of the [ImageData](./) class directly.
-An image can be stored inside a shape, linked to external file or both (linked and stored in the document).
+An image can be stored inside a shape, linked to external file or both(linked and stored in the document).
Regardless of whether the image is stored inside the shape or linked, you can always access the actual
image using the [ImageData.toByteArray()](./toByteArray/#default), or[ImageData.save()](./save/#string) methods.
If the image is stored inside the shape, you can also directly access it using the [ImageData.imageBytes](./imageBytes/) property.
-To store an image inside a shape use the [ImageData.setImage()](./setImage/#string) method. To link an image to a shape, set the [ImageData.sourceFullName](./sourceFullName/) property.
+To store an image inside a shape use the[ImageData.setImage()](./setImage/#string) method.To link an image to a shape, set the[ImageData.sourceFullName](./sourceFullName/) property.
diff --git a/english/nodejs-net/Aspose.Words.Drawing/imagedata/imageBytes/_index.md b/english/nodejs-net/Aspose.Words.Drawing/imagedata/imageBytes/_index.md
index e6066029296..cc87102f146 100644
--- a/english/nodejs-net/Aspose.Words.Drawing/imagedata/imageBytes/_index.md
+++ b/english/nodejs-net/Aspose.Words.Drawing/imagedata/imageBytes/_index.md
@@ -22,7 +22,7 @@ get imageBytes(): number[]
Setting the value to ``null`` or an empty array will remove the image from the shape.
-Returns ``null`` if the image is not stored in the document (e.g the image is probably linked in this case).
+Returns``null`` if the image is not stored in the document (e.g the image is probably linked in this case).
diff --git a/english/nodejs-net/Aspose.Words.Loading/loadoptions/tempFolder/_index.md b/english/nodejs-net/Aspose.Words.Loading/loadoptions/tempFolder/_index.md
index 187542d48c7..e77da61e1f0 100644
--- a/english/nodejs-net/Aspose.Words.Loading/loadoptions/tempFolder/_index.md
+++ b/english/nodejs-net/Aspose.Words.Loading/loadoptions/tempFolder/_index.md
@@ -31,6 +31,21 @@ Aspose.Words automatically deletes all temporary files when reading is complete.
### Examples
+Shows how to load a document using temporary files.
+
+```js
+// Note that such an approach can reduce memory usage but degrades speed
+const loadOptions = new aw.Loading.LoadOptions();
+loadOptions.tempFolder = "C:\\Temp\\";
+
+// Ensure that the directory exists and load
+if (!fs.existsSync(loadOptions.tempFolder)){
+ fs.mkdirSync(loadOptions.tempFolder);
+}
+
+const doc = new aw.Document(base.myDir + "Document.docx", loadOptions);
+```
+
Shows how to use the hard drive instead of memory when loading a document.
```js
@@ -51,21 +66,6 @@ let doc = new aw.Document(base.myDir + "Document.docx", options);
expect(fs.readdirSync(options.tempFolder).length).toEqual(0);
```
-Shows how to load a document using temporary files.
-
-```js
-// Note that such an approach can reduce memory usage but degrades speed
-const loadOptions = new aw.Loading.LoadOptions();
-loadOptions.tempFolder = "C:\\Temp\\";
-
-// Ensure that the directory exists and load
-if (!fs.existsSync(loadOptions.tempFolder)){
- fs.mkdirSync(loadOptions.tempFolder);
-}
-
-const doc = new aw.Document(base.myDir + "Document.docx", loadOptions);
-```
-
### See Also
* module [Aspose.Words.Loading](../../)
diff --git a/english/nodejs-net/Aspose.Words.Notes/footnotetype/_index.md b/english/nodejs-net/Aspose.Words.Notes/footnotetype/_index.md
index a28bd57c796..546d345efe7 100644
--- a/english/nodejs-net/Aspose.Words.Notes/footnotetype/_index.md
+++ b/english/nodejs-net/Aspose.Words.Notes/footnotetype/_index.md
@@ -29,6 +29,32 @@ and endnotes.
### Examples
+Shows how to reference text with a footnote and an endnote.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+// Insert some text and mark it with a footnote with the IsAuto property set to "true" by default,
+// so the marker seen in the body text will be auto-numbered at "1",
+// and the footnote will appear at the bottom of the page.
+builder.write("This text will be referenced by a footnote.");
+builder.insertFootnote(aw.Notes.FootnoteType.Footnote, "Footnote comment regarding referenced text.");
+
+// Insert more text and mark it with an endnote with a custom reference mark,
+// which will be used in place of the number "2" and set "IsAuto" to false.
+builder.write("This text will be referenced by an endnote.");
+builder.insertFootnote(aw.Notes.FootnoteType.Endnote, "Endnote comment regarding referenced text.", "CustomMark");
+
+// Footnotes always appear at the bottom of their referenced text,
+// so this page break will not affect the footnote.
+// On the other hand, endnotes are always at the end of the document
+// so that this page break will push the endnote down to the next page.
+builder.insertBreak(aw.BreakType.PageBreak);
+
+doc.save(base.artifactsDir + "DocumentBuilder.insertFootnote.docx");
+```
+
Shows how to insert and customize footnotes.
```js
@@ -72,32 +98,6 @@ expect(footnote.isAuto).toEqual(true);
doc.save(base.artifactsDir + "InlineStory.AddFootnote.docx");
```
-Shows how to reference text with a footnote and an endnote.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-// Insert some text and mark it with a footnote with the IsAuto property set to "true" by default,
-// so the marker seen in the body text will be auto-numbered at "1",
-// and the footnote will appear at the bottom of the page.
-builder.write("This text will be referenced by a footnote.");
-builder.insertFootnote(aw.Notes.FootnoteType.Footnote, "Footnote comment regarding referenced text.");
-
-// Insert more text and mark it with an endnote with a custom reference mark,
-// which will be used in place of the number "2" and set "IsAuto" to false.
-builder.write("This text will be referenced by an endnote.");
-builder.insertFootnote(aw.Notes.FootnoteType.Endnote, "Endnote comment regarding referenced text.", "CustomMark");
-
-// Footnotes always appear at the bottom of their referenced text,
-// so this page break will not affect the footnote.
-// On the other hand, endnotes are always at the end of the document
-// so that this page break will push the endnote down to the next page.
-builder.insertBreak(aw.BreakType.PageBreak);
-
-doc.save(base.artifactsDir + "DocumentBuilder.insertFootnote.docx");
-```
-
### See Also
* module [Aspose.Words.Notes](../)
diff --git a/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/characters/_index.md b/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/characters/_index.md
index 97b376b4187..5a45309f57c 100644
--- a/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/characters/_index.md
+++ b/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/characters/_index.md
@@ -27,6 +27,31 @@ Aspose.Words updates this property when you call [Document.updateWordCount()](..
### Examples
+Shows how to update all list labels in a document.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+builder.writeln("Lorem ipsum dolor sit amet, consectetur adipiscing elit, " +
+ "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.");
+builder.write("Ut enim ad minim veniam, " +
+ "quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.");
+// Aspose.words does not track document metrics like these in real time.
+expect(doc.builtInDocumentProperties.characters).toEqual(0);
+expect(doc.builtInDocumentProperties.words).toEqual(0);
+expect(doc.builtInDocumentProperties.paragraphs).toEqual(1);
+expect(doc.builtInDocumentProperties.lines).toEqual(1);
+// To get accurate values for three of these properties, we will need to update them manually.
+doc.updateWordCount();
+expect(doc.builtInDocumentProperties.characters).toEqual(196);
+expect(doc.builtInDocumentProperties.words).toEqual(36);
+expect(doc.builtInDocumentProperties.paragraphs).toEqual(2);
+// For the line count, we will need to call a specific overload of the updating method.
+expect(doc.builtInDocumentProperties.lines).toEqual(1);
+doc.updateWordCount(true);
+expect(doc.builtInDocumentProperties.lines).toEqual(4);
+```
+
Shows how to work with document properties in the "Content" category.
```js
@@ -88,31 +113,6 @@ test('Content', () => {
});
```
-Shows how to update all list labels in a document.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-builder.writeln("Lorem ipsum dolor sit amet, consectetur adipiscing elit, " +
- "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.");
-builder.write("Ut enim ad minim veniam, " +
- "quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.");
-// Aspose.words does not track document metrics like these in real time.
-expect(doc.builtInDocumentProperties.characters).toEqual(0);
-expect(doc.builtInDocumentProperties.words).toEqual(0);
-expect(doc.builtInDocumentProperties.paragraphs).toEqual(1);
-expect(doc.builtInDocumentProperties.lines).toEqual(1);
-// To get accurate values for three of these properties, we will need to update them manually.
-doc.updateWordCount();
-expect(doc.builtInDocumentProperties.characters).toEqual(196);
-expect(doc.builtInDocumentProperties.words).toEqual(36);
-expect(doc.builtInDocumentProperties.paragraphs).toEqual(2);
-// For the line count, we will need to call a specific overload of the updating method.
-expect(doc.builtInDocumentProperties.lines).toEqual(1);
-doc.updateWordCount(true);
-expect(doc.builtInDocumentProperties.lines).toEqual(4);
-```
-
### See Also
* module [Aspose.Words.Properties](../../)
diff --git a/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/lines/_index.md b/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/lines/_index.md
index 503c790e00b..6778c1709cf 100644
--- a/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/lines/_index.md
+++ b/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/lines/_index.md
@@ -27,6 +27,31 @@ Aspose.Words updates this property when you call [Document.updateWordCount()](..
### Examples
+Shows how to update all list labels in a document.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+builder.writeln("Lorem ipsum dolor sit amet, consectetur adipiscing elit, " +
+ "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.");
+builder.write("Ut enim ad minim veniam, " +
+ "quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.");
+// Aspose.words does not track document metrics like these in real time.
+expect(doc.builtInDocumentProperties.characters).toEqual(0);
+expect(doc.builtInDocumentProperties.words).toEqual(0);
+expect(doc.builtInDocumentProperties.paragraphs).toEqual(1);
+expect(doc.builtInDocumentProperties.lines).toEqual(1);
+// To get accurate values for three of these properties, we will need to update them manually.
+doc.updateWordCount();
+expect(doc.builtInDocumentProperties.characters).toEqual(196);
+expect(doc.builtInDocumentProperties.words).toEqual(36);
+expect(doc.builtInDocumentProperties.paragraphs).toEqual(2);
+// For the line count, we will need to call a specific overload of the updating method.
+expect(doc.builtInDocumentProperties.lines).toEqual(1);
+doc.updateWordCount(true);
+expect(doc.builtInDocumentProperties.lines).toEqual(4);
+```
+
Shows how to work with document properties in the "Content" category.
```js
@@ -88,31 +113,6 @@ test('Content', () => {
});
```
-Shows how to update all list labels in a document.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-builder.writeln("Lorem ipsum dolor sit amet, consectetur adipiscing elit, " +
- "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.");
-builder.write("Ut enim ad minim veniam, " +
- "quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.");
-// Aspose.words does not track document metrics like these in real time.
-expect(doc.builtInDocumentProperties.characters).toEqual(0);
-expect(doc.builtInDocumentProperties.words).toEqual(0);
-expect(doc.builtInDocumentProperties.paragraphs).toEqual(1);
-expect(doc.builtInDocumentProperties.lines).toEqual(1);
-// To get accurate values for three of these properties, we will need to update them manually.
-doc.updateWordCount();
-expect(doc.builtInDocumentProperties.characters).toEqual(196);
-expect(doc.builtInDocumentProperties.words).toEqual(36);
-expect(doc.builtInDocumentProperties.paragraphs).toEqual(2);
-// For the line count, we will need to call a specific overload of the updating method.
-expect(doc.builtInDocumentProperties.lines).toEqual(1);
-doc.updateWordCount(true);
-expect(doc.builtInDocumentProperties.lines).toEqual(4);
-```
-
### See Also
* module [Aspose.Words.Properties](../../)
diff --git a/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/paragraphs/_index.md b/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/paragraphs/_index.md
index 0b15feb4193..c8b9e0a439e 100644
--- a/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/paragraphs/_index.md
+++ b/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/paragraphs/_index.md
@@ -27,6 +27,31 @@ Aspose.Words updates this property when you call [Document.updateWordCount()](..
### Examples
+Shows how to update all list labels in a document.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+builder.writeln("Lorem ipsum dolor sit amet, consectetur adipiscing elit, " +
+ "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.");
+builder.write("Ut enim ad minim veniam, " +
+ "quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.");
+// Aspose.words does not track document metrics like these in real time.
+expect(doc.builtInDocumentProperties.characters).toEqual(0);
+expect(doc.builtInDocumentProperties.words).toEqual(0);
+expect(doc.builtInDocumentProperties.paragraphs).toEqual(1);
+expect(doc.builtInDocumentProperties.lines).toEqual(1);
+// To get accurate values for three of these properties, we will need to update them manually.
+doc.updateWordCount();
+expect(doc.builtInDocumentProperties.characters).toEqual(196);
+expect(doc.builtInDocumentProperties.words).toEqual(36);
+expect(doc.builtInDocumentProperties.paragraphs).toEqual(2);
+// For the line count, we will need to call a specific overload of the updating method.
+expect(doc.builtInDocumentProperties.lines).toEqual(1);
+doc.updateWordCount(true);
+expect(doc.builtInDocumentProperties.lines).toEqual(4);
+```
+
Shows how to work with document properties in the "Content" category.
```js
@@ -88,31 +113,6 @@ test('Content', () => {
});
```
-Shows how to update all list labels in a document.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-builder.writeln("Lorem ipsum dolor sit amet, consectetur adipiscing elit, " +
- "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.");
-builder.write("Ut enim ad minim veniam, " +
- "quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.");
-// Aspose.words does not track document metrics like these in real time.
-expect(doc.builtInDocumentProperties.characters).toEqual(0);
-expect(doc.builtInDocumentProperties.words).toEqual(0);
-expect(doc.builtInDocumentProperties.paragraphs).toEqual(1);
-expect(doc.builtInDocumentProperties.lines).toEqual(1);
-// To get accurate values for three of these properties, we will need to update them manually.
-doc.updateWordCount();
-expect(doc.builtInDocumentProperties.characters).toEqual(196);
-expect(doc.builtInDocumentProperties.words).toEqual(36);
-expect(doc.builtInDocumentProperties.paragraphs).toEqual(2);
-// For the line count, we will need to call a specific overload of the updating method.
-expect(doc.builtInDocumentProperties.lines).toEqual(1);
-doc.updateWordCount(true);
-expect(doc.builtInDocumentProperties.lines).toEqual(4);
-```
-
### See Also
* module [Aspose.Words.Properties](../../)
diff --git a/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/words/_index.md b/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/words/_index.md
index 7960d350575..fa1b2cebdbe 100644
--- a/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/words/_index.md
+++ b/english/nodejs-net/Aspose.Words.Properties/builtindocumentproperties/words/_index.md
@@ -27,6 +27,31 @@ Aspose.Words updates this property when you call [Document.updateWordCount()](..
### Examples
+Shows how to update all list labels in a document.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+builder.writeln("Lorem ipsum dolor sit amet, consectetur adipiscing elit, " +
+ "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.");
+builder.write("Ut enim ad minim veniam, " +
+ "quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.");
+// Aspose.words does not track document metrics like these in real time.
+expect(doc.builtInDocumentProperties.characters).toEqual(0);
+expect(doc.builtInDocumentProperties.words).toEqual(0);
+expect(doc.builtInDocumentProperties.paragraphs).toEqual(1);
+expect(doc.builtInDocumentProperties.lines).toEqual(1);
+// To get accurate values for three of these properties, we will need to update them manually.
+doc.updateWordCount();
+expect(doc.builtInDocumentProperties.characters).toEqual(196);
+expect(doc.builtInDocumentProperties.words).toEqual(36);
+expect(doc.builtInDocumentProperties.paragraphs).toEqual(2);
+// For the line count, we will need to call a specific overload of the updating method.
+expect(doc.builtInDocumentProperties.lines).toEqual(1);
+doc.updateWordCount(true);
+expect(doc.builtInDocumentProperties.lines).toEqual(4);
+```
+
Shows how to work with document properties in the "Content" category.
```js
@@ -88,31 +113,6 @@ test('Content', () => {
});
```
-Shows how to update all list labels in a document.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-builder.writeln("Lorem ipsum dolor sit amet, consectetur adipiscing elit, " +
- "sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.");
-builder.write("Ut enim ad minim veniam, " +
- "quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.");
-// Aspose.words does not track document metrics like these in real time.
-expect(doc.builtInDocumentProperties.characters).toEqual(0);
-expect(doc.builtInDocumentProperties.words).toEqual(0);
-expect(doc.builtInDocumentProperties.paragraphs).toEqual(1);
-expect(doc.builtInDocumentProperties.lines).toEqual(1);
-// To get accurate values for three of these properties, we will need to update them manually.
-doc.updateWordCount();
-expect(doc.builtInDocumentProperties.characters).toEqual(196);
-expect(doc.builtInDocumentProperties.words).toEqual(36);
-expect(doc.builtInDocumentProperties.paragraphs).toEqual(2);
-// For the line count, we will need to call a specific overload of the updating method.
-expect(doc.builtInDocumentProperties.lines).toEqual(1);
-doc.updateWordCount(true);
-expect(doc.builtInDocumentProperties.lines).toEqual(4);
-```
-
### See Also
* module [Aspose.Words.Properties](../../)
diff --git a/english/nodejs-net/Aspose.Words.Saving/htmlsaveoptions/exportRoundtripInformation/_index.md b/english/nodejs-net/Aspose.Words.Saving/htmlsaveoptions/exportRoundtripInformation/_index.md
index af3c7a6e304..65f1b5b2538 100644
--- a/english/nodejs-net/Aspose.Words.Saving/htmlsaveoptions/exportRoundtripInformation/_index.md
+++ b/english/nodejs-net/Aspose.Words.Saving/htmlsaveoptions/exportRoundtripInformation/_index.md
@@ -67,7 +67,7 @@ if (exportRoundtripInformation)
expect(outDocContents.includes(
"td colspan=\"2\" style=\"width:210.6pt; border-style:solid; border-width:0.75pt 6pt 0.75pt 0.75pt; " +
"padding-right:2.4pt; padding-left:5.03pt; vertical-align:top; -aw-border-bottom:0.5pt single #000000; " +
- "-aw-border-left:0.5pt single #000000; -aw-border-top:0.5pt single #000000\">")).toEqual(true);
+ "-aw-border-left:0.5pt single #000000; -aw-border-right:6pt single #000000; -aw-border-top:0.5pt single #000000\">")).toEqual(true);
expect(outDocContents.includes(
"")).toEqual(true);
diff --git a/english/nodejs-net/Aspose.Words.Saving/htmlsaveoptions/htmlVersion/_index.md b/english/nodejs-net/Aspose.Words.Saving/htmlsaveoptions/htmlVersion/_index.md
index bc07d32d141..24bd2c16e5c 100644
--- a/english/nodejs-net/Aspose.Words.Saving/htmlsaveoptions/htmlVersion/_index.md
+++ b/english/nodejs-net/Aspose.Words.Saving/htmlsaveoptions/htmlVersion/_index.md
@@ -41,12 +41,12 @@ switch (htmlVersion)
case aw.Saving.HtmlVersion.Html5:
expect(outDocContents.includes("")).toEqual(true);
expect(outDocContents.includes("")).toEqual(true);
- expect(outDocContents.includes("")).toEqual(true);
+ expect(outDocContents.includes("")).toEqual(true);
break;
case aw.Saving.HtmlVersion.Xhtml:
expect(outDocContents.includes("")).toEqual(true);
expect(outDocContents.includes("")).toEqual(true);
- expect(outDocContents.includes("")).toEqual(true);
expect(outDocContents.includes("")).toEqual(true);
- expect(outDocContents.includes("")).toEqual(true);
+ expect(outDocContents.includes("")).toEqual(true);
break;
case aw.Saving.HtmlVersion.Xhtml:
expect(outDocContents.includes("")).toEqual(true);
expect(outDocContents.includes("")).toEqual(true);
- expect(outDocContents.includes(" {
+ let doc = new aw.Document(base.myDir + "Table with merged cells.docx");
+ let table = doc.firstSection.body.tables.at(0);
+
+ for (let row of table.rows.toArray())
+ for (let cell of row.cells.toArray())
+ console.log(printCellMergeType(cell));
+ expect(printCellMergeType(table.firstRow.firstCell)).toEqual("The cell at R1, C1 is vertically merged");
+});
+
+
+function printCellMergeType(cell)
+{
+ let isHorizontallyMerged = cell.cellFormat.horizontalMerge != aw.Tables.CellMerge.None;
+ let isVerticallyMerged = cell.cellFormat.verticalMerge != aw.Tables.CellMerge.None;
+ let cellLocation =
+ `R${cell.parentRow.parentTable.indexOf(cell.parentRow) + 1}, C${cell.parentRow.indexOf(cell) + 1}`;
+
+ if (isHorizontallyMerged && isVerticallyMerged)
+ return `The cell at ${cellLocation} is both horizontally and vertically merged`;
+ if (isHorizontallyMerged)
+ return `The cell at ${cellLocation} is horizontally merged.`;
+
+ return isVerticallyMerged ? `The cell at ${cellLocation} is vertically merged` : `The cell at ${cellLocation} is not merged`;
+}
+```
+
Shows how to merge table cells vertically.
```js
@@ -65,36 +95,6 @@ builder.endTable();
doc.save(base.artifactsDir + "CellFormat.verticalMerge.docx");
```
-Prints the horizontal and vertical merge type of a cell.
-
-```js
-test('CheckCellsMerged', () => {
- let doc = new aw.Document(base.myDir + "Table with merged cells.docx");
- let table = doc.firstSection.body.tables.at(0);
-
- for (let row of table.rows.toArray())
- for (let cell of row.cells.toArray())
- console.log(printCellMergeType(cell));
- expect(printCellMergeType(table.firstRow.firstCell)).toEqual("The cell at R1, C1 is vertically merged");
-});
-
-
-function printCellMergeType(cell)
-{
- let isHorizontallyMerged = cell.cellFormat.horizontalMerge != aw.Tables.CellMerge.None;
- let isVerticallyMerged = cell.cellFormat.verticalMerge != aw.Tables.CellMerge.None;
- let cellLocation =
- `R${cell.parentRow.parentTable.indexOf(cell.parentRow) + 1}, C${cell.parentRow.indexOf(cell) + 1}`;
-
- if (isHorizontallyMerged && isVerticallyMerged)
- return `The cell at ${cellLocation} is both horizontally and vertically merged`;
- if (isHorizontallyMerged)
- return `The cell at ${cellLocation} is horizontally merged.`;
-
- return isVerticallyMerged ? `The cell at ${cellLocation} is vertically merged` : `The cell at ${cellLocation} is not merged`;
-}
-```
-
### See Also
* module [Aspose.Words.Tables](../../)
diff --git a/english/nodejs-net/Aspose.Words.Tables/cellmerge/_index.md b/english/nodejs-net/Aspose.Words.Tables/cellmerge/_index.md
index 66929beecc1..73c4d450cdd 100644
--- a/english/nodejs-net/Aspose.Words.Tables/cellmerge/_index.md
+++ b/english/nodejs-net/Aspose.Words.Tables/cellmerge/_index.md
@@ -24,6 +24,36 @@ Specifies how a cell in a table is merged with other cells.
### Examples
+Prints the horizontal and vertical merge type of a cell.
+
+```js
+test('CheckCellsMerged', () => {
+ let doc = new aw.Document(base.myDir + "Table with merged cells.docx");
+ let table = doc.firstSection.body.tables.at(0);
+
+ for (let row of table.rows.toArray())
+ for (let cell of row.cells.toArray())
+ console.log(printCellMergeType(cell));
+ expect(printCellMergeType(table.firstRow.firstCell)).toEqual("The cell at R1, C1 is vertically merged");
+});
+
+
+function printCellMergeType(cell)
+{
+ let isHorizontallyMerged = cell.cellFormat.horizontalMerge != aw.Tables.CellMerge.None;
+ let isVerticallyMerged = cell.cellFormat.verticalMerge != aw.Tables.CellMerge.None;
+ let cellLocation =
+ `R${cell.parentRow.parentTable.indexOf(cell.parentRow) + 1}, C${cell.parentRow.indexOf(cell) + 1}`;
+
+ if (isHorizontallyMerged && isVerticallyMerged)
+ return `The cell at ${cellLocation} is both horizontally and vertically merged`;
+ if (isHorizontallyMerged)
+ return `The cell at ${cellLocation} is horizontally merged.`;
+
+ return isVerticallyMerged ? `The cell at ${cellLocation} is vertically merged` : `The cell at ${cellLocation} is not merged`;
+}
+```
+
Shows how to merge table cells vertically.
```js
@@ -88,36 +118,6 @@ builder.endTable();
doc.save(base.artifactsDir + "CellFormat.horizontalMerge.docx");
```
-Prints the horizontal and vertical merge type of a cell.
-
-```js
-test('CheckCellsMerged', () => {
- let doc = new aw.Document(base.myDir + "Table with merged cells.docx");
- let table = doc.firstSection.body.tables.at(0);
-
- for (let row of table.rows.toArray())
- for (let cell of row.cells.toArray())
- console.log(printCellMergeType(cell));
- expect(printCellMergeType(table.firstRow.firstCell)).toEqual("The cell at R1, C1 is vertically merged");
-});
-
-
-function printCellMergeType(cell)
-{
- let isHorizontallyMerged = cell.cellFormat.horizontalMerge != aw.Tables.CellMerge.None;
- let isVerticallyMerged = cell.cellFormat.verticalMerge != aw.Tables.CellMerge.None;
- let cellLocation =
- `R${cell.parentRow.parentTable.indexOf(cell.parentRow) + 1}, C${cell.parentRow.indexOf(cell) + 1}`;
-
- if (isHorizontallyMerged && isVerticallyMerged)
- return `The cell at ${cellLocation} is both horizontally and vertically merged`;
- if (isHorizontallyMerged)
- return `The cell at ${cellLocation} is horizontally merged.`;
-
- return isVerticallyMerged ? `The cell at ${cellLocation} is vertically merged` : `The cell at ${cellLocation} is not merged`;
-}
-```
-
### See Also
* module [Aspose.Words.Tables](../)
diff --git a/english/nodejs-net/Aspose.Words.Tables/rowformat/_index.md b/english/nodejs-net/Aspose.Words.Tables/rowformat/_index.md
index d186f9d88c6..bc6e054e881 100644
--- a/english/nodejs-net/Aspose.Words.Tables/rowformat/_index.md
+++ b/english/nodejs-net/Aspose.Words.Tables/rowformat/_index.md
@@ -35,53 +35,6 @@ To learn more, visit the [Working with Tables](https://docs.aspose.com/words/nod
### Examples
-Shows how to modify the format of rows and cells in a table.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-let table = builder.startTable();
-builder.insertCell();
-builder.write("City");
-builder.insertCell();
-builder.write("Country");
-builder.endRow();
-builder.insertCell();
-builder.write("London");
-builder.insertCell();
-builder.write("U.K.");
-builder.endTable();
-
-// Use the first row's "RowFormat" property to modify the formatting
-// of the contents of all cells in this row.
-let rowFormat = table.firstRow.rowFormat;
-rowFormat.height = 25;
-rowFormat.borders.at(aw.BorderType.Bottom).color = "#FF0000";
-
-// Use the "CellFormat" property of the first cell in the last row to modify the formatting of that cell's contents.
-let cellFormat = table.lastRow.firstCell.cellFormat;
-cellFormat.width = 100;
-cellFormat.shading.backgroundPatternColor = "#FFA500";
-
-doc.save(base.artifactsDir + "Table.RowCellFormat.docx");
-```
-
-Shows how to modify formatting of a table row.
-
-```js
-let doc = new aw.Document(base.myDir + "Tables.docx");
-let table = doc.firstSection.body.tables.at(0);
-
-// Use the first row's "RowFormat" property to set formatting that modifies that entire row's appearance.
-let firstRow = table.firstRow;
-firstRow.rowFormat.borders.lineStyle = aw.LineStyle.None;
-firstRow.rowFormat.heightRule = aw.HeightRule.Auto;
-firstRow.rowFormat.allowBreakAcrossPages = true;
-
-doc.save(base.artifactsDir + "Table.rowFormat.docx");
-```
-
Shows how to build a table with custom borders.
```js
@@ -143,6 +96,53 @@ builder.endTable();
doc.save(base.artifactsDir + "DocumentBuilder.InsertTable.docx");
```
+Shows how to modify the format of rows and cells in a table.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+let table = builder.startTable();
+builder.insertCell();
+builder.write("City");
+builder.insertCell();
+builder.write("Country");
+builder.endRow();
+builder.insertCell();
+builder.write("London");
+builder.insertCell();
+builder.write("U.K.");
+builder.endTable();
+
+// Use the first row's "RowFormat" property to modify the formatting
+// of the contents of all cells in this row.
+let rowFormat = table.firstRow.rowFormat;
+rowFormat.height = 25;
+rowFormat.borders.at(aw.BorderType.Bottom).color = "#FF0000";
+
+// Use the "CellFormat" property of the first cell in the last row to modify the formatting of that cell's contents.
+let cellFormat = table.lastRow.firstCell.cellFormat;
+cellFormat.width = 100;
+cellFormat.shading.backgroundPatternColor = "#FFA500";
+
+doc.save(base.artifactsDir + "Table.RowCellFormat.docx");
+```
+
+Shows how to modify formatting of a table row.
+
+```js
+let doc = new aw.Document(base.myDir + "Tables.docx");
+let table = doc.firstSection.body.tables.at(0);
+
+// Use the first row's "RowFormat" property to set formatting that modifies that entire row's appearance.
+let firstRow = table.firstRow;
+firstRow.rowFormat.borders.lineStyle = aw.LineStyle.None;
+firstRow.rowFormat.heightRule = aw.HeightRule.Auto;
+firstRow.rowFormat.allowBreakAcrossPages = true;
+
+doc.save(base.artifactsDir + "Table.rowFormat.docx");
+```
+
### See Also
* module [Aspose.Words.Tables](../)
diff --git a/english/nodejs-net/Aspose.Words/_index.md b/english/nodejs-net/Aspose.Words/_index.md
index 651fda53087..076127aca59 100644
--- a/english/nodejs-net/Aspose.Words/_index.md
+++ b/english/nodejs-net/Aspose.Words/_index.md
@@ -150,6 +150,7 @@ The main classes in this module are:
| [IDocumentProcessorPlugin](./idocumentprocessorplugin/) | Defines an interface for external document processor plugin. |
| [IDocumentReaderPlugin](./idocumentreaderplugin/) | Defines an interface for external reader plugins that can read a file into a document. |
| [IHyphenationCallback](./ihyphenationcallback/) | Implemented by classes which can register hyphenation dictionaries. |
+| [IIndexFilter](./iindexfilter/) | Defines a filter for skipping items based on their indices. |
| [INodeChangingCallback](./inodechangingcallback/) | Implement this interface if you want to receive notifications when nodes are inserted or removed in the document. |
| [IRevisionCriteria](./irevisioncriteria/) | Implement this interface if you want to control when certain [Revision](./revision/) should be accepted/rejected or not by the [RevisionCollection.accept()](./revisioncollection/accept/#irevisioncriteria)/[RevisionCollection.reject()](./revisioncollection/reject/#irevisioncriteria) methods. |
diff --git a/english/nodejs-net/Aspose.Words/breaktype/_index.md b/english/nodejs-net/Aspose.Words/breaktype/_index.md
index dbcfb9c4c17..b9127ddcf87 100644
--- a/english/nodejs-net/Aspose.Words/breaktype/_index.md
+++ b/english/nodejs-net/Aspose.Words/breaktype/_index.md
@@ -30,6 +30,35 @@ Specifies type of a break inside a document.
### Examples
+Shows how to apply and revert page setup settings to sections in a document.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+// Modify the page setup properties for the builder's current section and add text.
+builder.pageSetup.orientation = aw.Orientation.Landscape;
+builder.pageSetup.verticalAlignment = aw.PageVerticalAlignment.Center;
+builder.writeln("This is the first section, which landscape oriented with vertically centered text.");
+
+// If we start a new section using a document builder,
+// it will inherit the builder's current page setup properties.
+builder.insertBreak(aw.BreakType.SectionBreakNewPage);
+
+expect(doc.sections.at(1).pageSetup.orientation).toEqual(aw.Orientation.Landscape);
+expect(doc.sections.at(1).pageSetup.verticalAlignment).toEqual(aw.PageVerticalAlignment.Center);
+
+// We can revert its page setup properties to their default values using the "ClearFormatting" method.
+builder.pageSetup.clearFormatting();
+
+expect(doc.sections.at(1).pageSetup.orientation).toEqual(aw.Orientation.Portrait);
+expect(doc.sections.at(1).pageSetup.verticalAlignment).toEqual(aw.PageVerticalAlignment.Top);
+
+builder.writeln("This is the second section, which is in default Letter paper size, portrait orientation and top alignment.");
+
+doc.save(base.artifactsDir + "PageSetup.clearFormatting.docx");
+```
+
Shows how to create headers and footers in a document using DocumentBuilder.
```js
@@ -105,35 +134,6 @@ doc.updateFields();
doc.save(base.artifactsDir + "DocumentBuilder.InsertToc.docx");
```
-Shows how to apply and revert page setup settings to sections in a document.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-// Modify the page setup properties for the builder's current section and add text.
-builder.pageSetup.orientation = aw.Orientation.Landscape;
-builder.pageSetup.verticalAlignment = aw.PageVerticalAlignment.Center;
-builder.writeln("This is the first section, which landscape oriented with vertically centered text.");
-
-// If we start a new section using a document builder,
-// it will inherit the builder's current page setup properties.
-builder.insertBreak(aw.BreakType.SectionBreakNewPage);
-
-expect(doc.sections.at(1).pageSetup.orientation).toEqual(aw.Orientation.Landscape);
-expect(doc.sections.at(1).pageSetup.verticalAlignment).toEqual(aw.PageVerticalAlignment.Center);
-
-// We can revert its page setup properties to their default values using the "ClearFormatting" method.
-builder.pageSetup.clearFormatting();
-
-expect(doc.sections.at(1).pageSetup.orientation).toEqual(aw.Orientation.Portrait);
-expect(doc.sections.at(1).pageSetup.verticalAlignment).toEqual(aw.PageVerticalAlignment.Top);
-
-builder.writeln("This is the second section, which is in default Letter paper size, portrait orientation and top alignment.");
-
-doc.save(base.artifactsDir + "PageSetup.clearFormatting.docx");
-```
-
### See Also
* module [Aspose.Words](../)
diff --git a/english/nodejs-net/Aspose.Words/comment/_index.md b/english/nodejs-net/Aspose.Words/comment/_index.md
index 08151f457dc..28e77dfb89e 100644
--- a/english/nodejs-net/Aspose.Words/comment/_index.md
+++ b/english/nodejs-net/Aspose.Words/comment/_index.md
@@ -162,25 +162,6 @@ To anchor a comment to a region of text three objects are required: [Comment](./
### Examples
-Shows how to add a comment to a paragraph.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-builder.write("Hello world!");
-
-var today = new Date(2024, 11, 26);
-var comment = new aw.Comment(doc, "John Doe", "JD", today);
-builder.currentParagraph.appendChild(comment);
-builder.moveTo(comment.appendChild(new aw.Paragraph(doc)));
-builder.write("Comment text.");
-
-expect(comment.dateTime).toEqual(today);
-
-// In Microsoft Word, we can right-click this comment in the document body to edit it, or reply to it.
-doc.save(base.artifactsDir + "InlineStory.AddComment.docx");
-```
-
Shows how to add a comment to a document, and then reply to it.
```js
@@ -210,6 +191,25 @@ expect(comment.replies.at(0).ancestor).toEqual(comment);
doc.save(base.artifactsDir + "Comment.AddCommentWithReply.docx");
```
+Shows how to add a comment to a paragraph.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+builder.write("Hello world!");
+
+var today = new Date(2024, 11, 26);
+var comment = new aw.Comment(doc, "John Doe", "JD", today);
+builder.currentParagraph.appendChild(comment);
+builder.moveTo(comment.appendChild(new aw.Paragraph(doc)));
+builder.write("Comment text.");
+
+expect(comment.dateTime).toEqual(today);
+
+// In Microsoft Word, we can right-click this comment in the document body to edit it, or reply to it.
+doc.save(base.artifactsDir + "InlineStory.AddComment.docx");
+```
+
### See Also
* module [Aspose.Words](../)
diff --git a/english/nodejs-net/Aspose.Words/compositenode/getChildNodes/_index.md b/english/nodejs-net/Aspose.Words/compositenode/getChildNodes/_index.md
index 1aaa21677ab..d1a0ea323b2 100644
--- a/english/nodejs-net/Aspose.Words/compositenode/getChildNodes/_index.md
+++ b/english/nodejs-net/Aspose.Words/compositenode/getChildNodes/_index.md
@@ -45,6 +45,30 @@ A live collection of child nodes of the specified type.
### Examples
+Shows how to print all of a document's comments and their replies.
+
+```js
+let doc = new aw.Document(base.myDir + "Comments.docx");
+
+let comments = [...doc.getChildNodes(aw.NodeType.Comment, true)];
+expect(comments.length).toEqual(12);
+
+// If a comment has no ancestor, it is a "top-level" comment as opposed to a reply-type comment.
+// Print all top-level comments along with any replies they may have.
+for (var node of comments.filter(n => n.ancestor == null))
+{
+ let comment = node.asComment();
+ console.log("Top-level comment:");
+ console.log(`\t\"${comment.getText().trim()}\", by ${comment.author}`);
+ console.log(`Has ${comment.replies.count} replies`);
+ for (let commentReply of comment.replies)
+ {
+ console.log(`\t\"${commentReply.getText().trim()}\", by ${commentReply.author}`);
+ }
+ console.log();
+}
+```
+
Shows how to add, update and delete child nodes in a CompositeNode's collection of children.
```js
@@ -95,30 +119,6 @@ expect(paragraph.getText().trim()).toEqual("Run 1. Updated run 2. Run 3.");
expect(paragraph.getChildNodes(aw.NodeType.Any, true).count).toEqual(3);
```
-Shows how to print all of a document's comments and their replies.
-
-```js
-let doc = new aw.Document(base.myDir + "Comments.docx");
-
-let comments = [...doc.getChildNodes(aw.NodeType.Comment, true)];
-expect(comments.length).toEqual(12);
-
-// If a comment has no ancestor, it is a "top-level" comment as opposed to a reply-type comment.
-// Print all top-level comments along with any replies they may have.
-for (var node of comments.filter(n => n.ancestor == null))
-{
- let comment = node.asComment();
- console.log("Top-level comment:");
- console.log(`\t\"${comment.getText().trim()}\", by ${comment.author}`);
- console.log(`Has ${comment.replies.count} replies`);
- for (let commentReply of comment.replies)
- {
- console.log(`\t\"${commentReply.getText().trim()}\", by ${commentReply.author}`);
- }
- console.log();
-}
-```
-
### See Also
* module [Aspose.Words](../../)
diff --git a/english/nodejs-net/Aspose.Words/compositenode/getText/_index.md b/english/nodejs-net/Aspose.Words/compositenode/getText/_index.md
index e7a60d5bb73..97ed4f49447 100644
--- a/english/nodejs-net/Aspose.Words/compositenode/getText/_index.md
+++ b/english/nodejs-net/Aspose.Words/compositenode/getText/_index.md
@@ -27,6 +27,18 @@ The returned string includes all control and special characters as described in
### Examples
+Shows the difference between calling the GetText and ToString methods on a node.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+builder.insertField("MERGEFIELD Field");
+// GetText will retrieve the visible text as well as field codes and special characters.
+expect(doc.getText().trim()).toEqual("\u0013MERGEFIELD Field\u0014«Field»\u0015");
+// ToString will give us the document's appearance if saved to a passed save format.
+expect(doc.toString(aw.SaveFormat.Text).trim()).toEqual("«Field»");
+```
+
Shows how to output all paragraphs in a document that are list items.
```js
@@ -55,18 +67,6 @@ for (let node of nodes.filter(p => p.asParagraph().listFormat.isListItem))
}
```
-Shows the difference between calling the GetText and ToString methods on a node.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-builder.insertField("MERGEFIELD Field");
-// GetText will retrieve the visible text as well as field codes and special characters.
-expect(doc.getText().trim()).toEqual("\u0013MERGEFIELD Field\u0014«Field»\u0015");
-// ToString will give us the document's appearance if saved to a passed save format.
-expect(doc.toString(aw.SaveFormat.Text).trim()).toEqual("«Field»");
-```
-
### See Also
* module [Aspose.Words](../../)
diff --git a/english/nodejs-net/Aspose.Words/document/updateFields/_index.md b/english/nodejs-net/Aspose.Words/document/updateFields/_index.md
index 1dd883ef9f5..efeadf165a7 100644
--- a/english/nodejs-net/Aspose.Words/document/updateFields/_index.md
+++ b/english/nodejs-net/Aspose.Words/document/updateFields/_index.md
@@ -41,39 +41,6 @@ To update fields in a specific part of the document use [Range.updateFields()](.
### Examples
-Shows how to set user details, and display them using fields.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-// Create a UserInformation object and set it as the data source for fields that display user information.
-let userInformation = new aw.Fields.UserInformation();
-userInformation.name = "John Doe";
-userInformation.initials = "J. D.";
-userInformation.address = "123 Main Street";
-doc.fieldOptions.currentUser = userInformation;
-
-// Insert USERNAME, USERINITIALS, and USERADDRESS fields, which display values of
-// the respective properties of the UserInformation object that we have created above.
-expect(builder.insertField(" USERNAME ").result).toEqual(userInformation.name);
-expect(builder.insertField(" USERINITIALS ").result).toEqual(userInformation.initials);
-expect(builder.insertField(" USERADDRESS ").result).toEqual(userInformation.address);
-
-// The field options object also has a static default user that fields from all documents can refer to.
-aw.Fields.UserInformation.defaultUser.name = "Default User";
-aw.Fields.UserInformation.defaultUser.initials = "D. U.";
-aw.Fields.UserInformation.defaultUser.address = "One Microsoft Way";
-doc.fieldOptions.currentUser = aw.Fields.UserInformation.defaultUser;
-
-expect(builder.insertField(" USERNAME ").result).toEqual("Default User");
-expect(builder.insertField(" USERINITIALS ").result).toEqual("D. U.");
-expect(builder.insertField(" USERADDRESS ").result).toEqual("One Microsoft Way");
-
-doc.updateFields();
-doc.save(base.artifactsDir + "FieldOptions.currentUser.docx");
-```
-
Shows how to insert a Table of contents (TOC) into a document using heading styles as entries.
```js
@@ -121,6 +88,39 @@ doc.updateFields();
doc.save(base.artifactsDir + "DocumentBuilder.InsertToc.docx");
```
+Shows how to set user details, and display them using fields.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+// Create a UserInformation object and set it as the data source for fields that display user information.
+let userInformation = new aw.Fields.UserInformation();
+userInformation.name = "John Doe";
+userInformation.initials = "J. D.";
+userInformation.address = "123 Main Street";
+doc.fieldOptions.currentUser = userInformation;
+
+// Insert USERNAME, USERINITIALS, and USERADDRESS fields, which display values of
+// the respective properties of the UserInformation object that we have created above.
+expect(builder.insertField(" USERNAME ").result).toEqual(userInformation.name);
+expect(builder.insertField(" USERINITIALS ").result).toEqual(userInformation.initials);
+expect(builder.insertField(" USERADDRESS ").result).toEqual(userInformation.address);
+
+// The field options object also has a static default user that fields from all documents can refer to.
+aw.Fields.UserInformation.defaultUser.name = "Default User";
+aw.Fields.UserInformation.defaultUser.initials = "D. U.";
+aw.Fields.UserInformation.defaultUser.address = "One Microsoft Way";
+doc.fieldOptions.currentUser = aw.Fields.UserInformation.defaultUser;
+
+expect(builder.insertField(" USERNAME ").result).toEqual("Default User");
+expect(builder.insertField(" USERINITIALS ").result).toEqual("D. U.");
+expect(builder.insertField(" USERADDRESS ").result).toEqual("One Microsoft Way");
+
+doc.updateFields();
+doc.save(base.artifactsDir + "FieldOptions.currentUser.docx");
+```
+
### See Also
* module [Aspose.Words](../../)
diff --git a/english/nodejs-net/Aspose.Words/documentbuilder/endRow/_index.md b/english/nodejs-net/Aspose.Words/documentbuilder/endRow/_index.md
index c8bdd111d15..045271a3abe 100644
--- a/english/nodejs-net/Aspose.Words/documentbuilder/endRow/_index.md
+++ b/english/nodejs-net/Aspose.Words/documentbuilder/endRow/_index.md
@@ -35,40 +35,6 @@ The row node that was just finished.
### Examples
-Shows how to merge table cells vertically.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-// Insert a cell into the first column of the first row.
-// This cell will be the first in a range of vertically merged cells.
-builder.insertCell();
-builder.cellFormat.verticalMerge = aw.Tables.CellMerge.First;
-builder.write("Text in merged cells.");
-
-// Insert a cell into the second column of the first row, then end the row.
-// Also, configure the builder to disable vertical merging in created cells.
-builder.insertCell();
-builder.cellFormat.verticalMerge = aw.Tables.CellMerge.None;
-builder.write("Text in unmerged cell.");
-builder.endRow();
-
-// Insert a cell into the first column of the second row.
-// Instead of adding text contents, we will merge this cell with the first cell that we added directly above.
-builder.insertCell();
-builder.cellFormat.verticalMerge = aw.Tables.CellMerge.Previous;
-
-// Insert another independent cell in the second column of the second row.
-builder.insertCell();
-builder.cellFormat.verticalMerge = aw.Tables.CellMerge.None;
-builder.write("Text in unmerged cell.");
-builder.endRow();
-builder.endTable();
-
-doc.save(base.artifactsDir + "CellFormat.verticalMerge.docx");
-```
-
Shows how to build a table with custom borders.
```js
@@ -171,6 +137,40 @@ expect(table.rows.at(1).cells.at(1).cellFormat.orientation).toEqual(aw.TextOrien
doc.save(base.artifactsDir + "DocumentBuilder.BuildTable.docx");
```
+Shows how to merge table cells vertically.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+// Insert a cell into the first column of the first row.
+// This cell will be the first in a range of vertically merged cells.
+builder.insertCell();
+builder.cellFormat.verticalMerge = aw.Tables.CellMerge.First;
+builder.write("Text in merged cells.");
+
+// Insert a cell into the second column of the first row, then end the row.
+// Also, configure the builder to disable vertical merging in created cells.
+builder.insertCell();
+builder.cellFormat.verticalMerge = aw.Tables.CellMerge.None;
+builder.write("Text in unmerged cell.");
+builder.endRow();
+
+// Insert a cell into the first column of the second row.
+// Instead of adding text contents, we will merge this cell with the first cell that we added directly above.
+builder.insertCell();
+builder.cellFormat.verticalMerge = aw.Tables.CellMerge.Previous;
+
+// Insert another independent cell in the second column of the second row.
+builder.insertCell();
+builder.cellFormat.verticalMerge = aw.Tables.CellMerge.None;
+builder.write("Text in unmerged cell.");
+builder.endRow();
+builder.endTable();
+
+doc.save(base.artifactsDir + "CellFormat.verticalMerge.docx");
+```
+
### See Also
* module [Aspose.Words](../../)
diff --git a/english/nodejs-net/Aspose.Words/documentbuilder/insertBreak/_index.md b/english/nodejs-net/Aspose.Words/documentbuilder/insertBreak/_index.md
index 6e7cf8d4c14..b6c58497d63 100644
--- a/english/nodejs-net/Aspose.Words/documentbuilder/insertBreak/_index.md
+++ b/english/nodejs-net/Aspose.Words/documentbuilder/insertBreak/_index.md
@@ -29,6 +29,35 @@ Use this method to insert paragraph, page, column, section or line break into th
### Examples
+Shows how to apply and revert page setup settings to sections in a document.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+// Modify the page setup properties for the builder's current section and add text.
+builder.pageSetup.orientation = aw.Orientation.Landscape;
+builder.pageSetup.verticalAlignment = aw.PageVerticalAlignment.Center;
+builder.writeln("This is the first section, which landscape oriented with vertically centered text.");
+
+// If we start a new section using a document builder,
+// it will inherit the builder's current page setup properties.
+builder.insertBreak(aw.BreakType.SectionBreakNewPage);
+
+expect(doc.sections.at(1).pageSetup.orientation).toEqual(aw.Orientation.Landscape);
+expect(doc.sections.at(1).pageSetup.verticalAlignment).toEqual(aw.PageVerticalAlignment.Center);
+
+// We can revert its page setup properties to their default values using the "ClearFormatting" method.
+builder.pageSetup.clearFormatting();
+
+expect(doc.sections.at(1).pageSetup.orientation).toEqual(aw.Orientation.Portrait);
+expect(doc.sections.at(1).pageSetup.verticalAlignment).toEqual(aw.PageVerticalAlignment.Top);
+
+builder.writeln("This is the second section, which is in default Letter paper size, portrait orientation and top alignment.");
+
+doc.save(base.artifactsDir + "PageSetup.clearFormatting.docx");
+```
+
Shows how to create headers and footers in a document using DocumentBuilder.
```js
@@ -104,35 +133,6 @@ doc.updateFields();
doc.save(base.artifactsDir + "DocumentBuilder.InsertToc.docx");
```
-Shows how to apply and revert page setup settings to sections in a document.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-// Modify the page setup properties for the builder's current section and add text.
-builder.pageSetup.orientation = aw.Orientation.Landscape;
-builder.pageSetup.verticalAlignment = aw.PageVerticalAlignment.Center;
-builder.writeln("This is the first section, which landscape oriented with vertically centered text.");
-
-// If we start a new section using a document builder,
-// it will inherit the builder's current page setup properties.
-builder.insertBreak(aw.BreakType.SectionBreakNewPage);
-
-expect(doc.sections.at(1).pageSetup.orientation).toEqual(aw.Orientation.Landscape);
-expect(doc.sections.at(1).pageSetup.verticalAlignment).toEqual(aw.PageVerticalAlignment.Center);
-
-// We can revert its page setup properties to their default values using the "ClearFormatting" method.
-builder.pageSetup.clearFormatting();
-
-expect(doc.sections.at(1).pageSetup.orientation).toEqual(aw.Orientation.Portrait);
-expect(doc.sections.at(1).pageSetup.verticalAlignment).toEqual(aw.PageVerticalAlignment.Top);
-
-builder.writeln("This is the second section, which is in default Letter paper size, portrait orientation and top alignment.");
-
-doc.save(base.artifactsDir + "PageSetup.clearFormatting.docx");
-```
-
### See Also
* module [Aspose.Words](../../)
diff --git a/english/nodejs-net/Aspose.Words/documentbuilder/insertImage/_index.md b/english/nodejs-net/Aspose.Words/documentbuilder/insertImage/_index.md
index 6e874d6027b..07e66000819 100644
--- a/english/nodejs-net/Aspose.Words/documentbuilder/insertImage/_index.md
+++ b/english/nodejs-net/Aspose.Words/documentbuilder/insertImage/_index.md
@@ -304,6 +304,56 @@ You can change the image size, location, positioning method and other settings u
## Examples
+Shows how to insert a shape with an image into a document.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+// Below are two locations where the document builder's "InsertShape" method
+// can source the image that the shape will display.
+// 1 - Pass a local file system filename of an image file:
+builder.write("Image from local file: ");
+builder.insertImage(base.imageDir + "Logo.jpg");
+builder.writeln();
+
+// 2 - Pass a URL which points to an image.
+builder.write("Image from a URL: ");
+builder.insertImage(base.imageUrl.toString());
+builder.writeln();
+
+doc.save(base.artifactsDir + "Image.FromUrl.docx");
+```
+
+Shows how to insert a floating image to the center of a page.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+// Insert a floating image that will appear behind the overlapping text and align it to the page's center.
+let shape = builder.insertImage(base.imageDir + "Logo.jpg");
+shape.wrapType = aw.Drawing.WrapType.None;
+shape.behindText = true;
+shape.relativeHorizontalPosition = aw.Drawing.RelativeHorizontalPosition.Page;
+shape.relativeVerticalPosition = aw.Drawing.RelativeVerticalPosition.Page;
+shape.horizontalAlignment = aw.Drawing.HorizontalAlignment.Center;
+shape.verticalAlignment = aw.Drawing.VerticalAlignment.Center;
+
+doc.save(base.artifactsDir + "Image.CreateFloatingPageCenter.docx");
+```
+
+Shows how to insert WebP image.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+builder.insertImage(base.imageDir + "WebP image.webp");
+
+doc.save(base.artifactsDir + "Image.InsertWebpImage.docx");
+```
+
Shows how to insert an image from the local file system into a document.
```js
@@ -363,54 +413,17 @@ gifImage = builder.insertImage(fs.readFileSync(base.imageDir + "Graphics Interch
builder.document.save(base.artifactsDir + "InsertGif.docx");
```
-Shows how to insert a shape with an image into a document.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-// Below are two locations where the document builder's "InsertShape" method
-// can source the image that the shape will display.
-// 1 - Pass a local file system filename of an image file:
-builder.write("Image from local file: ");
-builder.insertImage(base.imageDir + "Logo.jpg");
-builder.writeln();
-
-// 2 - Pass a URL which points to an image.
-builder.write("Image from a URL: ");
-builder.insertImage(base.imageUrl.toString());
-builder.writeln();
-
-doc.save(base.artifactsDir + "Image.FromUrl.docx");
-```
-
-Shows how to insert a floating image to the center of a page.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-// Insert a floating image that will appear behind the overlapping text and align it to the page's center.
-let shape = builder.insertImage(base.imageDir + "Logo.jpg");
-shape.wrapType = aw.Drawing.WrapType.None;
-shape.behindText = true;
-shape.relativeHorizontalPosition = aw.Drawing.RelativeHorizontalPosition.Page;
-shape.relativeVerticalPosition = aw.Drawing.RelativeVerticalPosition.Page;
-shape.horizontalAlignment = aw.Drawing.HorizontalAlignment.Center;
-shape.verticalAlignment = aw.Drawing.VerticalAlignment.Center;
-
-doc.save(base.artifactsDir + "Image.CreateFloatingPageCenter.docx");
-```
-
-Shows how to insert WebP image.
+Shows how to insert a shape with an image from a stream into a document.
```js
let doc = new aw.Document();
let builder = new aw.DocumentBuilder(doc);
-builder.insertImage(base.imageDir + "WebP image.webp");
+let stream = fs.createReadStream(base.imageDir + "Logo.jpg")
+builder.write("Image from stream: ");
+builder.insertImage(stream);
-doc.save(base.artifactsDir + "Image.InsertWebpImage.docx");
+doc.save(base.artifactsDir + "Image.FromStream.docx");
```
Shows how to insert an image from a stream into a document.
@@ -437,19 +450,6 @@ builder.insertImage(stream, aw.Drawing.RelativeHorizontalPosition.Margin, 100, a
doc.save(base.artifactsDir + "DocumentBuilderImages.InsertImageFromStream.docx");
```
-Shows how to insert a shape with an image from a stream into a document.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-let stream = fs.createReadStream(base.imageDir + "Logo.jpg")
-builder.write("Image from stream: ");
-builder.insertImage(stream);
-
-doc.save(base.artifactsDir + "Image.FromStream.docx");
-```
-
Shows how to insert an image.
```js
diff --git a/english/nodejs-net/Aspose.Words/documentbuilder/insertTextInput/_index.md b/english/nodejs-net/Aspose.Words/documentbuilder/insertTextInput/_index.md
index c4ca1351d56..2c220715a9b 100644
--- a/english/nodejs-net/Aspose.Words/documentbuilder/insertTextInput/_index.md
+++ b/english/nodejs-net/Aspose.Words/documentbuilder/insertTextInput/_index.md
@@ -40,23 +40,6 @@ The form field node that was just inserted.
### Examples
-Shows how to insert a text input form field.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-builder.write("Please enter text here: ");
-
-// Insert a text input field, which will allow the user to click it and enter text.
-// Assign some placeholder text that the user may overwrite and pass
-// a maximum text length of 0 to apply no limit on the form field's contents.
-builder.insertTextInput("TextInput1", aw.Fields.TextFormFieldType.Regular, "", "Placeholder text", 0);
-
-// The form field will appear in the form of an "input" html tag, with a type of "text".
-doc.save(base.artifactsDir + "FormFields.textInput.html");
-```
-
Shows how to create form fields.
```js
@@ -92,6 +75,23 @@ builder.insertTextInput("TextInput", aw.Fields.TextFormFieldType.Regular, "", "E
doc.save(base.artifactsDir + "DocumentBuilder.insertTextInput.docx");
```
+Shows how to insert a text input form field.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+builder.write("Please enter text here: ");
+
+// Insert a text input field, which will allow the user to click it and enter text.
+// Assign some placeholder text that the user may overwrite and pass
+// a maximum text length of 0 to apply no limit on the form field's contents.
+builder.insertTextInput("TextInput1", aw.Fields.TextFormFieldType.Regular, "", "Placeholder text", 0);
+
+// The form field will appear in the form of an "input" html tag, with a type of "text".
+doc.save(base.artifactsDir + "FormFields.textInput.html");
+```
+
### See Also
* module [Aspose.Words](../../)
diff --git a/english/nodejs-net/Aspose.Words/iindexfilter/_index.md b/english/nodejs-net/Aspose.Words/iindexfilter/_index.md
new file mode 100644
index 00000000000..65cfc4ad3ca
--- /dev/null
+++ b/english/nodejs-net/Aspose.Words/iindexfilter/_index.md
@@ -0,0 +1,26 @@
+---
+title: IIndexFilter class
+linktitle: IIndexFilter class
+articleTitle: IIndexFilter class
+second_title: Aspose.Words for Node.js
+description: "Aspose.Words.IIndexFilter class. Defines a filter for skipping items based on their indices."
+type: docs
+weight: 600
+url: /nodejs-net/aspose.words/iindexfilter/
+---
+
+## IIndexFilter class
+
+Defines a filter for skipping items based on their indices.
+
+
+### Methods
+
+| Name | Description |
+| --- | --- |
+|[ shouldSkipIndex(index)](./shouldSkipIndex/#number) | Determines whether the item with the specified index should be skipped. |
+
+### See Also
+
+* module [Aspose.Words](../)
+
diff --git a/english/nodejs-net/Aspose.Words/iindexfilter/shouldSkipIndex/_index.md b/english/nodejs-net/Aspose.Words/iindexfilter/shouldSkipIndex/_index.md
new file mode 100644
index 00000000000..3d178d23d2f
--- /dev/null
+++ b/english/nodejs-net/Aspose.Words/iindexfilter/shouldSkipIndex/_index.md
@@ -0,0 +1,34 @@
+---
+title: IIndexFilter.shouldSkipIndex method
+linktitle: shouldSkipIndex method
+articleTitle: shouldSkipIndex method
+second_title: Aspose.Words for Node.js
+description: "IIndexFilter.shouldSkipIndex method. Determines whether the item with the specified index should be skipped."
+type: docs
+weight: 10
+url: /nodejs-net/aspose.words/iindexfilter/shouldSkipIndex/
+---
+
+## shouldSkipIndex(index) {#number}
+
+Determines whether the item with the specified index should be skipped.
+
+
+```js
+shouldSkipIndex(index: number)
+```
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| index | number | The index of the item. |
+
+### Returns
+
+``true`` if the item should be skipped; otherwise, ``false``.
+
+
+### See Also
+
+* module [Aspose.Words](../../)
+* class [IIndexFilter](../)
+
diff --git a/english/nodejs-net/Aspose.Words/imagewatermarkoptions/_index.md b/english/nodejs-net/Aspose.Words/imagewatermarkoptions/_index.md
index eaacc40934d..944a865bca6 100644
--- a/english/nodejs-net/Aspose.Words/imagewatermarkoptions/_index.md
+++ b/english/nodejs-net/Aspose.Words/imagewatermarkoptions/_index.md
@@ -5,7 +5,7 @@ articleTitle: ImageWatermarkOptions class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.ImageWatermarkOptions class. Contains options that can be specified when adding a watermark with image"
type: docs
-weight: 620
+weight: 630
url: /nodejs-net/aspose.words/imagewatermarkoptions/
---
diff --git a/english/nodejs-net/Aspose.Words/importformatmode/_index.md b/english/nodejs-net/Aspose.Words/importformatmode/_index.md
index dd0cbd49de4..605f9662623 100644
--- a/english/nodejs-net/Aspose.Words/importformatmode/_index.md
+++ b/english/nodejs-net/Aspose.Words/importformatmode/_index.md
@@ -5,7 +5,7 @@ articleTitle: ImportFormatMode enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.ImportFormatMode enumeration. Specifies how formatting is merged when importing content from another document."
type: docs
-weight: 630
+weight: 640
url: /nodejs-net/aspose.words/importformatmode/
---
diff --git a/english/nodejs-net/Aspose.Words/importformatoptions/_index.md b/english/nodejs-net/Aspose.Words/importformatoptions/_index.md
index 7d949152d38..f43352f78eb 100644
--- a/english/nodejs-net/Aspose.Words/importformatoptions/_index.md
+++ b/english/nodejs-net/Aspose.Words/importformatoptions/_index.md
@@ -5,7 +5,7 @@ articleTitle: ImportFormatOptions class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.ImportFormatOptions class. Allows to specify various import options to format output"
type: docs
-weight: 640
+weight: 650
url: /nodejs-net/aspose.words/importformatoptions/
---
diff --git a/english/nodejs-net/Aspose.Words/importformatoptions/keepSourceNumbering/_index.md b/english/nodejs-net/Aspose.Words/importformatoptions/keepSourceNumbering/_index.md
index 84cb1d15ee3..0919e92cfbe 100644
--- a/english/nodejs-net/Aspose.Words/importformatoptions/keepSourceNumbering/_index.md
+++ b/english/nodejs-net/Aspose.Words/importformatoptions/keepSourceNumbering/_index.md
@@ -23,6 +23,43 @@ get keepSourceNumbering(): boolean
### Examples
+Shows how to import a document with numbered lists.
+
+```js
+const srcDoc = new aw.Document(base.myDir + "List source.docx");
+const dstDoc = new aw.Document(base.myDir + "List destination.docx");
+
+expect(dstDoc.lists.count).toEqual(4);
+
+const options = new aw.ImportFormatOptions();
+
+// If there is a clash of list styles, apply the list format of the source document.
+// Set the "KeepSourceNumbering" property to "false" to not import any list numbers into the destination document.
+// Set the "KeepSourceNumbering" property to "true" import all clashing
+// list style numbering with the same appearance that it had in the source document.
+options.keepSourceNumbering = isKeepSourceNumbering;
+
+dstDoc.appendDocument(srcDoc, aw.ImportFormatMode.KeepSourceFormatting, options);
+dstDoc.updateListLabels();
+
+expect(dstDoc.lists.count).toEqual(isKeepSourceNumbering ? 5 : 4);
+```
+
+Shows how resolve a clash when importing documents that have lists with the same list definition identifier.
+
+```js
+const srcDoc = new aw.Document(base.myDir + "List with the same definition identifier - source.docx");
+const dstDoc = new aw.Document(base.myDir + "List with the same definition identifier - destination.docx");
+
+// Set the "KeepSourceNumbering" property to "true" to apply a different list definition ID
+// to identical styles as Aspose.Words imports them into destination documents.
+const importFormatOptions = new aw.ImportFormatOptions();
+importFormatOptions.keepSourceNumbering = true;
+
+dstDoc.appendDocument(srcDoc, aw.ImportFormatMode.UseDestinationStyles, importFormatOptions);
+dstDoc.updateListLabels();
+```
+
Shows how to resolve list numbering clashes in source and destination documents.
```js
@@ -76,43 +113,6 @@ else
}
```
-Shows how to import a document with numbered lists.
-
-```js
-const srcDoc = new aw.Document(base.myDir + "List source.docx");
-const dstDoc = new aw.Document(base.myDir + "List destination.docx");
-
-expect(dstDoc.lists.count).toEqual(4);
-
-const options = new aw.ImportFormatOptions();
-
-// If there is a clash of list styles, apply the list format of the source document.
-// Set the "KeepSourceNumbering" property to "false" to not import any list numbers into the destination document.
-// Set the "KeepSourceNumbering" property to "true" import all clashing
-// list style numbering with the same appearance that it had in the source document.
-options.keepSourceNumbering = isKeepSourceNumbering;
-
-dstDoc.appendDocument(srcDoc, aw.ImportFormatMode.KeepSourceFormatting, options);
-dstDoc.updateListLabels();
-
-expect(dstDoc.lists.count).toEqual(isKeepSourceNumbering ? 5 : 4);
-```
-
-Shows how resolve a clash when importing documents that have lists with the same list definition identifier.
-
-```js
-const srcDoc = new aw.Document(base.myDir + "List with the same definition identifier - source.docx");
-const dstDoc = new aw.Document(base.myDir + "List with the same definition identifier - destination.docx");
-
-// Set the "KeepSourceNumbering" property to "true" to apply a different list definition ID
-// to identical styles as Aspose.Words imports them into destination documents.
-const importFormatOptions = new aw.ImportFormatOptions();
-importFormatOptions.keepSourceNumbering = true;
-
-dstDoc.appendDocument(srcDoc, aw.ImportFormatMode.UseDestinationStyles, importFormatOptions);
-dstDoc.updateListLabels();
-```
-
### See Also
* module [Aspose.Words](../../)
diff --git a/english/nodejs-net/Aspose.Words/inline/_index.md b/english/nodejs-net/Aspose.Words/inline/_index.md
index d30b2369567..641c678ef06 100644
--- a/english/nodejs-net/Aspose.Words/inline/_index.md
+++ b/english/nodejs-net/Aspose.Words/inline/_index.md
@@ -5,7 +5,7 @@ articleTitle: Inline class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Inline class. Base class for inline-level nodes that can have character formatting associated with them, but cannot have child nodes of their own"
type: docs
-weight: 650
+weight: 660
url: /nodejs-net/aspose.words/inline/
---
diff --git a/english/nodejs-net/Aspose.Words/inlinestory/_index.md b/english/nodejs-net/Aspose.Words/inlinestory/_index.md
index 8b3b02a06bf..09370d2261e 100644
--- a/english/nodejs-net/Aspose.Words/inlinestory/_index.md
+++ b/english/nodejs-net/Aspose.Words/inlinestory/_index.md
@@ -5,7 +5,7 @@ articleTitle: InlineStory class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.InlineStory class. Base class for inline-level nodes that can contain paragraphs and tables"
type: docs
-weight: 660
+weight: 670
url: /nodejs-net/aspose.words/inlinestory/
---
diff --git a/english/nodejs-net/Aspose.Words/inodechangingcallback/_index.md b/english/nodejs-net/Aspose.Words/inodechangingcallback/_index.md
index 24c738285fd..bf9d5af8c0d 100644
--- a/english/nodejs-net/Aspose.Words/inodechangingcallback/_index.md
+++ b/english/nodejs-net/Aspose.Words/inodechangingcallback/_index.md
@@ -5,7 +5,7 @@ articleTitle: INodeChangingCallback class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.INodeChangingCallback class. Implement this interface if you want to receive notifications when nodes are inserted or removed in the document."
type: docs
-weight: 600
+weight: 610
url: /nodejs-net/aspose.words/inodechangingcallback/
---
diff --git a/english/nodejs-net/Aspose.Words/internablecomplexattr/_index.md b/english/nodejs-net/Aspose.Words/internablecomplexattr/_index.md
index 7ab4a60b770..e7228329696 100644
--- a/english/nodejs-net/Aspose.Words/internablecomplexattr/_index.md
+++ b/english/nodejs-net/Aspose.Words/internablecomplexattr/_index.md
@@ -5,7 +5,7 @@ articleTitle: InternableComplexAttr class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.InternableComplexAttr class. Base class for internable complex attribute"
type: docs
-weight: 670
+weight: 680
url: /nodejs-net/aspose.words/internablecomplexattr/
---
diff --git a/english/nodejs-net/Aspose.Words/irevisioncriteria/_index.md b/english/nodejs-net/Aspose.Words/irevisioncriteria/_index.md
index 4a4f721908b..c38c5477fe4 100644
--- a/english/nodejs-net/Aspose.Words/irevisioncriteria/_index.md
+++ b/english/nodejs-net/Aspose.Words/irevisioncriteria/_index.md
@@ -5,7 +5,7 @@ articleTitle: IRevisionCriteria class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.IRevisionCriteria class. Implement this interface if you want to control when certain [Revision](../revision/) should be accepted/rejected or not by the [RevisionCollection.accept()](../revisioncollection/accept/#irevisioncriteria)/[RevisionCollection.reject()](../revisioncollection/reject/#irevisioncriteria) methods."
type: docs
-weight: 610
+weight: 620
url: /nodejs-net/aspose.words/irevisioncriteria/
---
diff --git a/english/nodejs-net/Aspose.Words/jsimage/_index.md b/english/nodejs-net/Aspose.Words/jsimage/_index.md
index af6a56f3e18..32ad4be67f0 100644
--- a/english/nodejs-net/Aspose.Words/jsimage/_index.md
+++ b/english/nodejs-net/Aspose.Words/jsimage/_index.md
@@ -5,7 +5,7 @@ articleTitle: JSImage class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.JSImage class. Represents pixel data for a graphics image and its attributes"
type: docs
-weight: 680
+weight: 690
url: /nodejs-net/aspose.words/jsimage/
---
diff --git a/english/nodejs-net/Aspose.Words/jspoint/_index.md b/english/nodejs-net/Aspose.Words/jspoint/_index.md
index 6399200ff5b..8eb171aebbf 100644
--- a/english/nodejs-net/Aspose.Words/jspoint/_index.md
+++ b/english/nodejs-net/Aspose.Words/jspoint/_index.md
@@ -5,7 +5,7 @@ articleTitle: JSPoint class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.JSPoint class. Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane."
type: docs
-weight: 690
+weight: 700
url: /nodejs-net/aspose.words/jspoint/
---
diff --git a/english/nodejs-net/Aspose.Words/jspointf/_index.md b/english/nodejs-net/Aspose.Words/jspointf/_index.md
index 8c24be8241b..baa63ac4d80 100644
--- a/english/nodejs-net/Aspose.Words/jspointf/_index.md
+++ b/english/nodejs-net/Aspose.Words/jspointf/_index.md
@@ -5,7 +5,7 @@ articleTitle: JSPointF class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.JSPointF class. Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane."
type: docs
-weight: 700
+weight: 710
url: /nodejs-net/aspose.words/jspointf/
---
diff --git a/english/nodejs-net/Aspose.Words/jsrectangle/_index.md b/english/nodejs-net/Aspose.Words/jsrectangle/_index.md
index 8f77e973fd7..a006b51e132 100644
--- a/english/nodejs-net/Aspose.Words/jsrectangle/_index.md
+++ b/english/nodejs-net/Aspose.Words/jsrectangle/_index.md
@@ -5,7 +5,7 @@ articleTitle: JSRectangle class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.JSRectangle class. Stores a set of four integers that represent the location and size of a rectangle."
type: docs
-weight: 710
+weight: 720
url: /nodejs-net/aspose.words/jsrectangle/
---
diff --git a/english/nodejs-net/Aspose.Words/jsrectanglef/_index.md b/english/nodejs-net/Aspose.Words/jsrectanglef/_index.md
index 2c4b94f6cfc..4d5bd0d1806 100644
--- a/english/nodejs-net/Aspose.Words/jsrectanglef/_index.md
+++ b/english/nodejs-net/Aspose.Words/jsrectanglef/_index.md
@@ -5,7 +5,7 @@ articleTitle: JSRectangleF class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.JSRectangleF class. Stores a set of four floating-point numbers that represent the location and size of a rectangle."
type: docs
-weight: 720
+weight: 730
url: /nodejs-net/aspose.words/jsrectanglef/
---
diff --git a/english/nodejs-net/Aspose.Words/jssize/_index.md b/english/nodejs-net/Aspose.Words/jssize/_index.md
index 4f542c69cdd..d2a0bdfd565 100644
--- a/english/nodejs-net/Aspose.Words/jssize/_index.md
+++ b/english/nodejs-net/Aspose.Words/jssize/_index.md
@@ -5,7 +5,7 @@ articleTitle: JSSize class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.JSSize class. Stores an ordered pair of integers, which specify a Height and Width."
type: docs
-weight: 730
+weight: 740
url: /nodejs-net/aspose.words/jssize/
---
diff --git a/english/nodejs-net/Aspose.Words/jssizef/_index.md b/english/nodejs-net/Aspose.Words/jssizef/_index.md
index 26534cdd318..3f346abb78a 100644
--- a/english/nodejs-net/Aspose.Words/jssizef/_index.md
+++ b/english/nodejs-net/Aspose.Words/jssizef/_index.md
@@ -5,7 +5,7 @@ articleTitle: JSSizeF class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.JSSizeF class. Stores an ordered pair of floating-point numbers, which specify a Height and Width."
type: docs
-weight: 740
+weight: 750
url: /nodejs-net/aspose.words/jssizef/
---
diff --git a/english/nodejs-net/Aspose.Words/license/_index.md b/english/nodejs-net/Aspose.Words/license/_index.md
index b51b899ac22..e9d94c66138 100644
--- a/english/nodejs-net/Aspose.Words/license/_index.md
+++ b/english/nodejs-net/Aspose.Words/license/_index.md
@@ -5,7 +5,7 @@ articleTitle: License class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.License class. Provides methods to license the component"
type: docs
-weight: 750
+weight: 760
url: /nodejs-net/aspose.words/license/
---
diff --git a/english/nodejs-net/Aspose.Words/linenumberrestartmode/_index.md b/english/nodejs-net/Aspose.Words/linenumberrestartmode/_index.md
index 0e655b111b4..593dac78e6c 100644
--- a/english/nodejs-net/Aspose.Words/linenumberrestartmode/_index.md
+++ b/english/nodejs-net/Aspose.Words/linenumberrestartmode/_index.md
@@ -5,7 +5,7 @@ articleTitle: LineNumberRestartMode enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.LineNumberRestartMode enumeration. Determines when automatic line numbering restarts."
type: docs
-weight: 760
+weight: 770
url: /nodejs-net/aspose.words/linenumberrestartmode/
---
diff --git a/english/nodejs-net/Aspose.Words/linespacingrule/_index.md b/english/nodejs-net/Aspose.Words/linespacingrule/_index.md
index 6f305a7f557..ec105751955 100644
--- a/english/nodejs-net/Aspose.Words/linespacingrule/_index.md
+++ b/english/nodejs-net/Aspose.Words/linespacingrule/_index.md
@@ -5,7 +5,7 @@ articleTitle: LineSpacingRule enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.LineSpacingRule enumeration. Specifies line spacing values for a paragraph."
type: docs
-weight: 770
+weight: 780
url: /nodejs-net/aspose.words/linespacingrule/
---
diff --git a/english/nodejs-net/Aspose.Words/linestyle/_index.md b/english/nodejs-net/Aspose.Words/linestyle/_index.md
index 8d65aac5ddc..cd57f7fc5a3 100644
--- a/english/nodejs-net/Aspose.Words/linestyle/_index.md
+++ b/english/nodejs-net/Aspose.Words/linestyle/_index.md
@@ -5,7 +5,7 @@ articleTitle: LineStyle enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.LineStyle enumeration. Specifies line style of a [Border](../border/)."
type: docs
-weight: 780
+weight: 790
url: /nodejs-net/aspose.words/linestyle/
---
diff --git a/english/nodejs-net/Aspose.Words/list/_index.md b/english/nodejs-net/Aspose.Words/list/_index.md
index ee8014e62a3..da9c17c1fca 100644
--- a/english/nodejs-net/Aspose.Words/list/_index.md
+++ b/english/nodejs-net/Aspose.Words/list/_index.md
@@ -5,7 +5,7 @@ articleTitle: List class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.List class. Represents formatting of a list"
type: docs
-weight: 790
+weight: 800
url: /nodejs-net/aspose.words/list/
---
diff --git a/english/nodejs-net/Aspose.Words/loadformat/_index.md b/english/nodejs-net/Aspose.Words/loadformat/_index.md
index 23758d6193b..39cec2f6988 100644
--- a/english/nodejs-net/Aspose.Words/loadformat/_index.md
+++ b/english/nodejs-net/Aspose.Words/loadformat/_index.md
@@ -5,7 +5,7 @@ articleTitle: LoadFormat enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.LoadFormat enumeration. Indicates the format of the document that is to be loaded."
type: docs
-weight: 800
+weight: 810
url: /nodejs-net/aspose.words/loadformat/
---
@@ -49,6 +49,22 @@ Indicates the format of the document that is to be loaded.
### Examples
+Shows how save a web page as a .docx file.
+
+```js
+const url = "https://products.aspose.com/words/";
+const response = await fetch(url);
+const blob = await response.blob();
+const arrayBuffer = await blob.arrayBuffer();
+const dataBytes = Buffer.from(arrayBuffer);
+
+let doc = new aw.Document(dataBytes);
+
+// At this stage, we can read and edit the document's contents and then save it to the local file system.
+
+doc.save(base.artifactsDir + "Document.LoadFromWeb.docx");
+```
+
Shows how to use the FileFormatUtil methods to detect the format of a document.
```js
@@ -69,22 +85,6 @@ expect(aw.FileFormatUtil.saveFormatToExtension(saveFormat)).toEqual(".doc");
doc.save(base.artifactsDir + "File.SaveToDetectedFileFormat" + aw.FileFormatUtil.saveFormatToExtension(saveFormat));
```
-Shows how save a web page as a .docx file.
-
-```js
-const url = "https://products.aspose.com/words/";
-const response = await fetch(url);
-const blob = await response.blob();
-const arrayBuffer = await blob.arrayBuffer();
-const dataBytes = Buffer.from(arrayBuffer);
-
-let doc = new aw.Document(dataBytes);
-
-// At this stage, we can read and edit the document's contents and then save it to the local file system.
-
-doc.save(base.artifactsDir + "Document.LoadFromWeb.docx");
-```
-
### See Also
* module [Aspose.Words](../)
diff --git a/english/nodejs-net/Aspose.Words/margins/_index.md b/english/nodejs-net/Aspose.Words/margins/_index.md
index fb7a258b025..9e1f60427a3 100644
--- a/english/nodejs-net/Aspose.Words/margins/_index.md
+++ b/english/nodejs-net/Aspose.Words/margins/_index.md
@@ -5,7 +5,7 @@ articleTitle: Margins enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Margins enumeration. Specifies preset margins."
type: docs
-weight: 810
+weight: 820
url: /nodejs-net/aspose.words/margins/
---
diff --git a/english/nodejs-net/Aspose.Words/measurementunits/_index.md b/english/nodejs-net/Aspose.Words/measurementunits/_index.md
index f3a91572f57..f9475a74143 100644
--- a/english/nodejs-net/Aspose.Words/measurementunits/_index.md
+++ b/english/nodejs-net/Aspose.Words/measurementunits/_index.md
@@ -5,7 +5,7 @@ articleTitle: MeasurementUnits enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.MeasurementUnits enumeration. Specifies the unit of measurement."
type: docs
-weight: 820
+weight: 830
url: /nodejs-net/aspose.words/measurementunits/
---
diff --git a/english/nodejs-net/Aspose.Words/node/_index.md b/english/nodejs-net/Aspose.Words/node/_index.md
index 471be9a7e7a..79a035a1172 100644
--- a/english/nodejs-net/Aspose.Words/node/_index.md
+++ b/english/nodejs-net/Aspose.Words/node/_index.md
@@ -5,7 +5,7 @@ articleTitle: Node class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Node class. Base class for all nodes of a Word document"
type: docs
-weight: 830
+weight: 840
url: /nodejs-net/aspose.words/node/
---
diff --git a/english/nodejs-net/Aspose.Words/node/getText/_index.md b/english/nodejs-net/Aspose.Words/node/getText/_index.md
index 8ca9c5e597d..b2f7d7bc34d 100644
--- a/english/nodejs-net/Aspose.Words/node/getText/_index.md
+++ b/english/nodejs-net/Aspose.Words/node/getText/_index.md
@@ -27,6 +27,28 @@ The returned string includes all control and special characters as described in
### Examples
+Shows how to use control characters.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+// Insert paragraphs with text with DocumentBuilder.
+builder.writeln("Hello world!");
+builder.writeln("Hello again!");
+
+// Converting the document to text form reveals that control characters
+// represent some of the document's structural elements, such as page breaks.
+expect(doc.getText()).toEqual(`Hello world!${aw.ControlChar.cr}` +
+ `Hello again!${aw.ControlChar.cr}` +
+ aw.ControlChar.pageBreak);
+
+// When converting a document to string form,
+// we can omit some of the control characters with the Trim method.
+expect(doc.getText().trim()).toEqual(`Hello world!${aw.ControlChar.cr}` +
+ "Hello again!");
+```
+
Shows how to construct an Aspose.words document by hand.
```js
@@ -72,28 +94,6 @@ expect(doc.getText().trim()).toEqual("Hello World!");
doc.save(base.artifactsDir + "Section.CreateManually.docx");
```
-Shows how to use control characters.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-// Insert paragraphs with text with DocumentBuilder.
-builder.writeln("Hello world!");
-builder.writeln("Hello again!");
-
-// Converting the document to text form reveals that control characters
-// represent some of the document's structural elements, such as page breaks.
-expect(doc.getText()).toEqual(`Hello world!${aw.ControlChar.cr}` +
- `Hello again!${aw.ControlChar.cr}` +
- aw.ControlChar.pageBreak);
-
-// When converting a document to string form,
-// we can omit some of the control characters with the Trim method.
-expect(doc.getText().trim()).toEqual(`Hello world!${aw.ControlChar.cr}` +
- "Hello again!");
-```
-
### See Also
* module [Aspose.Words](../../)
diff --git a/english/nodejs-net/Aspose.Words/node/remove/_index.md b/english/nodejs-net/Aspose.Words/node/remove/_index.md
index 2d3f3039a91..9b30cacf450 100644
--- a/english/nodejs-net/Aspose.Words/node/remove/_index.md
+++ b/english/nodejs-net/Aspose.Words/node/remove/_index.md
@@ -20,22 +20,6 @@ remove()
### Examples
-Shows how to delete all shapes with images from a document.
-
-```js
-let doc = new aw.Document(base.myDir + "Images.docx");
-let shapes = doc.getChildNodes(aw.NodeType.Shape, true).toArray().map(node => node.asShape());
-
-expect(shapes.filter(s => s.hasImage).length).toEqual(9);
-
-for (let shape of shapes)
- if (shape.hasImage)
- shape.remove();
-
-shapes = doc.getChildNodes(aw.NodeType.Shape, true).toArray().map(node => node.asShape());
-expect(shapes.filter(s => s.hasImage).length).toEqual(0);
-```
-
Shows how to remove all child nodes of a specific type from a composite node.
```js
@@ -61,6 +45,22 @@ while (curNode != null)
expect(doc.getChildNodes(aw.NodeType.Table, true).count).toEqual(0);
```
+Shows how to delete all shapes with images from a document.
+
+```js
+let doc = new aw.Document(base.myDir + "Images.docx");
+let shapes = doc.getChildNodes(aw.NodeType.Shape, true).toArray().map(node => node.asShape());
+
+expect(shapes.filter(s => s.hasImage).length).toEqual(9);
+
+for (let shape of shapes)
+ if (shape.hasImage)
+ shape.remove();
+
+shapes = doc.getChildNodes(aw.NodeType.Shape, true).toArray().map(node => node.asShape());
+expect(shapes.filter(s => s.hasImage).length).toEqual(0);
+```
+
### See Also
* module [Aspose.Words](../../)
diff --git a/english/nodejs-net/Aspose.Words/node/toString/_index.md b/english/nodejs-net/Aspose.Words/node/toString/_index.md
index f521849ac8f..2cafb1d2fa4 100644
--- a/english/nodejs-net/Aspose.Words/node/toString/_index.md
+++ b/english/nodejs-net/Aspose.Words/node/toString/_index.md
@@ -47,37 +47,6 @@ The content of the node in the specified format.
## Examples
-Shows how to extract the list labels of all paragraphs that are list items.
-
-```js
-let doc = new aw.Document(base.myDir + "Rendering.docx");
-doc.updateListLabels();
-
-let paras = doc.getChildNodes(aw.NodeType.Paragraph, true).toArray();
-
-// Find if we have the paragraph list. In our document, our list uses plain Arabic numbers,
-// which start at three and ends at six.
-for (let node of paras.filter(p => p.asParagraph().listFormat.isListItem))
-{
- let paragraph = node.asParagraph();
- console.log(`List item paragraph #${paras.indexOf(paragraph)}`);
-
- // This is the text we get when getting when we output this node to text format.
- // This text output will omit list labels. Trim any paragraph formatting characters.
- let paragraphText = paragraph.toString(aw.SaveFormat.Text).trim();
- console.log(`\tExported Text: ${paragraphText}`);
-
- let label = paragraph.listLabel;
-
- // This gets the position of the paragraph in the current level of the list. If we have a list with multiple levels,
- // this will tell us what position it is on that level.
- console.log(`\tNumerical Id: ${label.labelValue}`);
-
- // Combine them together to include the list label with the text in the output.
- console.log(`\tList label combined with text: ${label.labelString} ${paragraphText}`);
-}
-```
-
Exports the content of a node to String in HTML format.
```js
@@ -112,6 +81,37 @@ expect(doc.getText().trim()).toEqual("\u0013MERGEFIELD Field\u0014«Field»\u001
expect(doc.toString(aw.SaveFormat.Text).trim()).toEqual("«Field»");
```
+Shows how to extract the list labels of all paragraphs that are list items.
+
+```js
+let doc = new aw.Document(base.myDir + "Rendering.docx");
+doc.updateListLabels();
+
+let paras = doc.getChildNodes(aw.NodeType.Paragraph, true).toArray();
+
+// Find if we have the paragraph list. In our document, our list uses plain Arabic numbers,
+// which start at three and ends at six.
+for (let node of paras.filter(p => p.asParagraph().listFormat.isListItem))
+{
+ let paragraph = node.asParagraph();
+ console.log(`List item paragraph #${paras.indexOf(paragraph)}`);
+
+ // This is the text we get when getting when we output this node to text format.
+ // This text output will omit list labels. Trim any paragraph formatting characters.
+ let paragraphText = paragraph.toString(aw.SaveFormat.Text).trim();
+ console.log(`\tExported Text: ${paragraphText}`);
+
+ let label = paragraph.listLabel;
+
+ // This gets the position of the paragraph in the current level of the list. If we have a list with multiple levels,
+ // this will tell us what position it is on that level.
+ console.log(`\tNumerical Id: ${label.labelValue}`);
+
+ // Combine them together to include the list label with the text in the output.
+ console.log(`\tList label combined with text: ${label.labelString} ${paragraphText}`);
+}
+```
+
## See Also
* module [Aspose.Words](../../)
diff --git a/english/nodejs-net/Aspose.Words/nodechangingaction/_index.md b/english/nodejs-net/Aspose.Words/nodechangingaction/_index.md
index 0755c3db1b9..3ecf8fefcc4 100644
--- a/english/nodejs-net/Aspose.Words/nodechangingaction/_index.md
+++ b/english/nodejs-net/Aspose.Words/nodechangingaction/_index.md
@@ -5,7 +5,7 @@ articleTitle: NodeChangingAction enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.NodeChangingAction enumeration. Specifies the type of node change."
type: docs
-weight: 840
+weight: 850
url: /nodejs-net/aspose.words/nodechangingaction/
---
diff --git a/english/nodejs-net/Aspose.Words/nodechangingargs/_index.md b/english/nodejs-net/Aspose.Words/nodechangingargs/_index.md
index 49388e0440b..11a0e22efdd 100644
--- a/english/nodejs-net/Aspose.Words/nodechangingargs/_index.md
+++ b/english/nodejs-net/Aspose.Words/nodechangingargs/_index.md
@@ -5,7 +5,7 @@ articleTitle: NodeChangingArgs class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.NodeChangingArgs class. Provides data for methods of the [INodeChangingCallback](../inodechangingcallback/) interface."
type: docs
-weight: 850
+weight: 860
url: /nodejs-net/aspose.words/nodechangingargs/
---
diff --git a/english/nodejs-net/Aspose.Words/nodecollection/_index.md b/english/nodejs-net/Aspose.Words/nodecollection/_index.md
index 06c70bde93d..740fdd02e64 100644
--- a/english/nodejs-net/Aspose.Words/nodecollection/_index.md
+++ b/english/nodejs-net/Aspose.Words/nodecollection/_index.md
@@ -5,7 +5,7 @@ articleTitle: NodeCollection class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.NodeCollection class. Represents a collection of nodes of a specific type"
type: docs
-weight: 860
+weight: 870
url: /nodejs-net/aspose.words/nodecollection/
---
diff --git a/english/nodejs-net/Aspose.Words/nodeimporter/_index.md b/english/nodejs-net/Aspose.Words/nodeimporter/_index.md
index 0d4b343ddbd..80132be09ee 100644
--- a/english/nodejs-net/Aspose.Words/nodeimporter/_index.md
+++ b/english/nodejs-net/Aspose.Words/nodeimporter/_index.md
@@ -5,7 +5,7 @@ articleTitle: NodeImporter class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.NodeImporter class. Allows to efficiently perform repeated import of nodes from one document to another"
type: docs
-weight: 870
+weight: 880
url: /nodejs-net/aspose.words/nodeimporter/
---
diff --git a/english/nodejs-net/Aspose.Words/nodelist/_index.md b/english/nodejs-net/Aspose.Words/nodelist/_index.md
index 6dfb61f4aa1..5ca7057031e 100644
--- a/english/nodejs-net/Aspose.Words/nodelist/_index.md
+++ b/english/nodejs-net/Aspose.Words/nodelist/_index.md
@@ -5,7 +5,7 @@ articleTitle: NodeList class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.NodeList class. Represents a collection of nodes matching an XPath query executed using the [CompositeNode.selectNodes()](../compositenode/selectNodes/#string) method"
type: docs
-weight: 880
+weight: 890
url: /nodejs-net/aspose.words/nodelist/
---
diff --git a/english/nodejs-net/Aspose.Words/nodetype/_index.md b/english/nodejs-net/Aspose.Words/nodetype/_index.md
index bc4cc90ce1e..a3d039307de 100644
--- a/english/nodejs-net/Aspose.Words/nodetype/_index.md
+++ b/english/nodejs-net/Aspose.Words/nodetype/_index.md
@@ -5,7 +5,7 @@ articleTitle: NodeType enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.NodeType enumeration. Specifies the type of a Word document node."
type: docs
-weight: 890
+weight: 900
url: /nodejs-net/aspose.words/nodetype/
---
diff --git a/english/nodejs-net/Aspose.Words/numberstyle/_index.md b/english/nodejs-net/Aspose.Words/numberstyle/_index.md
index 47171ed6418..229b3e64ad3 100644
--- a/english/nodejs-net/Aspose.Words/numberstyle/_index.md
+++ b/english/nodejs-net/Aspose.Words/numberstyle/_index.md
@@ -5,7 +5,7 @@ articleTitle: NumberStyle enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.NumberStyle enumeration. Specifies the number style for a list, footnotes and endnotes, page numbers."
type: docs
-weight: 910
+weight: 920
url: /nodejs-net/aspose.words/numberstyle/
---
diff --git a/english/nodejs-net/Aspose.Words/numspacing/_index.md b/english/nodejs-net/Aspose.Words/numspacing/_index.md
index 1fd555e7ba0..4948759561b 100644
--- a/english/nodejs-net/Aspose.Words/numspacing/_index.md
+++ b/english/nodejs-net/Aspose.Words/numspacing/_index.md
@@ -5,7 +5,7 @@ articleTitle: NumSpacing enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.NumSpacing enumeration. Specifies possible values in which numeral spacing can be displayed."
type: docs
-weight: 900
+weight: 910
url: /nodejs-net/aspose.words/numspacing/
---
diff --git a/english/nodejs-net/Aspose.Words/orientation/_index.md b/english/nodejs-net/Aspose.Words/orientation/_index.md
index 9132b016fd2..27be8ff0548 100644
--- a/english/nodejs-net/Aspose.Words/orientation/_index.md
+++ b/english/nodejs-net/Aspose.Words/orientation/_index.md
@@ -5,7 +5,7 @@ articleTitle: Orientation enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Orientation enumeration. Specifies page orientation."
type: docs
-weight: 920
+weight: 930
url: /nodejs-net/aspose.words/orientation/
---
diff --git a/english/nodejs-net/Aspose.Words/outlinelevel/_index.md b/english/nodejs-net/Aspose.Words/outlinelevel/_index.md
index 7fc065c2df7..6caebbdc63a 100644
--- a/english/nodejs-net/Aspose.Words/outlinelevel/_index.md
+++ b/english/nodejs-net/Aspose.Words/outlinelevel/_index.md
@@ -5,7 +5,7 @@ articleTitle: OutlineLevel enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.OutlineLevel enumeration. Specifies the outline level of a paragraph in the document."
type: docs
-weight: 930
+weight: 940
url: /nodejs-net/aspose.words/outlinelevel/
---
diff --git a/english/nodejs-net/Aspose.Words/pageborderappliesto/_index.md b/english/nodejs-net/Aspose.Words/pageborderappliesto/_index.md
index f3bcc185a38..38394b3bd9d 100644
--- a/english/nodejs-net/Aspose.Words/pageborderappliesto/_index.md
+++ b/english/nodejs-net/Aspose.Words/pageborderappliesto/_index.md
@@ -5,7 +5,7 @@ articleTitle: PageBorderAppliesTo enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.PageBorderAppliesTo enumeration. Specifies which pages the page border is printed on."
type: docs
-weight: 940
+weight: 950
url: /nodejs-net/aspose.words/pageborderappliesto/
---
diff --git a/english/nodejs-net/Aspose.Words/pageborderdistancefrom/_index.md b/english/nodejs-net/Aspose.Words/pageborderdistancefrom/_index.md
index 21135af5217..6a0a48d1abb 100644
--- a/english/nodejs-net/Aspose.Words/pageborderdistancefrom/_index.md
+++ b/english/nodejs-net/Aspose.Words/pageborderdistancefrom/_index.md
@@ -5,7 +5,7 @@ articleTitle: PageBorderDistanceFrom enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.PageBorderDistanceFrom enumeration. Specifies the positioning of the page border relative to the page margin."
type: docs
-weight: 950
+weight: 960
url: /nodejs-net/aspose.words/pageborderdistancefrom/
---
diff --git a/english/nodejs-net/Aspose.Words/pageextractoptions/_index.md b/english/nodejs-net/Aspose.Words/pageextractoptions/_index.md
index 5bf65986bbd..7a384c838e5 100644
--- a/english/nodejs-net/Aspose.Words/pageextractoptions/_index.md
+++ b/english/nodejs-net/Aspose.Words/pageextractoptions/_index.md
@@ -5,7 +5,7 @@ articleTitle: PageExtractOptions class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.PageExtractOptions class. Allows to specify options for document page extracting."
type: docs
-weight: 960
+weight: 970
url: /nodejs-net/aspose.words/pageextractoptions/
---
diff --git a/english/nodejs-net/Aspose.Words/pagesetup/_index.md b/english/nodejs-net/Aspose.Words/pagesetup/_index.md
index 64f25ec30c2..1d82131076a 100644
--- a/english/nodejs-net/Aspose.Words/pagesetup/_index.md
+++ b/english/nodejs-net/Aspose.Words/pagesetup/_index.md
@@ -5,7 +5,7 @@ articleTitle: PageSetup class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.PageSetup class. Represents the page setup properties of a section"
type: docs
-weight: 970
+weight: 980
url: /nodejs-net/aspose.words/pagesetup/
---
diff --git a/english/nodejs-net/Aspose.Words/pagesetup/differentFirstPageHeaderFooter/_index.md b/english/nodejs-net/Aspose.Words/pagesetup/differentFirstPageHeaderFooter/_index.md
index b3670c79601..9bdf8af3d8b 100644
--- a/english/nodejs-net/Aspose.Words/pagesetup/differentFirstPageHeaderFooter/_index.md
+++ b/english/nodejs-net/Aspose.Words/pagesetup/differentFirstPageHeaderFooter/_index.md
@@ -20,46 +20,43 @@ get differentFirstPageHeaderFooter(): boolean
### Examples
-Shows how to track the order in which a text replacement operation traverses nodes.
+Shows how to enable or disable primary headers/footers.
```js
-test.each([false,
- true])('Order', (differentFirstPageHeaderFooter) => {
- let doc = new aw.Document(base.myDir + "Header and footer types.docx");
-
- let firstPageSection = doc.firstSection;
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
- let logger = new ReplaceLog();
- let options = new aw.Replacing.FindReplaceOptions(logger);
+// Below are two types of header/footers.
+// 1 - The "First" header/footer, which appears on the first page of the section.
+builder.moveToHeaderFooter(aw.HeaderFooterType.HeaderFirst);
+builder.writeln("First page header.");
- // Using a different header/footer for the first page will affect the search order.
- firstPageSection.pageSetup.differentFirstPageHeaderFooter = differentFirstPageHeaderFooter;
- doc.range.replace(new Regex("(header|footer)"), "", options);
+builder.moveToHeaderFooter(aw.HeaderFooterType.FooterFirst);
+builder.writeln("First page footer.");
- if (differentFirstPageHeaderFooter)
- expect(logger.text.replace("\r", "")).toEqual("First header\nFirst footer\nSecond header\nSecond footer\nThird header\nThird footer\n");
- else
- expect(logger.text.replace("\r", "")).toEqual("Third header\nFirst header\nThird footer\nFirst footer\nSecond header\nSecond footer\n");
-});
+// 2 - The "Primary" header/footer, which appears on every page in the section.
+// We can override the primary header/footer by a first and an even page header/footer.
+builder.moveToHeaderFooter(aw.HeaderFooterType.HeaderPrimary);
+builder.writeln("Primary header.");
+builder.moveToHeaderFooter(aw.HeaderFooterType.FooterPrimary);
+builder.writeln("Primary footer.");
- ///
- /// During a find-and-replace operation, records the contents of every node that has text that the operation 'finds',
- /// in the state it is in before the replacement takes place.
- /// This will display the order in which the text replacement operation traverses nodes.
- ///
-private class ReplaceLog : IReplacingCallback
-{
- public ReplaceAction Replacing(ReplacingArgs args)
- {
- mTextBuilder.AppendLine(args.matchNode.getText());
- return aw.Replacing.ReplaceAction.Skip;
- }
+builder.moveToSection(0);
+builder.writeln("Page 1.");
+builder.insertBreak(aw.BreakType.PageBreak);
+builder.writeln("Page 2.");
+builder.insertBreak(aw.BreakType.PageBreak);
+builder.writeln("Page 3.");
- internal string Text => mTextBuilder.toString();
+// Each section has a "PageSetup" object that specifies page appearance-related properties
+// such as orientation, size, and borders.
+// Set the "DifferentFirstPageHeaderFooter" property to "true" to apply the first header/footer to the first page.
+// Set the "DifferentFirstPageHeaderFooter" property to "false"
+// to make the first page display the primary header/footer.
+builder.pageSetup.differentFirstPageHeaderFooter = differentFirstPageHeaderFooter;
- private readonly StringBuilder mTextBuilder = new StringBuilder();
-}
+doc.save(base.artifactsDir + "PageSetup.differentFirstPageHeaderFooter.docx");
```
Shows how to create headers and footers in a document using DocumentBuilder.
@@ -90,43 +87,46 @@ builder.writeln("Page3");
doc.save(base.artifactsDir + "DocumentBuilder.HeadersAndFooters.docx");
```
-Shows how to enable or disable primary headers/footers.
+Shows how to track the order in which a text replacement operation traverses nodes.
```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
+test.each([false,
+ true])('Order', (differentFirstPageHeaderFooter) => {
+ let doc = new aw.Document(base.myDir + "Header and footer types.docx");
-// Below are two types of header/footers.
-// 1 - The "First" header/footer, which appears on the first page of the section.
-builder.moveToHeaderFooter(aw.HeaderFooterType.HeaderFirst);
-builder.writeln("First page header.");
+ let firstPageSection = doc.firstSection;
-builder.moveToHeaderFooter(aw.HeaderFooterType.FooterFirst);
-builder.writeln("First page footer.");
+ let logger = new ReplaceLog();
+ let options = new aw.Replacing.FindReplaceOptions(logger);
-// 2 - The "Primary" header/footer, which appears on every page in the section.
-// We can override the primary header/footer by a first and an even page header/footer.
-builder.moveToHeaderFooter(aw.HeaderFooterType.HeaderPrimary);
-builder.writeln("Primary header.");
+ // Using a different header/footer for the first page will affect the search order.
+ firstPageSection.pageSetup.differentFirstPageHeaderFooter = differentFirstPageHeaderFooter;
+ doc.range.replace(new Regex("(header|footer)"), "", options);
-builder.moveToHeaderFooter(aw.HeaderFooterType.FooterPrimary);
-builder.writeln("Primary footer.");
+ if (differentFirstPageHeaderFooter)
+ expect(logger.text.replace("\r", "")).toEqual("First header\nFirst footer\nSecond header\nSecond footer\nThird header\nThird footer\n");
+ else
+ expect(logger.text.replace("\r", "")).toEqual("Third header\nFirst header\nThird footer\nFirst footer\nSecond header\nSecond footer\n");
+});
-builder.moveToSection(0);
-builder.writeln("Page 1.");
-builder.insertBreak(aw.BreakType.PageBreak);
-builder.writeln("Page 2.");
-builder.insertBreak(aw.BreakType.PageBreak);
-builder.writeln("Page 3.");
-// Each section has a "PageSetup" object that specifies page appearance-related properties
-// such as orientation, size, and borders.
-// Set the "DifferentFirstPageHeaderFooter" property to "true" to apply the first header/footer to the first page.
-// Set the "DifferentFirstPageHeaderFooter" property to "false"
-// to make the first page display the primary header/footer.
-builder.pageSetup.differentFirstPageHeaderFooter = differentFirstPageHeaderFooter;
+ ///
+ /// During a find-and-replace operation, records the contents of every node that has text that the operation 'finds',
+ /// in the state it is in before the replacement takes place.
+ /// This will display the order in which the text replacement operation traverses nodes.
+ ///
+private class ReplaceLog : IReplacingCallback
+{
+ public ReplaceAction Replacing(ReplacingArgs args)
+ {
+ mTextBuilder.AppendLine(args.matchNode.getText());
+ return aw.Replacing.ReplaceAction.Skip;
+ }
-doc.save(base.artifactsDir + "PageSetup.differentFirstPageHeaderFooter.docx");
+ internal string Text => mTextBuilder.toString();
+
+ private readonly StringBuilder mTextBuilder = new StringBuilder();
+}
```
### See Also
diff --git a/english/nodejs-net/Aspose.Words/pagesetup/oddAndEvenPagesHeaderFooter/_index.md b/english/nodejs-net/Aspose.Words/pagesetup/oddAndEvenPagesHeaderFooter/_index.md
index fe089a38e76..eb05662f3c8 100644
--- a/english/nodejs-net/Aspose.Words/pagesetup/oddAndEvenPagesHeaderFooter/_index.md
+++ b/english/nodejs-net/Aspose.Words/pagesetup/oddAndEvenPagesHeaderFooter/_index.md
@@ -25,34 +25,6 @@ Note, changing this property affects all sections in the document.
### Examples
-Shows how to create headers and footers in a document using DocumentBuilder.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-// Specify that we want different headers and footers for first, even and odd pages.
-builder.pageSetup.differentFirstPageHeaderFooter = true;
-builder.pageSetup.oddAndEvenPagesHeaderFooter = true;
-
-// Create the headers, then add three pages to the document to display each header type.
-builder.moveToHeaderFooter(aw.HeaderFooterType.HeaderFirst);
-builder.write("Header for the first page");
-builder.moveToHeaderFooter(aw.HeaderFooterType.HeaderEven);
-builder.write("Header for even pages");
-builder.moveToHeaderFooter(aw.HeaderFooterType.HeaderPrimary);
-builder.write("Header for all other pages");
-
-builder.moveToSection(0);
-builder.writeln("Page1");
-builder.insertBreak(aw.BreakType.PageBreak);
-builder.writeln("Page2");
-builder.insertBreak(aw.BreakType.PageBreak);
-builder.writeln("Page3");
-
-doc.save(base.artifactsDir + "DocumentBuilder.HeadersAndFooters.docx");
-```
-
Shows how to enable or disable even page headers/footers.
```js
@@ -93,6 +65,34 @@ builder.pageSetup.oddAndEvenPagesHeaderFooter = oddAndEvenPagesHeaderFooter;
doc.save(base.artifactsDir + "PageSetup.oddAndEvenPagesHeaderFooter.docx");
```
+Shows how to create headers and footers in a document using DocumentBuilder.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+// Specify that we want different headers and footers for first, even and odd pages.
+builder.pageSetup.differentFirstPageHeaderFooter = true;
+builder.pageSetup.oddAndEvenPagesHeaderFooter = true;
+
+// Create the headers, then add three pages to the document to display each header type.
+builder.moveToHeaderFooter(aw.HeaderFooterType.HeaderFirst);
+builder.write("Header for the first page");
+builder.moveToHeaderFooter(aw.HeaderFooterType.HeaderEven);
+builder.write("Header for even pages");
+builder.moveToHeaderFooter(aw.HeaderFooterType.HeaderPrimary);
+builder.write("Header for all other pages");
+
+builder.moveToSection(0);
+builder.writeln("Page1");
+builder.insertBreak(aw.BreakType.PageBreak);
+builder.writeln("Page2");
+builder.insertBreak(aw.BreakType.PageBreak);
+builder.writeln("Page3");
+
+doc.save(base.artifactsDir + "DocumentBuilder.HeadersAndFooters.docx");
+```
+
### See Also
* module [Aspose.Words](../../)
diff --git a/english/nodejs-net/Aspose.Words/pageverticalalignment/_index.md b/english/nodejs-net/Aspose.Words/pageverticalalignment/_index.md
index b74b29825c0..8bd9fdbdab6 100644
--- a/english/nodejs-net/Aspose.Words/pageverticalalignment/_index.md
+++ b/english/nodejs-net/Aspose.Words/pageverticalalignment/_index.md
@@ -5,7 +5,7 @@ articleTitle: PageVerticalAlignment enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.PageVerticalAlignment enumeration. Specifies vertical justification of text on each page."
type: docs
-weight: 980
+weight: 990
url: /nodejs-net/aspose.words/pageverticalalignment/
---
diff --git a/english/nodejs-net/Aspose.Words/papersize/_index.md b/english/nodejs-net/Aspose.Words/papersize/_index.md
index 9d8ce3aa25c..0d5f455d2fe 100644
--- a/english/nodejs-net/Aspose.Words/papersize/_index.md
+++ b/english/nodejs-net/Aspose.Words/papersize/_index.md
@@ -5,7 +5,7 @@ articleTitle: PaperSize enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.PaperSize enumeration. Specifies paper size."
type: docs
-weight: 990
+weight: 1000
url: /nodejs-net/aspose.words/papersize/
---
diff --git a/english/nodejs-net/Aspose.Words/paragraph/_index.md b/english/nodejs-net/Aspose.Words/paragraph/_index.md
index 9b1cb39a775..074afd9ecbc 100644
--- a/english/nodejs-net/Aspose.Words/paragraph/_index.md
+++ b/english/nodejs-net/Aspose.Words/paragraph/_index.md
@@ -5,7 +5,7 @@ articleTitle: Paragraph class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Paragraph class. Represents a paragraph of text"
type: docs
-weight: 1000
+weight: 1010
url: /nodejs-net/aspose.words/paragraph/
---
diff --git a/english/nodejs-net/Aspose.Words/paragraphalignment/_index.md b/english/nodejs-net/Aspose.Words/paragraphalignment/_index.md
index 51e8d50bd36..722be12d2e3 100644
--- a/english/nodejs-net/Aspose.Words/paragraphalignment/_index.md
+++ b/english/nodejs-net/Aspose.Words/paragraphalignment/_index.md
@@ -5,7 +5,7 @@ articleTitle: ParagraphAlignment enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.ParagraphAlignment enumeration. Specifies text alignment in a paragraph."
type: docs
-weight: 1010
+weight: 1020
url: /nodejs-net/aspose.words/paragraphalignment/
---
diff --git a/english/nodejs-net/Aspose.Words/paragraphcollection/_index.md b/english/nodejs-net/Aspose.Words/paragraphcollection/_index.md
index 803d0f7facc..25cb55fdf57 100644
--- a/english/nodejs-net/Aspose.Words/paragraphcollection/_index.md
+++ b/english/nodejs-net/Aspose.Words/paragraphcollection/_index.md
@@ -5,7 +5,7 @@ articleTitle: ParagraphCollection class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.ParagraphCollection class. Provides typed access to a collection of [Paragraph](../paragraph/) nodes"
type: docs
-weight: 1020
+weight: 1030
url: /nodejs-net/aspose.words/paragraphcollection/
---
diff --git a/english/nodejs-net/Aspose.Words/paragraphformat/_index.md b/english/nodejs-net/Aspose.Words/paragraphformat/_index.md
index 077753f198c..e8287acad0f 100644
--- a/english/nodejs-net/Aspose.Words/paragraphformat/_index.md
+++ b/english/nodejs-net/Aspose.Words/paragraphformat/_index.md
@@ -5,7 +5,7 @@ articleTitle: ParagraphFormat class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.ParagraphFormat class. Represents all the formatting for a paragraph"
type: docs
-weight: 1030
+weight: 1040
url: /nodejs-net/aspose.words/paragraphformat/
---
diff --git a/english/nodejs-net/Aspose.Words/paragraphformat/alignment/_index.md b/english/nodejs-net/Aspose.Words/paragraphformat/alignment/_index.md
index af60f381a4c..cf2584a33aa 100644
--- a/english/nodejs-net/Aspose.Words/paragraphformat/alignment/_index.md
+++ b/english/nodejs-net/Aspose.Words/paragraphformat/alignment/_index.md
@@ -20,33 +20,6 @@ get alignment(): Aspose.Words.ParagraphAlignment
### Examples
-Shows how to insert a paragraph into the document.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-let font = builder.font;
-font.size = 16;
-font.bold = true;
-font.color = "#0000FF";
-font.name = "Arial";
-font.underline = aw.Underline.Dash;
-
-let paragraphFormat = builder.paragraphFormat;
-paragraphFormat.firstLineIndent = 8;
-paragraphFormat.alignment = aw.ParagraphAlignment.Justify;
-paragraphFormat.addSpaceBetweenFarEastAndAlpha = true;
-paragraphFormat.addSpaceBetweenFarEastAndDigit = true;
-paragraphFormat.keepTogether = true;
-
-// The "Writeln" method ends the paragraph after appending text
-// and then starts a new line, adding a new paragraph.
-builder.writeln("Hello world!");
-
-expect(builder.currentParagraph.isEndOfDocument).toEqual(true);
-```
-
Shows how to construct an Aspose.words document by hand.
```js
@@ -92,6 +65,33 @@ expect(doc.getText().trim()).toEqual("Hello World!");
doc.save(base.artifactsDir + "Section.CreateManually.docx");
```
+Shows how to insert a paragraph into the document.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+let font = builder.font;
+font.size = 16;
+font.bold = true;
+font.color = "#0000FF";
+font.name = "Arial";
+font.underline = aw.Underline.Dash;
+
+let paragraphFormat = builder.paragraphFormat;
+paragraphFormat.firstLineIndent = 8;
+paragraphFormat.alignment = aw.ParagraphAlignment.Justify;
+paragraphFormat.addSpaceBetweenFarEastAndAlpha = true;
+paragraphFormat.addSpaceBetweenFarEastAndDigit = true;
+paragraphFormat.keepTogether = true;
+
+// The "Writeln" method ends the paragraph after appending text
+// and then starts a new line, adding a new paragraph.
+builder.writeln("Hello world!");
+
+expect(builder.currentParagraph.isEndOfDocument).toEqual(true);
+```
+
### See Also
* module [Aspose.Words](../../)
diff --git a/english/nodejs-net/Aspose.Words/phoneticguide/_index.md b/english/nodejs-net/Aspose.Words/phoneticguide/_index.md
index 2825eae074f..a8214e92887 100644
--- a/english/nodejs-net/Aspose.Words/phoneticguide/_index.md
+++ b/english/nodejs-net/Aspose.Words/phoneticguide/_index.md
@@ -5,7 +5,7 @@ articleTitle: PhoneticGuide class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.PhoneticGuide class. Represents Phonetic Guide."
type: docs
-weight: 1040
+weight: 1050
url: /nodejs-net/aspose.words/phoneticguide/
---
diff --git a/english/nodejs-net/Aspose.Words/plaintextdocument/_index.md b/english/nodejs-net/Aspose.Words/plaintextdocument/_index.md
index c95208df599..32a8b4c11ff 100644
--- a/english/nodejs-net/Aspose.Words/plaintextdocument/_index.md
+++ b/english/nodejs-net/Aspose.Words/plaintextdocument/_index.md
@@ -5,7 +5,7 @@ articleTitle: PlainTextDocument class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.PlainTextDocument class. Allows to extract plain-text representation of the document's content"
type: docs
-weight: 1050
+weight: 1060
url: /nodejs-net/aspose.words/plaintextdocument/
---
diff --git a/english/nodejs-net/Aspose.Words/protectiontype/_index.md b/english/nodejs-net/Aspose.Words/protectiontype/_index.md
index 7dcf4d69f75..7c58067d492 100644
--- a/english/nodejs-net/Aspose.Words/protectiontype/_index.md
+++ b/english/nodejs-net/Aspose.Words/protectiontype/_index.md
@@ -5,7 +5,7 @@ articleTitle: ProtectionType enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.ProtectionType enumeration. Protection type for a document."
type: docs
-weight: 1060
+weight: 1070
url: /nodejs-net/aspose.words/protectiontype/
---
diff --git a/english/nodejs-net/Aspose.Words/range/_index.md b/english/nodejs-net/Aspose.Words/range/_index.md
index caf42567d20..62281d9b8a7 100644
--- a/english/nodejs-net/Aspose.Words/range/_index.md
+++ b/english/nodejs-net/Aspose.Words/range/_index.md
@@ -5,7 +5,7 @@ articleTitle: Range class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Range class. Represents a contiguous area in a document"
type: docs
-weight: 1070
+weight: 1080
url: /nodejs-net/aspose.words/range/
---
diff --git a/english/nodejs-net/Aspose.Words/range/replace/_index.md b/english/nodejs-net/Aspose.Words/range/replace/_index.md
index b9c37ff70c7..c92a2685e18 100644
--- a/english/nodejs-net/Aspose.Words/range/replace/_index.md
+++ b/english/nodejs-net/Aspose.Words/range/replace/_index.md
@@ -147,6 +147,38 @@ expect(doc.getText().trim()).toEqual("Every paragraph that ends with a full stop
"This one also will!");
```
+Shows how to replace all instances of String of text in a table and cell.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+let table = builder.startTable();
+builder.insertCell();
+builder.write("Carrots");
+builder.insertCell();
+builder.write("50");
+builder.endRow();
+builder.insertCell();
+builder.write("Potatoes");
+builder.insertCell();
+builder.write("50");
+builder.endTable();
+
+let options = new aw.Replacing.FindReplaceOptions();
+options.matchCase = true;
+options.findWholeWordsOnly = true;
+
+// Perform a find-and-replace operation on an entire table.
+table.range.replace("Carrots", "Eggs", options);
+
+// Perform a find-and-replace operation on the last cell of the last row of the table.
+table.lastRow.lastCell.range.replace("50", "20", options);
+
+expect(table.getText().trim()).toEqual("Eggs\u000750\u0007\u0007" +
+ "Potatoes\u000720\u0007\u0007");
+```
+
Shows how to toggle case sensitivity when performing a find-and-replace operation.
```js
@@ -188,38 +220,6 @@ expect(doc.getText().trim()).toEqual(
findWholeWordsOnly ? "Louis will meet you in Jacksonville." : "Louis will meet you in Louisville." );
```
-Shows how to replace all instances of String of text in a table and cell.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-let table = builder.startTable();
-builder.insertCell();
-builder.write("Carrots");
-builder.insertCell();
-builder.write("50");
-builder.endRow();
-builder.insertCell();
-builder.write("Potatoes");
-builder.insertCell();
-builder.write("50");
-builder.endTable();
-
-let options = new aw.Replacing.FindReplaceOptions();
-options.matchCase = true;
-options.findWholeWordsOnly = true;
-
-// Perform a find-and-replace operation on an entire table.
-table.range.replace("Carrots", "Eggs", options);
-
-// Perform a find-and-replace operation on the last cell of the last row of the table.
-table.lastRow.lastCell.range.replace("50", "20", options);
-
-expect(table.getText().trim()).toEqual("Eggs\u000750\u0007\u0007" +
- "Potatoes\u000720\u0007\u0007");
-```
-
Shows how to replace text in a document's footer.
```js
diff --git a/english/nodejs-net/Aspose.Words/revision/_index.md b/english/nodejs-net/Aspose.Words/revision/_index.md
index d1ea1d8df07..e3a3ab9d51f 100644
--- a/english/nodejs-net/Aspose.Words/revision/_index.md
+++ b/english/nodejs-net/Aspose.Words/revision/_index.md
@@ -5,7 +5,7 @@ articleTitle: Revision class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Revision class. Represents a revision (tracked change) in a document node or style"
type: docs
-weight: 1080
+weight: 1090
url: /nodejs-net/aspose.words/revision/
---
diff --git a/english/nodejs-net/Aspose.Words/revisioncollection/_index.md b/english/nodejs-net/Aspose.Words/revisioncollection/_index.md
index 772a47b1717..5f50a9729fb 100644
--- a/english/nodejs-net/Aspose.Words/revisioncollection/_index.md
+++ b/english/nodejs-net/Aspose.Words/revisioncollection/_index.md
@@ -5,7 +5,7 @@ articleTitle: RevisionCollection class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.RevisionCollection class. A collection of [Revision](../revision/) objects that represent revisions in the document"
type: docs
-weight: 1090
+weight: 1100
url: /nodejs-net/aspose.words/revisioncollection/
---
diff --git a/english/nodejs-net/Aspose.Words/revisiongroup/_index.md b/english/nodejs-net/Aspose.Words/revisiongroup/_index.md
index 31936e54f0e..3abaf25ae3e 100644
--- a/english/nodejs-net/Aspose.Words/revisiongroup/_index.md
+++ b/english/nodejs-net/Aspose.Words/revisiongroup/_index.md
@@ -5,7 +5,7 @@ articleTitle: RevisionGroup class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.RevisionGroup class. Represents a group of sequential [Revision](../revision/) objects"
type: docs
-weight: 1100
+weight: 1110
url: /nodejs-net/aspose.words/revisiongroup/
---
diff --git a/english/nodejs-net/Aspose.Words/revisiongroupcollection/_index.md b/english/nodejs-net/Aspose.Words/revisiongroupcollection/_index.md
index 82b55685c73..eb45231fd3e 100644
--- a/english/nodejs-net/Aspose.Words/revisiongroupcollection/_index.md
+++ b/english/nodejs-net/Aspose.Words/revisiongroupcollection/_index.md
@@ -5,7 +5,7 @@ articleTitle: RevisionGroupCollection class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.RevisionGroupCollection class. A collection of [RevisionGroup](../revisiongroup/) objects that represent revision groups in the document"
type: docs
-weight: 1110
+weight: 1120
url: /nodejs-net/aspose.words/revisiongroupcollection/
---
diff --git a/english/nodejs-net/Aspose.Words/revisionsview/_index.md b/english/nodejs-net/Aspose.Words/revisionsview/_index.md
index 382769578d3..e8ddcbf544e 100644
--- a/english/nodejs-net/Aspose.Words/revisionsview/_index.md
+++ b/english/nodejs-net/Aspose.Words/revisionsview/_index.md
@@ -5,7 +5,7 @@ articleTitle: RevisionsView enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.RevisionsView enumeration. Allows to specify whether to work with the original or revised version of a document."
type: docs
-weight: 1130
+weight: 1140
url: /nodejs-net/aspose.words/revisionsview/
---
diff --git a/english/nodejs-net/Aspose.Words/revisiontype/_index.md b/english/nodejs-net/Aspose.Words/revisiontype/_index.md
index 909d54eca8a..8322c5bb1a2 100644
--- a/english/nodejs-net/Aspose.Words/revisiontype/_index.md
+++ b/english/nodejs-net/Aspose.Words/revisiontype/_index.md
@@ -5,7 +5,7 @@ articleTitle: RevisionType enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.RevisionType enumeration. Specifies the type of change being tracked in [Revision](../revision/)."
type: docs
-weight: 1120
+weight: 1130
url: /nodejs-net/aspose.words/revisiontype/
---
diff --git a/english/nodejs-net/Aspose.Words/run/_index.md b/english/nodejs-net/Aspose.Words/run/_index.md
index 3679f5b3df8..6f82ad6939d 100644
--- a/english/nodejs-net/Aspose.Words/run/_index.md
+++ b/english/nodejs-net/Aspose.Words/run/_index.md
@@ -5,7 +5,7 @@ articleTitle: Run class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Run class. Represents a run of characters with the same font formatting"
type: docs
-weight: 1140
+weight: 1150
url: /nodejs-net/aspose.words/run/
---
@@ -107,54 +107,19 @@ All text of the document is stored in runs of text.
### Examples
-Shows how to add, update and delete child nodes in a CompositeNode's collection of children.
+Shows how to format a run of text using its font property.
```js
let doc = new aw.Document();
+let run = new aw.Run(doc, "Hello world!");
-// An empty document, by default, has one paragraph.
-expect(doc.firstSection.body.paragraphs.count).toEqual(1);
-
-// Composite nodes such as our paragraph can contain other composite and inline nodes as children.
-let paragraph = doc.firstSection.body.firstParagraph;
-let paragraphText = new aw.Run(doc, "Initial text. ");
-paragraph.appendChild(paragraphText);
-
-// Create three more run nodes.
-let run1 = new aw.Run(doc, "Run 1. ");
-let run2 = new aw.Run(doc, "Run 2. ");
-let run3 = new aw.Run(doc, "Run 3. ");
-
-// The document body will not display these runs until we insert them into a composite node
-// that itself is a part of the document's node tree, as we did with the first run.
-// We can determine where the text contents of nodes that we insert
-// appears in the document by specifying an insertion location relative to another node in the paragraph.
-expect(paragraph.getText().trim()).toEqual("Initial text.");
-
-// Insert the second run into the paragraph in front of the initial run.
-paragraph.insertBefore(run2, paragraphText);
-
-expect(paragraph.getText().trim()).toEqual("Run 2. Initial text.");
-
-// Insert the third run after the initial run.
-paragraph.insertAfter(run3, paragraphText);
-
-expect(paragraph.getText().trim()).toEqual("Run 2. Initial text. Run 3.");
-
-// Insert the first run to the start of the paragraph's child nodes collection.
-paragraph.prependChild(run1);
-
-expect(paragraph.getText().trim()).toEqual("Run 1. Run 2. Initial text. Run 3.");
-expect(paragraph.getChildNodes(aw.NodeType.Any, true).count).toEqual(4);
-
-// We can modify the contents of the run by editing and deleting existing child nodes.
-//paragraph.getChildNodes(aw.NodeType.Run, true).toArray().at(1).text = "Updated run 2. ";
-//paragraph.getChildNodes(aw.NodeType.Run, true).remove(paragraphText);
-paragraph.getChildNodes(aw.NodeType.Run, true).toArray().at(1).asRun().text = "Updated run 2. ";
-paragraph.getChildNodes(aw.NodeType.Run, true).remove(paragraphText);
+let font = run.font;
+font.name = "Courier New";
+font.size = 36;
+font.highlightColor = "#FFFF00";
-expect(paragraph.getText().trim()).toEqual("Run 1. Updated run 2. Run 3.");
-expect(paragraph.getChildNodes(aw.NodeType.Any, true).count).toEqual(3);
+doc.firstSection.body.firstParagraph.appendChild(run);
+doc.save(base.artifactsDir + "Font.CreateFormattedRun.docx");
```
Shows how to construct an Aspose.words document by hand.
@@ -202,19 +167,54 @@ expect(doc.getText().trim()).toEqual("Hello World!");
doc.save(base.artifactsDir + "Section.CreateManually.docx");
```
-Shows how to format a run of text using its font property.
+Shows how to add, update and delete child nodes in a CompositeNode's collection of children.
```js
let doc = new aw.Document();
-let run = new aw.Run(doc, "Hello world!");
-let font = run.font;
-font.name = "Courier New";
-font.size = 36;
-font.highlightColor = "#FFFF00";
+// An empty document, by default, has one paragraph.
+expect(doc.firstSection.body.paragraphs.count).toEqual(1);
-doc.firstSection.body.firstParagraph.appendChild(run);
-doc.save(base.artifactsDir + "Font.CreateFormattedRun.docx");
+// Composite nodes such as our paragraph can contain other composite and inline nodes as children.
+let paragraph = doc.firstSection.body.firstParagraph;
+let paragraphText = new aw.Run(doc, "Initial text. ");
+paragraph.appendChild(paragraphText);
+
+// Create three more run nodes.
+let run1 = new aw.Run(doc, "Run 1. ");
+let run2 = new aw.Run(doc, "Run 2. ");
+let run3 = new aw.Run(doc, "Run 3. ");
+
+// The document body will not display these runs until we insert them into a composite node
+// that itself is a part of the document's node tree, as we did with the first run.
+// We can determine where the text contents of nodes that we insert
+// appears in the document by specifying an insertion location relative to another node in the paragraph.
+expect(paragraph.getText().trim()).toEqual("Initial text.");
+
+// Insert the second run into the paragraph in front of the initial run.
+paragraph.insertBefore(run2, paragraphText);
+
+expect(paragraph.getText().trim()).toEqual("Run 2. Initial text.");
+
+// Insert the third run after the initial run.
+paragraph.insertAfter(run3, paragraphText);
+
+expect(paragraph.getText().trim()).toEqual("Run 2. Initial text. Run 3.");
+
+// Insert the first run to the start of the paragraph's child nodes collection.
+paragraph.prependChild(run1);
+
+expect(paragraph.getText().trim()).toEqual("Run 1. Run 2. Initial text. Run 3.");
+expect(paragraph.getChildNodes(aw.NodeType.Any, true).count).toEqual(4);
+
+// We can modify the contents of the run by editing and deleting existing child nodes.
+//paragraph.getChildNodes(aw.NodeType.Run, true).toArray().at(1).text = "Updated run 2. ";
+//paragraph.getChildNodes(aw.NodeType.Run, true).remove(paragraphText);
+paragraph.getChildNodes(aw.NodeType.Run, true).toArray().at(1).asRun().text = "Updated run 2. ";
+paragraph.getChildNodes(aw.NodeType.Run, true).remove(paragraphText);
+
+expect(paragraph.getText().trim()).toEqual("Run 1. Updated run 2. Run 3.");
+expect(paragraph.getChildNodes(aw.NodeType.Any, true).count).toEqual(3);
```
### See Also
diff --git a/english/nodejs-net/Aspose.Words/runcollection/_index.md b/english/nodejs-net/Aspose.Words/runcollection/_index.md
index 2f07868dd3c..19e17524112 100644
--- a/english/nodejs-net/Aspose.Words/runcollection/_index.md
+++ b/english/nodejs-net/Aspose.Words/runcollection/_index.md
@@ -5,7 +5,7 @@ articleTitle: RunCollection class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.RunCollection class. Provides typed access to a collection of [Run](../run/) nodes"
type: docs
-weight: 1150
+weight: 1160
url: /nodejs-net/aspose.words/runcollection/
---
diff --git a/english/nodejs-net/Aspose.Words/saveformat/_index.md b/english/nodejs-net/Aspose.Words/saveformat/_index.md
index e039922e642..241310a45e1 100644
--- a/english/nodejs-net/Aspose.Words/saveformat/_index.md
+++ b/english/nodejs-net/Aspose.Words/saveformat/_index.md
@@ -5,7 +5,7 @@ articleTitle: SaveFormat enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.SaveFormat enumeration. Indicates the format in which the document is saved."
type: docs
-weight: 1160
+weight: 1170
url: /nodejs-net/aspose.words/saveformat/
---
diff --git a/english/nodejs-net/Aspose.Words/section/_index.md b/english/nodejs-net/Aspose.Words/section/_index.md
index 3f8718d1a68..a292323158b 100644
--- a/english/nodejs-net/Aspose.Words/section/_index.md
+++ b/english/nodejs-net/Aspose.Words/section/_index.md
@@ -5,7 +5,7 @@ articleTitle: Section class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Section class. Represents a single section in a document"
type: docs
-weight: 1170
+weight: 1180
url: /nodejs-net/aspose.words/section/
---
diff --git a/english/nodejs-net/Aspose.Words/sectioncollection/_index.md b/english/nodejs-net/Aspose.Words/sectioncollection/_index.md
index 63ec71a4197..74ed57deaa0 100644
--- a/english/nodejs-net/Aspose.Words/sectioncollection/_index.md
+++ b/english/nodejs-net/Aspose.Words/sectioncollection/_index.md
@@ -5,7 +5,7 @@ articleTitle: SectionCollection class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.SectionCollection class. A collection of [Section](../section/) objects in the document"
type: docs
-weight: 1180
+weight: 1190
url: /nodejs-net/aspose.words/sectioncollection/
---
diff --git a/english/nodejs-net/Aspose.Words/sectionlayoutmode/_index.md b/english/nodejs-net/Aspose.Words/sectionlayoutmode/_index.md
index 9f369318d4a..0a2465e11e4 100644
--- a/english/nodejs-net/Aspose.Words/sectionlayoutmode/_index.md
+++ b/english/nodejs-net/Aspose.Words/sectionlayoutmode/_index.md
@@ -5,7 +5,7 @@ articleTitle: SectionLayoutMode enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.SectionLayoutMode enumeration. Specifies the layout mode for a section allowing to define the document grid behavior."
type: docs
-weight: 1190
+weight: 1200
url: /nodejs-net/aspose.words/sectionlayoutmode/
---
diff --git a/english/nodejs-net/Aspose.Words/sectionstart/_index.md b/english/nodejs-net/Aspose.Words/sectionstart/_index.md
index 34773d19891..e0c2de7e863 100644
--- a/english/nodejs-net/Aspose.Words/sectionstart/_index.md
+++ b/english/nodejs-net/Aspose.Words/sectionstart/_index.md
@@ -5,7 +5,7 @@ articleTitle: SectionStart enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.SectionStart enumeration. The type of break at the beginning of the section."
type: docs
-weight: 1200
+weight: 1210
url: /nodejs-net/aspose.words/sectionstart/
---
diff --git a/english/nodejs-net/Aspose.Words/shading/_index.md b/english/nodejs-net/Aspose.Words/shading/_index.md
index f178ab5ebf4..09cdf3ad338 100644
--- a/english/nodejs-net/Aspose.Words/shading/_index.md
+++ b/english/nodejs-net/Aspose.Words/shading/_index.md
@@ -5,7 +5,7 @@ articleTitle: Shading class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Shading class. Contains shading attributes for an object"
type: docs
-weight: 1210
+weight: 1220
url: /nodejs-net/aspose.words/shading/
---
diff --git a/english/nodejs-net/Aspose.Words/signaturelineoptions/_index.md b/english/nodejs-net/Aspose.Words/signaturelineoptions/_index.md
index 721c3e0181a..923cdad31c2 100644
--- a/english/nodejs-net/Aspose.Words/signaturelineoptions/_index.md
+++ b/english/nodejs-net/Aspose.Words/signaturelineoptions/_index.md
@@ -5,7 +5,7 @@ articleTitle: SignatureLineOptions class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.SignatureLineOptions class. Allows to specify options for signature line being inserted"
type: docs
-weight: 1220
+weight: 1230
url: /nodejs-net/aspose.words/signaturelineoptions/
---
diff --git a/english/nodejs-net/Aspose.Words/specialchar/_index.md b/english/nodejs-net/Aspose.Words/specialchar/_index.md
index d033a7d74d1..719710fd764 100644
--- a/english/nodejs-net/Aspose.Words/specialchar/_index.md
+++ b/english/nodejs-net/Aspose.Words/specialchar/_index.md
@@ -5,7 +5,7 @@ articleTitle: SpecialChar class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.SpecialChar class. Base class for special characters in the document"
type: docs
-weight: 1230
+weight: 1240
url: /nodejs-net/aspose.words/specialchar/
---
diff --git a/english/nodejs-net/Aspose.Words/story/_index.md b/english/nodejs-net/Aspose.Words/story/_index.md
index 106bdcf39ee..ed9b21c0a29 100644
--- a/english/nodejs-net/Aspose.Words/story/_index.md
+++ b/english/nodejs-net/Aspose.Words/story/_index.md
@@ -5,7 +5,7 @@ articleTitle: Story class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Story class. Base class for elements that contain block-level nodes [Paragraph](../paragraph/) and [Table](../table/)"
type: docs
-weight: 1240
+weight: 1250
url: /nodejs-net/aspose.words/story/
---
diff --git a/english/nodejs-net/Aspose.Words/storytype/_index.md b/english/nodejs-net/Aspose.Words/storytype/_index.md
index 0472dfb9bd0..4af0f8ca882 100644
--- a/english/nodejs-net/Aspose.Words/storytype/_index.md
+++ b/english/nodejs-net/Aspose.Words/storytype/_index.md
@@ -5,7 +5,7 @@ articleTitle: StoryType enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.StoryType enumeration. Text of a Word document is stored in stories"
type: docs
-weight: 1250
+weight: 1260
url: /nodejs-net/aspose.words/storytype/
---
diff --git a/english/nodejs-net/Aspose.Words/style/_index.md b/english/nodejs-net/Aspose.Words/style/_index.md
index f27f7c4c5e6..50d7477f639 100644
--- a/english/nodejs-net/Aspose.Words/style/_index.md
+++ b/english/nodejs-net/Aspose.Words/style/_index.md
@@ -5,7 +5,7 @@ articleTitle: Style class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Style class. Represents a single built-in or user-defined style"
type: docs
-weight: 1260
+weight: 1270
url: /nodejs-net/aspose.words/style/
---
diff --git a/english/nodejs-net/Aspose.Words/stylecollection/_index.md b/english/nodejs-net/Aspose.Words/stylecollection/_index.md
index dab63a30f41..067b0b0f0f4 100644
--- a/english/nodejs-net/Aspose.Words/stylecollection/_index.md
+++ b/english/nodejs-net/Aspose.Words/stylecollection/_index.md
@@ -5,7 +5,7 @@ articleTitle: StyleCollection class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.StyleCollection class. A collection of [Style](../style/) objects that represent both the built-in and user-defined styles in a document"
type: docs
-weight: 1270
+weight: 1280
url: /nodejs-net/aspose.words/stylecollection/
---
diff --git a/english/nodejs-net/Aspose.Words/styleidentifier/_index.md b/english/nodejs-net/Aspose.Words/styleidentifier/_index.md
index 4b03a93f754..e057b3e6cff 100644
--- a/english/nodejs-net/Aspose.Words/styleidentifier/_index.md
+++ b/english/nodejs-net/Aspose.Words/styleidentifier/_index.md
@@ -5,7 +5,7 @@ articleTitle: StyleIdentifier enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.StyleIdentifier enumeration. Locale independent style identifier."
type: docs
-weight: 1280
+weight: 1290
url: /nodejs-net/aspose.words/styleidentifier/
---
diff --git a/english/nodejs-net/Aspose.Words/styletype/_index.md b/english/nodejs-net/Aspose.Words/styletype/_index.md
index 0f083639034..e0f4bbcae04 100644
--- a/english/nodejs-net/Aspose.Words/styletype/_index.md
+++ b/english/nodejs-net/Aspose.Words/styletype/_index.md
@@ -5,7 +5,7 @@ articleTitle: StyleType enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.StyleType enumeration. Represents type of the style."
type: docs
-weight: 1290
+weight: 1300
url: /nodejs-net/aspose.words/styletype/
---
diff --git a/english/nodejs-net/Aspose.Words/subdocument/_index.md b/english/nodejs-net/Aspose.Words/subdocument/_index.md
index 7eb9554b309..2b6a7837d9a 100644
--- a/english/nodejs-net/Aspose.Words/subdocument/_index.md
+++ b/english/nodejs-net/Aspose.Words/subdocument/_index.md
@@ -5,7 +5,7 @@ articleTitle: SubDocument class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.SubDocument class. Represents a SubDocument - which is a reference to an externally stored document"
type: docs
-weight: 1300
+weight: 1310
url: /nodejs-net/aspose.words/subdocument/
---
diff --git a/english/nodejs-net/Aspose.Words/tabalignment/_index.md b/english/nodejs-net/Aspose.Words/tabalignment/_index.md
index b7e29096bf5..304a26614d7 100644
--- a/english/nodejs-net/Aspose.Words/tabalignment/_index.md
+++ b/english/nodejs-net/Aspose.Words/tabalignment/_index.md
@@ -5,7 +5,7 @@ articleTitle: TabAlignment enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.TabAlignment enumeration. Specifies the alignment/type of a tab stop."
type: docs
-weight: 1310
+weight: 1320
url: /nodejs-net/aspose.words/tabalignment/
---
diff --git a/english/nodejs-net/Aspose.Words/table/_index.md b/english/nodejs-net/Aspose.Words/table/_index.md
index 606a5af2cad..23fc0154c93 100644
--- a/english/nodejs-net/Aspose.Words/table/_index.md
+++ b/english/nodejs-net/Aspose.Words/table/_index.md
@@ -5,7 +5,7 @@ articleTitle: Table class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Table class. Represents a table in a Word document"
type: docs
-weight: 1350
+weight: 1360
url: /nodejs-net/aspose.words/table/
---
@@ -169,6 +169,47 @@ A minimal valid table needs to have at least one [Row](../../aspose.words.tables
### Examples
+Shows how to build a formatted 2x2 table.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+let table = builder.startTable();
+builder.insertCell();
+builder.cellFormat.verticalAlignment = aw.Tables.CellVerticalAlignment.Center;
+builder.write("Row 1, cell 1.");
+builder.insertCell();
+builder.write("Row 1, cell 2.");
+builder.endRow();
+
+// While building the table, the document builder will apply its current RowFormat/CellFormat property values
+// to the current row/cell that its cursor is in and any new rows/cells as it creates them.
+expect(table.rows.at(0).cells.at(0).cellFormat.verticalAlignment).toEqual(aw.Tables.CellVerticalAlignment.Center);
+expect(table.rows.at(0).cells.at(1).cellFormat.verticalAlignment).toEqual(aw.Tables.CellVerticalAlignment.Center);
+
+builder.insertCell();
+builder.rowFormat.height = 100;
+builder.rowFormat.heightRule = aw.HeightRule.Exactly;
+builder.cellFormat.orientation = aw.TextOrientation.Upward;
+builder.write("Row 2, cell 1.");
+builder.insertCell();
+builder.cellFormat.orientation = aw.TextOrientation.Downward;
+builder.write("Row 2, cell 2.");
+builder.endRow();
+builder.endTable();
+
+// Previously added rows and cells are not retroactively affected by changes to the builder's formatting.
+expect(table.rows.at(0).rowFormat.height).toEqual(0);
+expect(table.rows.at(0).rowFormat.heightRule).toEqual(aw.HeightRule.Auto);
+expect(table.rows.at(1).rowFormat.height).toEqual(100);
+expect(table.rows.at(1).rowFormat.heightRule).toEqual(aw.HeightRule.Exactly);
+expect(table.rows.at(1).cells.at(0).cellFormat.orientation).toEqual(aw.TextOrientation.Upward);
+expect(table.rows.at(1).cells.at(1).cellFormat.orientation).toEqual(aw.TextOrientation.Downward);
+
+doc.save(base.artifactsDir + "DocumentBuilder.BuildTable.docx");
+```
+
Shows how to create a table.
```js
@@ -280,47 +321,6 @@ function createTable(doc, rowCount, cellCount, cellText)
}
```
-Shows how to build a formatted 2x2 table.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-let table = builder.startTable();
-builder.insertCell();
-builder.cellFormat.verticalAlignment = aw.Tables.CellVerticalAlignment.Center;
-builder.write("Row 1, cell 1.");
-builder.insertCell();
-builder.write("Row 1, cell 2.");
-builder.endRow();
-
-// While building the table, the document builder will apply its current RowFormat/CellFormat property values
-// to the current row/cell that its cursor is in and any new rows/cells as it creates them.
-expect(table.rows.at(0).cells.at(0).cellFormat.verticalAlignment).toEqual(aw.Tables.CellVerticalAlignment.Center);
-expect(table.rows.at(0).cells.at(1).cellFormat.verticalAlignment).toEqual(aw.Tables.CellVerticalAlignment.Center);
-
-builder.insertCell();
-builder.rowFormat.height = 100;
-builder.rowFormat.heightRule = aw.HeightRule.Exactly;
-builder.cellFormat.orientation = aw.TextOrientation.Upward;
-builder.write("Row 2, cell 1.");
-builder.insertCell();
-builder.cellFormat.orientation = aw.TextOrientation.Downward;
-builder.write("Row 2, cell 2.");
-builder.endRow();
-builder.endTable();
-
-// Previously added rows and cells are not retroactively affected by changes to the builder's formatting.
-expect(table.rows.at(0).rowFormat.height).toEqual(0);
-expect(table.rows.at(0).rowFormat.heightRule).toEqual(aw.HeightRule.Auto);
-expect(table.rows.at(1).rowFormat.height).toEqual(100);
-expect(table.rows.at(1).rowFormat.heightRule).toEqual(aw.HeightRule.Exactly);
-expect(table.rows.at(1).cells.at(0).cellFormat.orientation).toEqual(aw.TextOrientation.Upward);
-expect(table.rows.at(1).cells.at(1).cellFormat.orientation).toEqual(aw.TextOrientation.Downward);
-
-doc.save(base.artifactsDir + "DocumentBuilder.BuildTable.docx");
-```
-
### See Also
* module [Aspose.Words](../)
diff --git a/english/nodejs-net/Aspose.Words/table/setBorders/_index.md b/english/nodejs-net/Aspose.Words/table/setBorders/_index.md
index 3fc98ae3c7d..6fd6cd572ff 100644
--- a/english/nodejs-net/Aspose.Words/table/setBorders/_index.md
+++ b/english/nodejs-net/Aspose.Words/table/setBorders/_index.md
@@ -26,21 +26,6 @@ setBorders(lineStyle: Aspose.Words.LineStyle, lineWidth: number, color: string)
### Examples
-Shows how to format of all of a table's borders at once.
-
-```js
-let doc = new aw.Document(base.myDir + "Tables.docx");
-let table = doc.firstSection.body.tables.at(0);
-
-// Clear all existing borders from the table.
-table.clearBorders();
-
-// Set a single green line to serve as every outer and inner border of this table.
-table.setBorders(aw.LineStyle.Single, 1.5, "#008000");
-
-doc.save(base.artifactsDir + "Table.setBorders.docx");
-```
-
Shows how to apply border and shading color while building a table.
```js
@@ -77,6 +62,21 @@ builder.writeln("Row 2, Cell 2.");
doc.save(base.artifactsDir + "DocumentBuilder.TableBordersAndShading.docx");
```
+Shows how to format of all of a table's borders at once.
+
+```js
+let doc = new aw.Document(base.myDir + "Tables.docx");
+let table = doc.firstSection.body.tables.at(0);
+
+// Clear all existing borders from the table.
+table.clearBorders();
+
+// Set a single green line to serve as every outer and inner border of this table.
+table.setBorders(aw.LineStyle.Single, 1.5, "#008000");
+
+doc.save(base.artifactsDir + "Table.setBorders.docx");
+```
+
### See Also
* module [Aspose.Words](../../)
diff --git a/english/nodejs-net/Aspose.Words/tableader/_index.md b/english/nodejs-net/Aspose.Words/tableader/_index.md
index 2c20624dff8..bf469205560 100644
--- a/english/nodejs-net/Aspose.Words/tableader/_index.md
+++ b/english/nodejs-net/Aspose.Words/tableader/_index.md
@@ -5,7 +5,7 @@ articleTitle: TabLeader enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.TabLeader enumeration. Specifies the type of the leader line displayed under the tab character."
type: docs
-weight: 1320
+weight: 1330
url: /nodejs-net/aspose.words/tableader/
---
diff --git a/english/nodejs-net/Aspose.Words/tablestyle/_index.md b/english/nodejs-net/Aspose.Words/tablestyle/_index.md
index ab6edcb463d..a04cd18af36 100644
--- a/english/nodejs-net/Aspose.Words/tablestyle/_index.md
+++ b/english/nodejs-net/Aspose.Words/tablestyle/_index.md
@@ -5,7 +5,7 @@ articleTitle: TableStyle class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.TableStyle class. Represents a table style"
type: docs
-weight: 1360
+weight: 1370
url: /nodejs-net/aspose.words/tablestyle/
---
diff --git a/english/nodejs-net/Aspose.Words/tabstop/_index.md b/english/nodejs-net/Aspose.Words/tabstop/_index.md
index 12ef64da168..dd431edf86d 100644
--- a/english/nodejs-net/Aspose.Words/tabstop/_index.md
+++ b/english/nodejs-net/Aspose.Words/tabstop/_index.md
@@ -5,7 +5,7 @@ articleTitle: TabStop class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.TabStop class. Represents a single custom tab stop"
type: docs
-weight: 1330
+weight: 1340
url: /nodejs-net/aspose.words/tabstop/
---
diff --git a/english/nodejs-net/Aspose.Words/tabstopcollection/_index.md b/english/nodejs-net/Aspose.Words/tabstopcollection/_index.md
index 8498232917b..9eb4c37bfb7 100644
--- a/english/nodejs-net/Aspose.Words/tabstopcollection/_index.md
+++ b/english/nodejs-net/Aspose.Words/tabstopcollection/_index.md
@@ -5,7 +5,7 @@ articleTitle: TabStopCollection class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.TabStopCollection class. A collection of [TabStop](../tabstop/) objects that represent custom tabs for a paragraph or a style"
type: docs
-weight: 1340
+weight: 1350
url: /nodejs-net/aspose.words/tabstopcollection/
---
diff --git a/english/nodejs-net/Aspose.Words/textcolumn/_index.md b/english/nodejs-net/Aspose.Words/textcolumn/_index.md
index c14cd620c86..27ce9e5b70e 100644
--- a/english/nodejs-net/Aspose.Words/textcolumn/_index.md
+++ b/english/nodejs-net/Aspose.Words/textcolumn/_index.md
@@ -5,7 +5,7 @@ articleTitle: TextColumn class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.TextColumn class. Represents a single text column"
type: docs
-weight: 1370
+weight: 1380
url: /nodejs-net/aspose.words/textcolumn/
---
diff --git a/english/nodejs-net/Aspose.Words/textcolumncollection/_index.md b/english/nodejs-net/Aspose.Words/textcolumncollection/_index.md
index 72011216436..2ce41e6d5e9 100644
--- a/english/nodejs-net/Aspose.Words/textcolumncollection/_index.md
+++ b/english/nodejs-net/Aspose.Words/textcolumncollection/_index.md
@@ -5,7 +5,7 @@ articleTitle: TextColumnCollection class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.TextColumnCollection class. A collection of [TextColumn](../textcolumn/) objects that represent all the columns of text in a section of a document"
type: docs
-weight: 1380
+weight: 1390
url: /nodejs-net/aspose.words/textcolumncollection/
---
diff --git a/english/nodejs-net/Aspose.Words/textdmleffect/_index.md b/english/nodejs-net/Aspose.Words/textdmleffect/_index.md
index 7e9562cae00..450d154389f 100644
--- a/english/nodejs-net/Aspose.Words/textdmleffect/_index.md
+++ b/english/nodejs-net/Aspose.Words/textdmleffect/_index.md
@@ -5,7 +5,7 @@ articleTitle: TextDmlEffect enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.TextDmlEffect enumeration. Dml text effect for text runs."
type: docs
-weight: 1390
+weight: 1400
url: /nodejs-net/aspose.words/textdmleffect/
---
diff --git a/english/nodejs-net/Aspose.Words/texteffect/_index.md b/english/nodejs-net/Aspose.Words/texteffect/_index.md
index a41bf1cc826..6b1b829c588 100644
--- a/english/nodejs-net/Aspose.Words/texteffect/_index.md
+++ b/english/nodejs-net/Aspose.Words/texteffect/_index.md
@@ -5,7 +5,7 @@ articleTitle: TextEffect enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.TextEffect enumeration. Animation effect for text runs."
type: docs
-weight: 1400
+weight: 1410
url: /nodejs-net/aspose.words/texteffect/
---
diff --git a/english/nodejs-net/Aspose.Words/textorientation/_index.md b/english/nodejs-net/Aspose.Words/textorientation/_index.md
index 2a9725e46e1..8305e82d02a 100644
--- a/english/nodejs-net/Aspose.Words/textorientation/_index.md
+++ b/english/nodejs-net/Aspose.Words/textorientation/_index.md
@@ -5,7 +5,7 @@ articleTitle: TextOrientation enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.TextOrientation enumeration. Specifies orientation of text on a page, in a table cell or a text frame."
type: docs
-weight: 1410
+weight: 1420
url: /nodejs-net/aspose.words/textorientation/
---
diff --git a/english/nodejs-net/Aspose.Words/textureindex/_index.md b/english/nodejs-net/Aspose.Words/textureindex/_index.md
index d2ecdadc354..6bd565854f2 100644
--- a/english/nodejs-net/Aspose.Words/textureindex/_index.md
+++ b/english/nodejs-net/Aspose.Words/textureindex/_index.md
@@ -5,7 +5,7 @@ articleTitle: TextureIndex enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.TextureIndex enumeration. Specifies shading texture."
type: docs
-weight: 1430
+weight: 1440
url: /nodejs-net/aspose.words/textureindex/
---
@@ -75,6 +75,28 @@ Specifies shading texture.
### Examples
+Shows how to decorate text with borders and shading.
+
+```js
+let doc = new aw.Document();
+let builder = new aw.DocumentBuilder(doc);
+
+let borders = builder.paragraphFormat.borders;
+borders.distanceFromText = 20;
+borders.at(aw.BorderType.Left).lineStyle = aw.LineStyle.Double;
+borders.at(aw.BorderType.Right).lineStyle = aw.LineStyle.Double;
+borders.at(aw.BorderType.Top).lineStyle = aw.LineStyle.Double;
+borders.at(aw.BorderType.Bottom).lineStyle = aw.LineStyle.Double;
+
+let shading = builder.paragraphFormat.shading;
+shading.texture = aw.TextureIndex.TextureDiagonalCross;
+shading.backgroundPatternColor = "#F08080";
+shading.foregroundPatternColor = "#FFA07A";
+
+builder.write("This paragraph is formatted with a double border and shading.");
+doc.save(base.artifactsDir + "DocumentBuilder.ApplyBordersAndShading.docx");
+```
+
Shows how to apply an outline border to a table.
```js
@@ -100,28 +122,6 @@ table.setShading(aw.TextureIndex.TextureSolid, "#90EE90", "#000000");
doc.save(base.artifactsDir + "Table.SetOutlineBorders.docx");
```
-Shows how to decorate text with borders and shading.
-
-```js
-let doc = new aw.Document();
-let builder = new aw.DocumentBuilder(doc);
-
-let borders = builder.paragraphFormat.borders;
-borders.distanceFromText = 20;
-borders.at(aw.BorderType.Left).lineStyle = aw.LineStyle.Double;
-borders.at(aw.BorderType.Right).lineStyle = aw.LineStyle.Double;
-borders.at(aw.BorderType.Top).lineStyle = aw.LineStyle.Double;
-borders.at(aw.BorderType.Bottom).lineStyle = aw.LineStyle.Double;
-
-let shading = builder.paragraphFormat.shading;
-shading.texture = aw.TextureIndex.TextureDiagonalCross;
-shading.backgroundPatternColor = "#F08080";
-shading.foregroundPatternColor = "#FFA07A";
-
-builder.write("This paragraph is formatted with a double border and shading.");
-doc.save(base.artifactsDir + "DocumentBuilder.ApplyBordersAndShading.docx");
-```
-
### See Also
* module [Aspose.Words](../)
diff --git a/english/nodejs-net/Aspose.Words/textwatermarkoptions/_index.md b/english/nodejs-net/Aspose.Words/textwatermarkoptions/_index.md
index 0c41f239ed8..9d6b26d5a5a 100644
--- a/english/nodejs-net/Aspose.Words/textwatermarkoptions/_index.md
+++ b/english/nodejs-net/Aspose.Words/textwatermarkoptions/_index.md
@@ -5,7 +5,7 @@ articleTitle: TextWatermarkOptions class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.TextWatermarkOptions class. Contains options that can be specified when adding a watermark with text"
type: docs
-weight: 1420
+weight: 1430
url: /nodejs-net/aspose.words/textwatermarkoptions/
---
diff --git a/english/nodejs-net/Aspose.Words/theme/_index.md b/english/nodejs-net/Aspose.Words/theme/_index.md
index 6923541ecaf..6a6da7f944c 100644
--- a/english/nodejs-net/Aspose.Words/theme/_index.md
+++ b/english/nodejs-net/Aspose.Words/theme/_index.md
@@ -5,7 +5,7 @@ articleTitle: Theme class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Theme class. Represents document Theme, and provides access to main theme parts including [Theme.majorFonts](./majorFonts/), [Theme.minorFonts](./minorFonts/) and [Theme.colors](./colors/) To learn more, visit the [Working with Styles and Themes](https://docs.aspose.com/words/nodejs-net/working-with-styles-and-themes/) documentation article."
type: docs
-weight: 1440
+weight: 1450
url: /nodejs-net/aspose.words/theme/
---
diff --git a/english/nodejs-net/Aspose.Words/underline/_index.md b/english/nodejs-net/Aspose.Words/underline/_index.md
index 5d4feabe1af..aea210218a7 100644
--- a/english/nodejs-net/Aspose.Words/underline/_index.md
+++ b/english/nodejs-net/Aspose.Words/underline/_index.md
@@ -5,7 +5,7 @@ articleTitle: Underline enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Underline enumeration. Indicates type of the underline applied to a font."
type: docs
-weight: 1450
+weight: 1460
url: /nodejs-net/aspose.words/underline/
---
diff --git a/english/nodejs-net/Aspose.Words/variablecollection/_index.md b/english/nodejs-net/Aspose.Words/variablecollection/_index.md
index 9f67da32c4a..30b81722a85 100644
--- a/english/nodejs-net/Aspose.Words/variablecollection/_index.md
+++ b/english/nodejs-net/Aspose.Words/variablecollection/_index.md
@@ -5,7 +5,7 @@ articleTitle: VariableCollection class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.VariableCollection class. A collection of document variables"
type: docs
-weight: 1460
+weight: 1470
url: /nodejs-net/aspose.words/variablecollection/
---
diff --git a/english/nodejs-net/Aspose.Words/visitoraction/_index.md b/english/nodejs-net/Aspose.Words/visitoraction/_index.md
index 34f0419968c..9ed0984245b 100644
--- a/english/nodejs-net/Aspose.Words/visitoraction/_index.md
+++ b/english/nodejs-net/Aspose.Words/visitoraction/_index.md
@@ -5,7 +5,7 @@ articleTitle: VisitorAction enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.VisitorAction enumeration. Allows the visitor to control the enumeration of nodes."
type: docs
-weight: 1470
+weight: 1480
url: /nodejs-net/aspose.words/visitoraction/
---
diff --git a/english/nodejs-net/Aspose.Words/warninginfo/_index.md b/english/nodejs-net/Aspose.Words/warninginfo/_index.md
index adce33f6fc7..b9dc98cffb2 100644
--- a/english/nodejs-net/Aspose.Words/warninginfo/_index.md
+++ b/english/nodejs-net/Aspose.Words/warninginfo/_index.md
@@ -5,7 +5,7 @@ articleTitle: WarningInfo class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.WarningInfo class. Contains information about a warning that Aspose.Words issued during document loading or saving"
type: docs
-weight: 1480
+weight: 1490
url: /nodejs-net/aspose.words/warninginfo/
---
diff --git a/english/nodejs-net/Aspose.Words/warninginfocollection/_index.md b/english/nodejs-net/Aspose.Words/warninginfocollection/_index.md
index bf3bb2e689e..760d0623914 100644
--- a/english/nodejs-net/Aspose.Words/warninginfocollection/_index.md
+++ b/english/nodejs-net/Aspose.Words/warninginfocollection/_index.md
@@ -5,7 +5,7 @@ articleTitle: WarningInfoCollection class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.WarningInfoCollection class. Represents a typed collection of [WarningInfo](../warninginfo/) objects"
type: docs
-weight: 1490
+weight: 1500
url: /nodejs-net/aspose.words/warninginfocollection/
---
diff --git a/english/nodejs-net/Aspose.Words/warningsource/_index.md b/english/nodejs-net/Aspose.Words/warningsource/_index.md
index 4288bfe0128..103f47d13a7 100644
--- a/english/nodejs-net/Aspose.Words/warningsource/_index.md
+++ b/english/nodejs-net/Aspose.Words/warningsource/_index.md
@@ -5,7 +5,7 @@ articleTitle: WarningSource enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.WarningSource enumeration. Specifies the module that produces a warning during document loading or saving."
type: docs
-weight: 1500
+weight: 1510
url: /nodejs-net/aspose.words/warningsource/
---
diff --git a/english/nodejs-net/Aspose.Words/warningtype/_index.md b/english/nodejs-net/Aspose.Words/warningtype/_index.md
index 63733456b20..f7b474151b4 100644
--- a/english/nodejs-net/Aspose.Words/warningtype/_index.md
+++ b/english/nodejs-net/Aspose.Words/warningtype/_index.md
@@ -5,7 +5,7 @@ articleTitle: WarningType enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.WarningType enumeration. Specifies the type of a warning that is issued by Aspose.Words during document loading or saving."
type: docs
-weight: 1510
+weight: 1520
url: /nodejs-net/aspose.words/warningtype/
---
diff --git a/english/nodejs-net/Aspose.Words/watermark/_index.md b/english/nodejs-net/Aspose.Words/watermark/_index.md
index 1fcfeda6a3f..eb9db587cb0 100644
--- a/english/nodejs-net/Aspose.Words/watermark/_index.md
+++ b/english/nodejs-net/Aspose.Words/watermark/_index.md
@@ -5,7 +5,7 @@ articleTitle: Watermark class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.Watermark class. Adapts [Watermark](./) class public API for Node.js porting."
type: docs
-weight: 1520
+weight: 1530
url: /nodejs-net/aspose.words/watermark/
---
diff --git a/english/nodejs-net/Aspose.Words/watermarklayout/_index.md b/english/nodejs-net/Aspose.Words/watermarklayout/_index.md
index 8f4fcb9d575..f73d00b0017 100644
--- a/english/nodejs-net/Aspose.Words/watermarklayout/_index.md
+++ b/english/nodejs-net/Aspose.Words/watermarklayout/_index.md
@@ -5,7 +5,7 @@ articleTitle: WatermarkLayout enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.WatermarkLayout enumeration. Defines layout of the watermark relative to the watermark center."
type: docs
-weight: 1530
+weight: 1540
url: /nodejs-net/aspose.words/watermarklayout/
---
diff --git a/english/nodejs-net/Aspose.Words/watermarktype/_index.md b/english/nodejs-net/Aspose.Words/watermarktype/_index.md
index 6c6d03d7604..982ef348b40 100644
--- a/english/nodejs-net/Aspose.Words/watermarktype/_index.md
+++ b/english/nodejs-net/Aspose.Words/watermarktype/_index.md
@@ -5,7 +5,7 @@ articleTitle: WatermarkType enumeration
second_title: Aspose.Words for Node.js
description: "Aspose.Words.WatermarkType enumeration. Specifies the watermark type."
type: docs
-weight: 1540
+weight: 1550
url: /nodejs-net/aspose.words/watermarktype/
---
diff --git a/english/nodejs-net/Aspose.Words/webextension/_index.md b/english/nodejs-net/Aspose.Words/webextension/_index.md
index e542fbf7e7d..35461f2c8f3 100644
--- a/english/nodejs-net/Aspose.Words/webextension/_index.md
+++ b/english/nodejs-net/Aspose.Words/webextension/_index.md
@@ -5,7 +5,7 @@ articleTitle: WebExtension class
second_title: Aspose.Words for Node.js
description: "Aspose.Words.WebExtension class. Represents a web extension object"
type: docs
-weight: 1550
+weight: 1560
url: /nodejs-net/aspose.words/webextension/
---