Skip to content

Commit d1fb5fe

Browse files
Merge branch 'master' into release
2 parents 0bc9e58 + de8e05d commit d1fb5fe

19 files changed

+3167
-62
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@ This repository contains Aspose.Words Cloud SDK for Java source code. This SDK a
1313
* Watermarks and protection
1414
* Full read & write access to Document Object Model, including sections, paragraphs, text, images, tables, headers/footers and many others
1515

16+
## Enhancements in Version 22.6
17+
18+
- Added 'DeleteBookmark' and 'DeleteBookmarkOnline' API methods for delete bookmarks by name from the document.
19+
- Added 'DeleteBookmarks' and 'DeleteBookmarksOnline' API methods for delete all bookmarks from the document.
20+
- Added 'InsertBookmark' and 'InsertBookmarkOnline' API methods for create new bookmarks in the document.
21+
- Support all save formats for 'CreateDocument' operation.
22+
23+
24+
## Enhancements in Version 22.5
25+
26+
- Internal API fixes and improvments.
27+
28+
1629
## Enhancements in Version 22.4
1730

1831
- Added ExportShapesAsSvg to HtmlSaveOption.
@@ -212,7 +225,7 @@ Add this dependency to your project's POM:
212225
<dependency>
213226
<groupId>com.aspose</groupId>
214227
<artifactId>aspose-words-cloud</artifactId>
215-
<version>22.5.0</version>
228+
<version>22.6.0</version>
216229
</dependency>
217230
</dependencies>
218231
```
15.3 KB
Binary file not shown.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<artifactId>aspose-words-cloud</artifactId>
55
<packaging>jar</packaging>
66
<name>AsposeWordsCloud</name>
7-
<version>22.5.0</version>
7+
<version>22.6.0</version>
88
<url>https://www.aspose.cloud/</url>
99
<description>Aspose Words Java SDK</description>
1010
<scm>

src/main/java/com/aspose/words/cloud/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class ApiClient {
5858
private String apiVersion = "v4.0";
5959
private String baseUrl = "https://api.aspose.cloud";
6060
private String basePath = baseUrl + "/" + apiVersion;
61-
private String clientVersion = "22.5";
61+
private String clientVersion = "22.6";
6262
private boolean debugging = false;
6363
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
6464
private String tempFolderPath = null;

src/main/java/com/aspose/words/cloud/api/WordsApi.java

Lines changed: 505 additions & 3 deletions
Large diffs are not rendered by default.
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="BookmarkInsert.java">
4+
* Copyright (c) 2022 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
package com.aspose.words.cloud.model;
29+
30+
import java.util.Objects;
31+
import java.util.Arrays;
32+
import java.util.ArrayList;
33+
import java.util.List;
34+
import java.io.IOException;
35+
import org.threeten.bp.OffsetDateTime;
36+
import com.aspose.words.cloud.model.*;
37+
import com.google.gson.TypeAdapter;
38+
import com.google.gson.annotations.JsonAdapter;
39+
import com.google.gson.annotations.SerializedName;
40+
import com.google.gson.stream.JsonReader;
41+
import com.google.gson.stream.JsonWriter;
42+
import io.swagger.annotations.ApiModel;
43+
import io.swagger.annotations.ApiModelProperty;
44+
45+
/**
46+
* Represents a bookmark to insert.
47+
*/
48+
@ApiModel(description = "Represents a bookmark to insert.")
49+
public class BookmarkInsert extends BookmarkData {
50+
@SerializedName("EndRange")
51+
protected DocumentPosition endRange;
52+
53+
@SerializedName("StartRange")
54+
protected DocumentPosition startRange;
55+
/**
56+
* Gets or sets the link to end bookmark node.
57+
* @return endRange
58+
**/
59+
@ApiModelProperty(value = "Gets or sets the link to end bookmark node.")
60+
public DocumentPosition getEndRange() {
61+
return endRange;
62+
}
63+
64+
public BookmarkInsert endRange(DocumentPosition endRange) {
65+
this.endRange = endRange;
66+
return this;
67+
}
68+
69+
public void setEndRange(DocumentPosition endRange) {
70+
this.endRange = endRange;
71+
}
72+
73+
74+
/**
75+
* Gets or sets the link to start bookmark node.
76+
* @return startRange
77+
**/
78+
@ApiModelProperty(value = "Gets or sets the link to start bookmark node.")
79+
public DocumentPosition getStartRange() {
80+
return startRange;
81+
}
82+
83+
public BookmarkInsert startRange(DocumentPosition startRange) {
84+
this.startRange = startRange;
85+
return this;
86+
}
87+
88+
public void setStartRange(DocumentPosition startRange) {
89+
this.startRange = startRange;
90+
}
91+
92+
93+
public BookmarkInsert() {
94+
super();
95+
this.endRange = null;
96+
this.startRange = null;
97+
}
98+
99+
@Override
100+
public boolean equals(java.lang.Object o) {
101+
if (this == o) {
102+
return true;
103+
}
104+
if (o == null || getClass() != o.getClass()) {
105+
return false;
106+
}
107+
108+
BookmarkInsert bookmarkInsert = (BookmarkInsert) o;
109+
return
110+
Objects.equals(this.endRange, bookmarkInsert.endRange) &&
111+
Objects.equals(this.startRange, bookmarkInsert.startRange) &&
112+
super.equals(o);
113+
}
114+
115+
@Override
116+
public int hashCode() {
117+
return Objects.hash(endRange, startRange, super.hashCode());
118+
}
119+
120+
@Override
121+
public String toString() {
122+
StringBuilder sb = new StringBuilder();
123+
sb.append("class BookmarkInsert {\n");
124+
sb.append(" name: ").append(toIndentedString(getName())).append("\n");
125+
sb.append(" text: ").append(toIndentedString(getText())).append("\n");
126+
sb.append(" endRange: ").append(toIndentedString(getEndRange())).append("\n");
127+
sb.append(" startRange: ").append(toIndentedString(getStartRange())).append("\n");
128+
sb.append("}");
129+
return sb.toString();
130+
}
131+
132+
/**
133+
* Convert the given object to string with each line indented by 4 spaces
134+
* (except the first line).
135+
*/
136+
private String toIndentedString(java.lang.Object o) {
137+
if (o == null) {
138+
return "null";
139+
}
140+
return o.toString().replace("\n", "\n ");
141+
}
142+
}

src/main/java/com/aspose/words/cloud/model/EpubSaveOptionsData.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ public String toString() {
132132
sb.append(" exportPageSetup: ").append(toIndentedString(getExportPageSetup())).append("\n");
133133
sb.append(" exportRelativeFontSize: ").append(toIndentedString(getExportRelativeFontSize())).append("\n");
134134
sb.append(" exportRoundtripInformation: ").append(toIndentedString(getExportRoundtripInformation())).append("\n");
135-
sb.append(" exportShapesAsSvg: ").append(toIndentedString(getExportShapesAsSvg())).append("\n");
136-
sb.append(" exportTextBoxAsSvg: ").append(toIndentedString(getExportTextBoxAsSvg())).append("\n");
137135
sb.append(" exportTextInputFormFieldAsText: ").append(toIndentedString(getExportTextInputFormFieldAsText())).append("\n");
138136
sb.append(" exportTocPageNumbers: ").append(toIndentedString(getExportTocPageNumbers())).append("\n");
139137
sb.append(" exportXhtmlTransitional: ").append(toIndentedString(getExportXhtmlTransitional())).append("\n");

src/main/java/com/aspose/words/cloud/model/HtmlSaveOptionsData.java

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -489,12 +489,6 @@ public TableWidthOutputModeEnum read(final JsonReader jsonReader) throws IOExcep
489489
@SerializedName("ExportRoundtripInformation")
490490
protected Boolean exportRoundtripInformation;
491491

492-
@SerializedName("ExportShapesAsSvg")
493-
protected Boolean exportShapesAsSvg;
494-
495-
@SerializedName("ExportTextBoxAsSvg")
496-
protected Boolean exportTextBoxAsSvg;
497-
498492
@SerializedName("ExportTextInputFormFieldAsText")
499493
protected Boolean exportTextInputFormFieldAsText;
500494

@@ -933,45 +927,6 @@ public void setExportRoundtripInformation(Boolean exportRoundtripInformation) {
933927
}
934928

935929

936-
/**
937-
* Gets or sets the flag, that controls whether Aspose.Words.Drawing.Shape nodes are converted to SVG images when saving to HTML, MHTML or EPUB. Default value is false.
938-
* @return exportShapesAsSvg
939-
**/
940-
@ApiModelProperty(value = "Gets or sets the flag, that controls whether Aspose.Words.Drawing.Shape nodes are converted to SVG images when saving to HTML, MHTML or EPUB. Default value is false.")
941-
public Boolean getExportShapesAsSvg() {
942-
return exportShapesAsSvg;
943-
}
944-
945-
public HtmlSaveOptionsData exportShapesAsSvg(Boolean exportShapesAsSvg) {
946-
this.exportShapesAsSvg = exportShapesAsSvg;
947-
return this;
948-
}
949-
950-
public void setExportShapesAsSvg(Boolean exportShapesAsSvg) {
951-
this.exportShapesAsSvg = exportShapesAsSvg;
952-
}
953-
954-
955-
/**
956-
* Gets or sets the flag, that controls how textboxes represented by Aspose.Words.Drawing.Shape are saved to HTML, MHTML or EPUB. The default value is false.
957-
* When set to true, exports textboxes as inline "svg" elements. When false, exports as "image" elements.
958-
* @return exportTextBoxAsSvg
959-
**/
960-
@ApiModelProperty(value = "Gets or sets the flag, that controls how textboxes represented by Aspose.Words.Drawing.Shape are saved to HTML, MHTML or EPUB. The default value is false. When set to true, exports textboxes as inline \"svg\" elements. When false, exports as \"image\" elements.")
961-
public Boolean getExportTextBoxAsSvg() {
962-
return exportTextBoxAsSvg;
963-
}
964-
965-
public HtmlSaveOptionsData exportTextBoxAsSvg(Boolean exportTextBoxAsSvg) {
966-
this.exportTextBoxAsSvg = exportTextBoxAsSvg;
967-
return this;
968-
}
969-
970-
public void setExportTextBoxAsSvg(Boolean exportTextBoxAsSvg) {
971-
this.exportTextBoxAsSvg = exportTextBoxAsSvg;
972-
}
973-
974-
975930
/**
976931
* Gets or sets the flag, that controls how text input form fields are saved.
977932
* @return exportTextInputFormFieldAsText
@@ -1341,8 +1296,6 @@ public HtmlSaveOptionsData() {
13411296
this.exportPageSetup = null;
13421297
this.exportRelativeFontSize = null;
13431298
this.exportRoundtripInformation = null;
1344-
this.exportShapesAsSvg = null;
1345-
this.exportTextBoxAsSvg = null;
13461299
this.exportTextInputFormFieldAsText = null;
13471300
this.exportTocPageNumbers = null;
13481301
this.exportXhtmlTransitional = null;
@@ -1395,8 +1348,6 @@ public boolean equals(java.lang.Object o) {
13951348
Objects.equals(this.exportPageSetup, htmlSaveOptionsData.exportPageSetup) &&
13961349
Objects.equals(this.exportRelativeFontSize, htmlSaveOptionsData.exportRelativeFontSize) &&
13971350
Objects.equals(this.exportRoundtripInformation, htmlSaveOptionsData.exportRoundtripInformation) &&
1398-
Objects.equals(this.exportShapesAsSvg, htmlSaveOptionsData.exportShapesAsSvg) &&
1399-
Objects.equals(this.exportTextBoxAsSvg, htmlSaveOptionsData.exportTextBoxAsSvg) &&
14001351
Objects.equals(this.exportTextInputFormFieldAsText, htmlSaveOptionsData.exportTextInputFormFieldAsText) &&
14011352
Objects.equals(this.exportTocPageNumbers, htmlSaveOptionsData.exportTocPageNumbers) &&
14021353
Objects.equals(this.exportXhtmlTransitional, htmlSaveOptionsData.exportXhtmlTransitional) &&
@@ -1420,7 +1371,7 @@ public boolean equals(java.lang.Object o) {
14201371

14211372
@Override
14221373
public int hashCode() {
1423-
return Objects.hash(allowNegativeIndent, cssClassNamePrefix, cssStyleSheetFileName, cssStyleSheetType, documentSplitCriteria, documentSplitHeadingLevel, encoding, exportDocumentProperties, exportDropDownFormFieldAsText, exportFontResources, exportFontsAsBase64, exportHeadersFootersMode, exportImagesAsBase64, exportLanguageInformation, exportListLabels, exportOriginalUrlForLinkedImages, exportPageMargins, exportPageSetup, exportRelativeFontSize, exportRoundtripInformation, exportShapesAsSvg, exportTextBoxAsSvg, exportTextInputFormFieldAsText, exportTocPageNumbers, exportXhtmlTransitional, fontResourcesSubsettingSizeThreshold, fontsFolder, fontsFolderAlias, htmlVersion, imageResolution, imagesFolder, imagesFolderAlias, metafileFormat, officeMathOutputMode, prettyFormat, resolveFontNames, resourceFolder, resourceFolderAlias, scaleImageToShapeSize, tableWidthOutputMode, super.hashCode());
1374+
return Objects.hash(allowNegativeIndent, cssClassNamePrefix, cssStyleSheetFileName, cssStyleSheetType, documentSplitCriteria, documentSplitHeadingLevel, encoding, exportDocumentProperties, exportDropDownFormFieldAsText, exportFontResources, exportFontsAsBase64, exportHeadersFootersMode, exportImagesAsBase64, exportLanguageInformation, exportListLabels, exportOriginalUrlForLinkedImages, exportPageMargins, exportPageSetup, exportRelativeFontSize, exportRoundtripInformation, exportTextInputFormFieldAsText, exportTocPageNumbers, exportXhtmlTransitional, fontResourcesSubsettingSizeThreshold, fontsFolder, fontsFolderAlias, htmlVersion, imageResolution, imagesFolder, imagesFolderAlias, metafileFormat, officeMathOutputMode, prettyFormat, resolveFontNames, resourceFolder, resourceFolderAlias, scaleImageToShapeSize, tableWidthOutputMode, super.hashCode());
14241375
}
14251376

14261377
@Override
@@ -1461,8 +1412,6 @@ public String toString() {
14611412
sb.append(" exportPageSetup: ").append(toIndentedString(getExportPageSetup())).append("\n");
14621413
sb.append(" exportRelativeFontSize: ").append(toIndentedString(getExportRelativeFontSize())).append("\n");
14631414
sb.append(" exportRoundtripInformation: ").append(toIndentedString(getExportRoundtripInformation())).append("\n");
1464-
sb.append(" exportShapesAsSvg: ").append(toIndentedString(getExportShapesAsSvg())).append("\n");
1465-
sb.append(" exportTextBoxAsSvg: ").append(toIndentedString(getExportTextBoxAsSvg())).append("\n");
14661415
sb.append(" exportTextInputFormFieldAsText: ").append(toIndentedString(getExportTextInputFormFieldAsText())).append("\n");
14671416
sb.append(" exportTocPageNumbers: ").append(toIndentedString(getExportTocPageNumbers())).append("\n");
14681417
sb.append(" exportXhtmlTransitional: ").append(toIndentedString(getExportXhtmlTransitional())).append("\n");

src/main/java/com/aspose/words/cloud/model/MhtmlSaveOptionsData.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ public String toString() {
132132
sb.append(" exportPageSetup: ").append(toIndentedString(getExportPageSetup())).append("\n");
133133
sb.append(" exportRelativeFontSize: ").append(toIndentedString(getExportRelativeFontSize())).append("\n");
134134
sb.append(" exportRoundtripInformation: ").append(toIndentedString(getExportRoundtripInformation())).append("\n");
135-
sb.append(" exportShapesAsSvg: ").append(toIndentedString(getExportShapesAsSvg())).append("\n");
136-
sb.append(" exportTextBoxAsSvg: ").append(toIndentedString(getExportTextBoxAsSvg())).append("\n");
137135
sb.append(" exportTextInputFormFieldAsText: ").append(toIndentedString(getExportTextInputFormFieldAsText())).append("\n");
138136
sb.append(" exportTocPageNumbers: ").append(toIndentedString(getExportTocPageNumbers())).append("\n");
139137
sb.append(" exportXhtmlTransitional: ").append(toIndentedString(getExportXhtmlTransitional())).append("\n");

0 commit comments

Comments
 (0)