Skip to content

Commit 689e30b

Browse files
committed
Merge branch 'main' into production
2 parents 187ef4d + abc5d01 commit 689e30b

File tree

621 files changed

+2207
-666
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

621 files changed

+2207
-666
lines changed

english/java/com.aspose.words/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ The **MailMerge** object which provides access to the reporting functionality is
191191
| [DocumentProperty](../com.aspose.words/documentproperty/) | Represents a custom or built-in document property. |
192192
| [DocumentPropertyCollection](../com.aspose.words/documentpropertycollection/) | Base class for [BuiltInDocumentProperties](../com.aspose.words/builtindocumentproperties/) and [CustomDocumentProperties](../com.aspose.words/customdocumentproperties/) collections. |
193193
| [DocumentReaderPluginLoadException](../com.aspose.words/documentreaderpluginloadexception/) | Thrown during document load, when the plugin required for reading the document format cannot be loaded. |
194+
| [DocumentRecoveryMode](../com.aspose.words/documentrecoverymode/) | Specifies the available recovery options when a document encounters errors during loading. |
194195
| [DocumentSavingArgs](../com.aspose.words/documentsavingargs/) | An argument passed into [IDocumentSavingCallback.\#notify(com.aspose.words.DocumentSavingArgs)](../com.aspose.words/idocumentsavingcallback/\#notify-com.aspose.words.DocumentSavingArgs). |
195196
| [DocumentSecurity](../com.aspose.words/documentsecurity/) | Used as a value for the [BuiltInDocumentProperties.\#getSecurity()](../com.aspose.words/builtindocumentproperties/\#getSecurity) / [BuiltInDocumentProperties.\#setSecurity(int)](../com.aspose.words/builtindocumentproperties/\#setSecurity-int) property. |
196197
| [DocumentSplitCriteria](../com.aspose.words/documentsplitcriteria/) | Specifies how the document is split into parts when saving to [SaveFormat.\#HTML](../com.aspose.words/saveformat/\#HTML), [SaveFormat.\#EPUB](../com.aspose.words/saveformat/\#EPUB) or [SaveFormat.\#AZW\_3](../com.aspose.words/saveformat/\#AZW-3) format. |
@@ -354,8 +355,10 @@ The **MailMerge** object which provides access to the reporting functionality is
354355
| [FontSettings](../com.aspose.words/fontsettings/) | Specifies font settings for a document. |
355356
| [FontSourceBase](../com.aspose.words/fontsourcebase/) | This is an abstract base class for the classes that allow the user to specify various font sources. |
356357
| [FontSourceType](../com.aspose.words/fontsourcetype/) | Specifies the type of font source. |
358+
| [FontSubstitutionReason](../com.aspose.words/fontsubstitutionreason/) | Specifies the reason of font substitution. |
357359
| [FontSubstitutionRule](../com.aspose.words/fontsubstitutionrule/) | This is an abstract base class for the font substitution rule. |
358360
| [FontSubstitutionSettings](../com.aspose.words/fontsubstitutionsettings/) | Specifies font substitution mechanism settings. |
361+
| [FontSubstitutionWarningInfo](../com.aspose.words/fontsubstitutionwarninginfo/) | Contains information about a font substitution warning that Aspose.Words issued during document loading or saving. |
359362
| [Footnote](../com.aspose.words/footnote/) | Represents a container for text of a footnote or endnote. |
360363
| [FootnoteNumberingRule](../com.aspose.words/footnotenumberingrule/) | Determines when automatic footnote or endnote numbering restarts. |
361364
| [FootnoteOptions](../com.aspose.words/footnoteoptions/) | Represents the footnote numbering options for a document or section. |

english/java/com.aspose.words/absolutepositiontab/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ public boolean isComposite()
11261126
```
11271127

11281128

1129-
Returns true if this node can contain other nodes. (194825,6)
1129+
Returns true if this node can contain other nodes. (195198,6)
11301130

11311131
**Examples:**
11321132

english/java/com.aspose.words/bookmarkend/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ public boolean isComposite()
10331033
```
10341034

10351035

1036-
Returns true if this node can contain other nodes. (194825,6)
1036+
Returns true if this node can contain other nodes. (195198,6)
10371037

10381038
**Examples:**
10391039

english/java/com.aspose.words/bookmarkstart/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ public boolean isComposite()
11251125
```
11261126

11271127

1128-
Returns true if this node can contain other nodes. (194825,6)
1128+
Returns true if this node can contain other nodes. (195198,6)
11291129

11301130
**Examples:**
11311131

english/java/com.aspose.words/chmloadoptions/_index.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Shows how to resolve URLs like "ms-its:myfile.chm::/index.htm".
6161
| [getPassword()](#getPassword) | Gets the password for opening an encrypted document. |
6262
| [getPreserveIncludePictureField()](#getPreserveIncludePictureField) | Gets whether to preserve the INCLUDEPICTURE field when reading Microsoft Word formats. |
6363
| [getProgressCallback()](#getProgressCallback) | Called during loading a document and accepts data about loading progress. |
64+
| [getRecoveryMode()](#getRecoveryMode) | Defines how the document should be handled if errors occur during loading. |
6465
| [getResourceLoadingCallback()](#getResourceLoadingCallback) | Allows to control how external resources (images, style sheets) are loaded when a document is imported from HTML, MHTML. |
6566
| [getTempFolder()](#getTempFolder) | Allows to use temporary files when reading document. |
6667
| [getUpdateDirtyFields()](#getUpdateDirtyFields) | Specifies whether to update the fields with the dirty attribute. |
@@ -78,6 +79,7 @@ Shows how to resolve URLs like "ms-its:myfile.chm::/index.htm".
7879
| [setPassword(String value)](#setPassword-java.lang.String) | Sets the password for opening an encrypted document. |
7980
| [setPreserveIncludePictureField(boolean value)](#setPreserveIncludePictureField-boolean) | Sets whether to preserve the INCLUDEPICTURE field when reading Microsoft Word formats. |
8081
| [setProgressCallback(IDocumentLoadingCallback value)](#setProgressCallback-com.aspose.words.IDocumentLoadingCallback) | Called during loading a document and accepts data about loading progress. |
82+
| [setRecoveryMode(int value)](#setRecoveryMode-int) | Defines how the document should be handled if errors occur during loading. |
8183
| [setResourceLoadingCallback(IResourceLoadingCallback value)](#setResourceLoadingCallback-com.aspose.words.IResourceLoadingCallback) | Allows to control how external resources (images, style sheets) are loaded when a document is imported from HTML, MHTML. |
8284
| [setTempFolder(String value)](#setTempFolder-java.lang.String) | Allows to use temporary files when reading document. |
8385
| [setUpdateDirtyFields(boolean value)](#setUpdateDirtyFields-boolean) | Specifies whether to update the fields with the dirty attribute. |
@@ -684,6 +686,29 @@ Shows how to notify the user if document loading exceeded expected loading time.
684686

685687
**Returns:**
686688
[IDocumentLoadingCallback](../../com.aspose.words/idocumentloadingcallback/) - The corresponding [IDocumentLoadingCallback](../../com.aspose.words/idocumentloadingcallback/) value.
689+
### getRecoveryMode() {#getRecoveryMode}
690+
```
691+
public int getRecoveryMode()
692+
```
693+
694+
695+
Defines how the document should be handled if errors occur during loading. Use this property to specify whether the system should attempt to recover the document or follow another defined behavior. The default value is [DocumentRecoveryMode.TRY\_RECOVER](../../com.aspose.words/documentrecoverymode/\#TRY-RECOVER).
696+
697+
**Examples:**
698+
699+
Shows how to try to recover a document if errors occurred during loading.
700+
701+
```
702+
703+
LoadOptions loadOptions = new LoadOptions();
704+
loadOptions.setRecoveryMode(DocumentRecoveryMode.TRY_RECOVER);
705+
706+
Document doc = new Document(getMyDir() + "Corrupted footnotes.docx", loadOptions);
707+
708+
```
709+
710+
**Returns:**
711+
int - The corresponding int value. The returned value is one of [DocumentRecoveryMode](../../com.aspose.words/documentrecoverymode/) constants.
687712
### getResourceLoadingCallback() {#getResourceLoadingCallback}
688713
```
689714
public IResourceLoadingCallback getResourceLoadingCallback()
@@ -1483,6 +1508,32 @@ Shows how to notify the user if document loading exceeded expected loading time.
14831508
| --- | --- | --- |
14841509
| value | [IDocumentLoadingCallback](../../com.aspose.words/idocumentloadingcallback/) | The corresponding [IDocumentLoadingCallback](../../com.aspose.words/idocumentloadingcallback/) value. |
14851510

1511+
### setRecoveryMode(int value) {#setRecoveryMode-int}
1512+
```
1513+
public void setRecoveryMode(int value)
1514+
```
1515+
1516+
1517+
Defines how the document should be handled if errors occur during loading. Use this property to specify whether the system should attempt to recover the document or follow another defined behavior. The default value is [DocumentRecoveryMode.TRY\_RECOVER](../../com.aspose.words/documentrecoverymode/\#TRY-RECOVER).
1518+
1519+
**Examples:**
1520+
1521+
Shows how to try to recover a document if errors occurred during loading.
1522+
1523+
```
1524+
1525+
LoadOptions loadOptions = new LoadOptions();
1526+
loadOptions.setRecoveryMode(DocumentRecoveryMode.TRY_RECOVER);
1527+
1528+
Document doc = new Document(getMyDir() + "Corrupted footnotes.docx", loadOptions);
1529+
1530+
```
1531+
1532+
**Parameters:**
1533+
| Parameter | Type | Description |
1534+
| --- | --- | --- |
1535+
| value | int | The corresponding int value. The value must be one of [DocumentRecoveryMode](../../com.aspose.words/documentrecoverymode/) constants. |
1536+
14861537
### setResourceLoadingCallback(IResourceLoadingCallback value) {#setResourceLoadingCallback-com.aspose.words.IResourceLoadingCallback}
14871538
```
14881539
public void setResourceLoadingCallback(IResourceLoadingCallback value)

english/java/com.aspose.words/commentrangeend/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ public boolean isComposite()
13371337
```
13381338

13391339

1340-
Returns true if this node can contain other nodes. (194825,6)
1340+
Returns true if this node can contain other nodes. (195198,6)
13411341

13421342
**Examples:**
13431343

english/java/com.aspose.words/commentrangestart/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ public boolean isComposite()
13371337
```
13381338

13391339

1340-
Returns true if this node can contain other nodes. (194825,6)
1340+
Returns true if this node can contain other nodes. (195198,6)
13411341

13421342
**Examples:**
13431343

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
---
2+
title: DocumentRecoveryMode
3+
linktitle: DocumentRecoveryMode
4+
second_title: Aspose.Words for Java
5+
description: Specifies the available recovery options when a document encounters errors during loading in Java.
6+
type: docs
7+
weight: 170
8+
url: /java/com.aspose.words/documentrecoverymode/
9+
---
10+
11+
**Inheritance:**
12+
java.lang.Object
13+
```
14+
public class DocumentRecoveryMode
15+
```
16+
17+
Specifies the available recovery options when a document encounters errors during loading.
18+
19+
**Examples:**
20+
21+
Shows how to try to recover a document if errors occurred during loading.
22+
23+
```
24+
25+
LoadOptions loadOptions = new LoadOptions();
26+
loadOptions.setRecoveryMode(DocumentRecoveryMode.TRY_RECOVER);
27+
28+
Document doc = new Document(getMyDir() + "Corrupted footnotes.docx", loadOptions);
29+
30+
```
31+
## Fields
32+
33+
| Field | Description |
34+
| --- | --- |
35+
| [NONE](#NONE) | No recovery is attempted. |
36+
| [TRY_RECOVER](#TRY-RECOVER) | Attempts to recover the document while preserving as much data as possible. |
37+
| [length](#length) | |
38+
## Methods
39+
40+
| Method | Description |
41+
| --- | --- |
42+
| [fromName(String documentRecoveryModeName)](#fromName-java.lang.String) | |
43+
| [getName(int documentRecoveryMode)](#getName-int) | |
44+
| [getValues()](#getValues) | |
45+
| [toString(int documentRecoveryMode)](#toString-int) | |
46+
### NONE {#NONE}
47+
```
48+
public static int NONE
49+
```
50+
51+
52+
No recovery is attempted. If the document is invalid, loading will fail with an error.
53+
54+
### TRY_RECOVER {#TRY-RECOVER}
55+
```
56+
public static int TRY_RECOVER
57+
```
58+
59+
60+
Attempts to recover the document while preserving as much data as possible.
61+
62+
### length {#length}
63+
```
64+
public static int length
65+
```
66+
67+
68+
### fromName(String documentRecoveryModeName) {#fromName-java.lang.String}
69+
```
70+
public static int fromName(String documentRecoveryModeName)
71+
```
72+
73+
74+
75+
76+
**Parameters:**
77+
| Parameter | Type | Description |
78+
| --- | --- | --- |
79+
| documentRecoveryModeName | java.lang.String | |
80+
81+
**Returns:**
82+
int
83+
### getName(int documentRecoveryMode) {#getName-int}
84+
```
85+
public static String getName(int documentRecoveryMode)
86+
```
87+
88+
89+
90+
91+
**Parameters:**
92+
| Parameter | Type | Description |
93+
| --- | --- | --- |
94+
| documentRecoveryMode | int | |
95+
96+
**Returns:**
97+
java.lang.String
98+
### getValues() {#getValues}
99+
```
100+
public static int[] getValues()
101+
```
102+
103+
104+
105+
106+
**Returns:**
107+
int[]
108+
### toString(int documentRecoveryMode) {#toString-int}
109+
```
110+
public static String toString(int documentRecoveryMode)
111+
```
112+
113+
114+
115+
116+
**Parameters:**
117+
| Parameter | Type | Description |
118+
| --- | --- | --- |
119+
| documentRecoveryMode | int | |
120+
121+
**Returns:**
122+
java.lang.String

english/java/com.aspose.words/documentsavingargs/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ linktitle: DocumentSavingArgs
44
second_title: Aspose.Words for Java
55
description: An argument passed into IDocumentSavingCallback.notifycom.aspose.words.DocumentSavingArgs in Java.
66
type: docs
7-
weight: 170
7+
weight: 171
88
url: /java/com.aspose.words/documentsavingargs/
99
---
1010

english/java/com.aspose.words/documentsecurity/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ linktitle: DocumentSecurity
44
second_title: Aspose.Words for Java
55
description: Used as a value for the BuiltInDocumentProperties.getSecurity / BuiltInDocumentProperties.setSecurityint property in Java.
66
type: docs
7-
weight: 171
7+
weight: 172
88
url: /java/com.aspose.words/documentsecurity/
99
---
1010

0 commit comments

Comments
 (0)