From c42d6327274815f9ae318bff24a9d70ed3044292 Mon Sep 17 00:00:00 2001 From: Oleg Subachev Date: Wed, 23 Mar 2022 06:01:44 -0500 Subject: [PATCH] update to 22.3 --- README.md | 25 ++--- build.gradle | 4 +- docs/TextState.md | 4 + pom.xml | 2 +- .../com/aspose/asposecloudpdf/ApiClient.java | 2 +- .../asposecloudpdf/model/TextState.java | 96 ++++++++++++++++++- 6 files changed, 112 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 3eaef9d..ed566b8 100644 --- a/README.md +++ b/README.md @@ -30,19 +30,14 @@ XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text ## Read PDF Formats MHT, PCL, PS, XSLFO, MD -## Enhancements in Version 22.2 -- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .Net. +## Enhancements in Version 22.3 +- PDFCLOUD-2729: Add StrikeOut, Superscript, Subscript properties to TextState. +- PDFCLOUD-2623: Underline property is missing in TextState. +- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET. -## Bugs fixed in Version 22.2 -- PDF to XLSX: Google sheet does not recognize output excel sheet. -- Text Replace API method throws Internal Error. - -## Enhancements in Version 20.9 -* Implemented custom fonts for Text API. -* Added custom fonts for Table API. -* Added support for custom fonts for Stamps API. -* Support for custom fonts for Header/Footer API. -* Included custom fonts for Replace Text API. +## Bugs fixed in Version 22.3 +- PDFCLOUD-2714: GetFields API method not extracting PDF form fields. +- PDFCLOUD-2641: PostSplitDocument returns wrong path. ## Installation To install the API client library to your local Maven repository, simply execute: @@ -66,7 +61,7 @@ Add this dependency to your project's POM: com.aspose aspose-cloud-pdf - 22.2.0 + 22.3.0 compile ``` @@ -75,7 +70,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.aspose:aspose-cloud-pdf:22.2.0" +compile "com.aspose:aspose-cloud-pdf:22.3.0" ``` ### Others @@ -86,7 +81,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* target/aspose-cloud-pdf-22.2.0.jar +* target/aspose-cloud-pdf-22.3.0.jar * target/lib/*.jar ## Getting Started diff --git a/build.gradle b/build.gradle index bc1f75b..8d1f42e 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'com.aspose' -version = '22.2.0' +version = '22.3.0' buildscript { repositories { @@ -84,7 +84,7 @@ dependencies { publish { groupId = 'com.aspose' artifactId = 'aspose-pdf-cloud' - publishVersion = '22.2.0' + publishVersion = '22.3.0' desc = 'Aspose.PDF Cloud is a REST API for creating and editing PDF files. Most popular features proposed by Aspose.PDF Cloud: PDF to Word, Convert PDF to Image, Merge PDF, Split PDF, Add Images to PDF, Rotate PDF. It can also be used to convert PDF files to different formats like DOC, HTML, XPS, TIFF and many more. Aspose.PDF Cloud gives you control: create PDFs from scratch or from HTML, XML, template, database, XPS or an image. Render PDFs to image formats such as JPEG, PNG, GIF, BMP, TIFF and many others. Aspose.PDF Cloud helps you manipulate elements of a PDF file like text, annotations, watermarks, signatures, bookmarks, stamps and so on. Its REST API also allows you to manage PDF pages by using features like merging, splitting, and inserting. Add images to a PDF file or convert PDF pages to images.' licences = ['MIT'] website = 'https://products.aspose.cloud/pdf/cloud' diff --git a/docs/TextState.md b/docs/TextState.md index 161583e..4d8ce4d 100644 --- a/docs/TextState.md +++ b/docs/TextState.md @@ -11,6 +11,10 @@ Name | Type | Description | Notes **backgroundColor** | [**Color**](Color.md) | Sets background color of the text. | [optional] **fontStyle** | [**FontStyles**](FontStyles.md) | Sets font style of the text. | **fontFile** | **String** | Sets path of font file in storage. | [optional] +**underline** | **Boolean** | Gets or sets underline of the text. | [optional] +**strikeOut** | **Boolean** | Gets or sets strikeout of the text. | [optional] +**superscript** | **Boolean** | Gets or sets superscript mode of the text. | [optional] +**subscript** | **Boolean** | Gets or sets subscript mode of the text. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/pom.xml b/pom.xml index 6271aa1..6b3b436 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ aspose-pdf-cloud jar aspose-pdf-cloud - 22.2.0 + 22.3.0 https://www.aspose.cloud/ Aspose.PDF Cloud is a REST API for creating and editing PDF files. Most popular features proposed by Aspose.PDF Cloud: PDF to Word, Convert PDF to Image, Merge PDF, Split PDF, Add Images to PDF, Rotate PDF. diff --git a/src/main/java/com/aspose/asposecloudpdf/ApiClient.java b/src/main/java/com/aspose/asposecloudpdf/ApiClient.java index 6d049b3..837156e 100644 --- a/src/main/java/com/aspose/asposecloudpdf/ApiClient.java +++ b/src/main/java/com/aspose/asposecloudpdf/ApiClient.java @@ -92,7 +92,7 @@ public ApiClient() { // Add custom headers addDefaultHeader("x-aspose-client", "java sdk"); - addDefaultHeader("x-aspose-client-version", "22.2.0"); + addDefaultHeader("x-aspose-client-version", "22.3.0"); // PDFCLOUD-418 Set default Connect Timeout setConnectTimeout(5 * 60 * 1000); diff --git a/src/main/java/com/aspose/asposecloudpdf/model/TextState.java b/src/main/java/com/aspose/asposecloudpdf/model/TextState.java index 4f7483e..aa0d3c8 100644 --- a/src/main/java/com/aspose/asposecloudpdf/model/TextState.java +++ b/src/main/java/com/aspose/asposecloudpdf/model/TextState.java @@ -58,6 +58,18 @@ public class TextState { @SerializedName("FontFile") private String fontFile = null; + @SerializedName("Underline") + private Boolean underline = null; + + @SerializedName("StrikeOut") + private Boolean strikeOut = null; + + @SerializedName("Superscript") + private Boolean superscript = null; + + @SerializedName("Subscript") + private Boolean subscript = null; + public TextState fontSize(Double fontSize) { this.fontSize = fontSize; return this; @@ -166,6 +178,78 @@ public void setFontFile(String fontFile) { this.fontFile = fontFile; } + public TextState underline(Boolean underline) { + this.underline = underline; + return this; + } + + /** + * Gets or sets underline of the text. + * @return underline + **/ + @ApiModelProperty(value = "Gets or sets underline of the text.") + public Boolean isUnderline() { + return underline; + } + + public void setUnderline(Boolean underline) { + this.underline = underline; + } + + public TextState strikeOut(Boolean strikeOut) { + this.strikeOut = strikeOut; + return this; + } + + /** + * Gets or sets strikeout of the text. + * @return strikeOut + **/ + @ApiModelProperty(value = "Gets or sets strikeout of the text.") + public Boolean isStrikeOut() { + return strikeOut; + } + + public void setStrikeOut(Boolean strikeOut) { + this.strikeOut = strikeOut; + } + + public TextState superscript(Boolean superscript) { + this.superscript = superscript; + return this; + } + + /** + * Gets or sets superscript mode of the text. + * @return superscript + **/ + @ApiModelProperty(value = "Gets or sets superscript mode of the text.") + public Boolean isSuperscript() { + return superscript; + } + + public void setSuperscript(Boolean superscript) { + this.superscript = superscript; + } + + public TextState subscript(Boolean subscript) { + this.subscript = subscript; + return this; + } + + /** + * Gets or sets subscript mode of the text. + * @return subscript + **/ + @ApiModelProperty(value = "Gets or sets subscript mode of the text.") + public Boolean isSubscript() { + return subscript; + } + + public void setSubscript(Boolean subscript) { + this.subscript = subscript; + } + @Override public boolean equals(java.lang.Object o) { @@ -181,12 +265,16 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.foregroundColor, textState.foregroundColor) && Objects.equals(this.backgroundColor, textState.backgroundColor) && Objects.equals(this.fontStyle, textState.fontStyle) && - Objects.equals(this.fontFile, textState.fontFile); + Objects.equals(this.fontFile, textState.fontFile) && + Objects.equals(this.underline, textState.underline) && + Objects.equals(this.strikeOut, textState.strikeOut) && + Objects.equals(this.superscript, textState.superscript) && + Objects.equals(this.subscript, textState.subscript); } @Override public int hashCode() { - return Objects.hash(fontSize, font, foregroundColor, backgroundColor, fontStyle, fontFile); + return Objects.hash(fontSize, font, foregroundColor, backgroundColor, fontStyle, fontFile, underline, strikeOut, superscript, subscript); } @@ -201,6 +289,10 @@ public String toString() { sb.append(" backgroundColor: ").append(toIndentedString(backgroundColor)).append("\n"); sb.append(" fontStyle: ").append(toIndentedString(fontStyle)).append("\n"); sb.append(" fontFile: ").append(toIndentedString(fontFile)).append("\n"); + sb.append(" underline: ").append(toIndentedString(underline)).append("\n"); + sb.append(" strikeOut: ").append(toIndentedString(strikeOut)).append("\n"); + sb.append(" superscript: ").append(toIndentedString(superscript)).append("\n"); + sb.append(" subscript: ").append(toIndentedString(subscript)).append("\n"); sb.append("}"); return sb.toString(); }