Skip to content

Commit 0b64b54

Browse files
Merge branch 'master' into release
2 parents 6801ea0 + 7a3cb8c commit 0b64b54

File tree

7 files changed

+54
-22
lines changed

7 files changed

+54
-22
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ 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.11
17+
18+
- Added 'EmbedAttachments' property for PdfSaveOptionsData class.
19+
20+
1621
## Enhancements in Version 22.10
1722

1823
- Added 'CacheHeaderFooterShapes' property for PdfSaveOptionsData class.
@@ -251,7 +256,7 @@ Add this dependency to your project's POM:
251256
<dependency>
252257
<groupId>com.aspose</groupId>
253258
<artifactId>aspose-words-cloud</artifactId>
254-
<version>22.10.0</version>
259+
<version>22.11.0</version>
255260
</dependency>
256261
</dependencies>
257262
```

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.10.0</version>
7+
<version>22.11.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
@@ -59,7 +59,7 @@ public class ApiClient {
5959
private String apiVersion = "v4.0";
6060
private String baseUrl = "https://api.aspose.cloud";
6161
private String basePath = baseUrl + "/" + apiVersion;
62-
private String clientVersion = "22.10";
62+
private String clientVersion = "22.11";
6363
private boolean debugging = false;
6464
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
6565
private String tempFolderPath = null;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@
4444

4545
/**
4646
* Represents options for parsing CSV data.
47+
* To learn more, visit the LINQ Reporting Engine documentation article.
4748
*/
48-
@ApiModel(description = "Represents options for parsing CSV data.")
49+
@ApiModel(description = "Represents options for parsing CSV data. To learn more, visit the LINQ Reporting Engine documentation article.")
4950
public class CsvDataLoadOptions implements ModelIfc {
5051
@SerializedName("CommentChar")
5152
protected String commentChar;

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

Lines changed: 40 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,8 @@ public ZoomBehaviorEnum read(final JsonReader jsonReader) throws IOException {
434434
}
435435
}
436436

437-
@SerializedName("CacheHeaderFooterShapes")
438-
protected Boolean cacheHeaderFooterShapes;
437+
@SerializedName("CacheBackgroundGraphics")
438+
protected Boolean cacheBackgroundGraphics;
439439

440440
@SerializedName("Compliance")
441441
protected ComplianceEnum compliance;
@@ -455,6 +455,9 @@ public ZoomBehaviorEnum read(final JsonReader jsonReader) throws IOException {
455455
@SerializedName("DownsampleOptions")
456456
protected DownsampleOptionsData downsampleOptions;
457457

458+
@SerializedName("EmbedAttachments")
459+
protected Boolean embedAttachments;
460+
458461
@SerializedName("EmbedFullFonts")
459462
protected Boolean embedFullFonts;
460463

@@ -512,21 +515,21 @@ public ZoomBehaviorEnum read(final JsonReader jsonReader) throws IOException {
512515
@SerializedName("ZoomFactor")
513516
protected Integer zoomFactor;
514517
/**
515-
* Gets or sets a value indicating whether or not to cache shapes placed in header and footer of document.
516-
* @return cacheHeaderFooterShapes
518+
* Gets or sets a value determining whether or not to cache graphics placed in document's background.
519+
* @return cacheBackgroundGraphics
517520
**/
518-
@ApiModelProperty(value = "Gets or sets a value indicating whether or not to cache shapes placed in header and footer of document.")
519-
public Boolean getCacheHeaderFooterShapes() {
520-
return cacheHeaderFooterShapes;
521+
@ApiModelProperty(value = "Gets or sets a value determining whether or not to cache graphics placed in document's background.")
522+
public Boolean getCacheBackgroundGraphics() {
523+
return cacheBackgroundGraphics;
521524
}
522525

523-
public PdfSaveOptionsData cacheHeaderFooterShapes(Boolean cacheHeaderFooterShapes) {
524-
this.cacheHeaderFooterShapes = cacheHeaderFooterShapes;
526+
public PdfSaveOptionsData cacheBackgroundGraphics(Boolean cacheBackgroundGraphics) {
527+
this.cacheBackgroundGraphics = cacheBackgroundGraphics;
525528
return this;
526529
}
527530

528-
public void setCacheHeaderFooterShapes(Boolean cacheHeaderFooterShapes) {
529-
this.cacheHeaderFooterShapes = cacheHeaderFooterShapes;
531+
public void setCacheBackgroundGraphics(Boolean cacheBackgroundGraphics) {
532+
this.cacheBackgroundGraphics = cacheBackgroundGraphics;
530533
}
531534

532535

@@ -647,6 +650,25 @@ public void setDownsampleOptions(DownsampleOptionsData downsampleOptions) {
647650
}
648651

649652

653+
/**
654+
* Gets or sets a value determining whether or not to embed attachments to the PDF document.
655+
* @return embedAttachments
656+
**/
657+
@ApiModelProperty(value = "Gets or sets a value determining whether or not to embed attachments to the PDF document.")
658+
public Boolean getEmbedAttachments() {
659+
return embedAttachments;
660+
}
661+
662+
public PdfSaveOptionsData embedAttachments(Boolean embedAttachments) {
663+
this.embedAttachments = embedAttachments;
664+
return this;
665+
}
666+
667+
public void setEmbedAttachments(Boolean embedAttachments) {
668+
this.embedAttachments = embedAttachments;
669+
}
670+
671+
650672
/**
651673
* Gets or sets a value indicating whether fonts are embedded into the resulting PDF documents.
652674
* @return embedFullFonts
@@ -1011,13 +1033,14 @@ public void setZoomFactor(Integer zoomFactor) {
10111033

10121034
public PdfSaveOptionsData() {
10131035
super();
1014-
this.cacheHeaderFooterShapes = null;
1036+
this.cacheBackgroundGraphics = null;
10151037
this.compliance = null;
10161038
this.createNoteHyperlinks = null;
10171039
this.customPropertiesExport = null;
10181040
this.digitalSignatureDetails = null;
10191041
this.displayDocTitle = null;
10201042
this.downsampleOptions = null;
1043+
this.embedAttachments = null;
10211044
this.embedFullFonts = null;
10221045
this.encryptionDetails = null;
10231046
this.exportDocumentStructure = null;
@@ -1060,13 +1083,14 @@ public boolean equals(java.lang.Object o) {
10601083

10611084
PdfSaveOptionsData pdfSaveOptionsData = (PdfSaveOptionsData) o;
10621085
return
1063-
Objects.equals(this.cacheHeaderFooterShapes, pdfSaveOptionsData.cacheHeaderFooterShapes) &&
1086+
Objects.equals(this.cacheBackgroundGraphics, pdfSaveOptionsData.cacheBackgroundGraphics) &&
10641087
Objects.equals(this.compliance, pdfSaveOptionsData.compliance) &&
10651088
Objects.equals(this.createNoteHyperlinks, pdfSaveOptionsData.createNoteHyperlinks) &&
10661089
Objects.equals(this.customPropertiesExport, pdfSaveOptionsData.customPropertiesExport) &&
10671090
Objects.equals(this.digitalSignatureDetails, pdfSaveOptionsData.digitalSignatureDetails) &&
10681091
Objects.equals(this.displayDocTitle, pdfSaveOptionsData.displayDocTitle) &&
10691092
Objects.equals(this.downsampleOptions, pdfSaveOptionsData.downsampleOptions) &&
1093+
Objects.equals(this.embedAttachments, pdfSaveOptionsData.embedAttachments) &&
10701094
Objects.equals(this.embedFullFonts, pdfSaveOptionsData.embedFullFonts) &&
10711095
Objects.equals(this.encryptionDetails, pdfSaveOptionsData.encryptionDetails) &&
10721096
Objects.equals(this.exportDocumentStructure, pdfSaveOptionsData.exportDocumentStructure) &&
@@ -1091,7 +1115,7 @@ public boolean equals(java.lang.Object o) {
10911115

10921116
@Override
10931117
public int hashCode() {
1094-
return Objects.hash(cacheHeaderFooterShapes, compliance, createNoteHyperlinks, customPropertiesExport, digitalSignatureDetails, displayDocTitle, downsampleOptions, embedFullFonts, encryptionDetails, exportDocumentStructure, exportLanguageToSpanTag, fontEmbeddingMode, headerFooterBookmarksExportMode, imageColorSpaceExportMode, imageCompression, interpolateImages, openHyperlinksInNewWindow, outlineOptions, pageMode, preblendImages, preserveFormFields, textCompression, useBookFoldPrintingSettings, useCoreFonts, zoomBehavior, zoomFactor, super.hashCode());
1118+
return Objects.hash(cacheBackgroundGraphics, compliance, createNoteHyperlinks, customPropertiesExport, digitalSignatureDetails, displayDocTitle, downsampleOptions, embedAttachments, embedFullFonts, encryptionDetails, exportDocumentStructure, exportLanguageToSpanTag, fontEmbeddingMode, headerFooterBookmarksExportMode, imageColorSpaceExportMode, imageCompression, interpolateImages, openHyperlinksInNewWindow, outlineOptions, pageMode, preblendImages, preserveFormFields, textCompression, useBookFoldPrintingSettings, useCoreFonts, zoomBehavior, zoomFactor, super.hashCode());
10951119
}
10961120

10971121
@Override
@@ -1118,13 +1142,14 @@ public String toString() {
11181142
sb.append(" optimizeOutput: ").append(toIndentedString(getOptimizeOutput())).append("\n");
11191143
sb.append(" pageCount: ").append(toIndentedString(getPageCount())).append("\n");
11201144
sb.append(" pageIndex: ").append(toIndentedString(getPageIndex())).append("\n");
1121-
sb.append(" cacheHeaderFooterShapes: ").append(toIndentedString(getCacheHeaderFooterShapes())).append("\n");
1145+
sb.append(" cacheBackgroundGraphics: ").append(toIndentedString(getCacheBackgroundGraphics())).append("\n");
11221146
sb.append(" compliance: ").append(toIndentedString(getCompliance())).append("\n");
11231147
sb.append(" createNoteHyperlinks: ").append(toIndentedString(getCreateNoteHyperlinks())).append("\n");
11241148
sb.append(" customPropertiesExport: ").append(toIndentedString(getCustomPropertiesExport())).append("\n");
11251149
sb.append(" digitalSignatureDetails: ").append(toIndentedString(getDigitalSignatureDetails())).append("\n");
11261150
sb.append(" displayDocTitle: ").append(toIndentedString(getDisplayDocTitle())).append("\n");
11271151
sb.append(" downsampleOptions: ").append(toIndentedString(getDownsampleOptions())).append("\n");
1152+
sb.append(" embedAttachments: ").append(toIndentedString(getEmbedAttachments())).append("\n");
11281153
sb.append(" embedFullFonts: ").append(toIndentedString(getEmbedFullFonts())).append("\n");
11291154
sb.append(" encryptionDetails: ").append(toIndentedString(getEncryptionDetails())).append("\n");
11301155
sb.append(" exportDocumentStructure: ").append(toIndentedString(getExportDocumentStructure())).append("\n");

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@
4444

4545
/**
4646
* Represents options for XML data loading.
47+
* To learn more, visit the LINQ Reporting Engine documentation article.
4748
*/
48-
@ApiModel(description = "Represents options for XML data loading.")
49+
@ApiModel(description = "Represents options for XML data loading. To learn more, visit the LINQ Reporting Engine documentation article.")
4950
public class XmlDataLoadOptions implements ModelIfc {
5051
@SerializedName("AlwaysGenerateRootObject")
5152
protected Boolean alwaysGenerateRootObject;

src/test/java/com/aspose/words/cloud/api/pageSetup/TestPageSetup.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public void testGetRenderPage() throws ApiException, MessagingException, IOExcep
189189
RenderPageRequest request = new RenderPageRequest(
190190
remoteFileName,
191191
1,
192-
"bmp",
192+
"jpg",
193193
remoteDataFolder,
194194
null,
195195
null,
@@ -212,7 +212,7 @@ public void testGetRenderPageOnline() throws ApiException, MessagingException, I
212212
RenderPageOnlineRequest request = new RenderPageOnlineRequest(
213213
requestDocument,
214214
1,
215-
"bmp",
215+
"jpg",
216216
null,
217217
null,
218218
null,

0 commit comments

Comments
 (0)