Skip to content

Commit c42d632

Browse files
update to 22.3
1 parent b4eedeb commit c42d632

File tree

6 files changed

+112
-21
lines changed

6 files changed

+112
-21
lines changed

README.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,14 @@ XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text
3030
## Read PDF Formats
3131
MHT, PCL, PS, XSLFO, MD
3232

33-
## Enhancements in Version 22.2
34-
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .Net.
33+
## Enhancements in Version 22.3
34+
- PDFCLOUD-2729: Add StrikeOut, Superscript, Subscript properties to TextState.
35+
- PDFCLOUD-2623: Underline property is missing in TextState.
36+
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
3537

36-
## Bugs fixed in Version 22.2
37-
- PDF to XLSX: Google sheet does not recognize output excel sheet.
38-
- Text Replace API method throws Internal Error.
39-
40-
## Enhancements in Version 20.9
41-
* Implemented custom fonts for Text API.
42-
* Added custom fonts for Table API.
43-
* Added support for custom fonts for Stamps API.
44-
* Support for custom fonts for Header/Footer API.
45-
* Included custom fonts for Replace Text API.
38+
## Bugs fixed in Version 22.3
39+
- PDFCLOUD-2714: GetFields API method not extracting PDF form fields.
40+
- PDFCLOUD-2641: PostSplitDocument returns wrong path.
4641

4742
## Installation
4843
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:
6661
<dependency>
6762
<groupId>com.aspose</groupId>
6863
<artifactId>aspose-cloud-pdf</artifactId>
69-
<version>22.2.0</version>
64+
<version>22.3.0</version>
7065
<scope>compile</scope>
7166
</dependency>
7267
```
@@ -75,7 +70,7 @@ Add this dependency to your project's POM:
7570
Add this dependency to your project's build file:
7671

7772
```groovy
78-
compile "com.aspose:aspose-cloud-pdf:22.2.0"
73+
compile "com.aspose:aspose-cloud-pdf:22.3.0"
7974
```
8075

8176
### Others
@@ -86,7 +81,7 @@ At first generate the JAR by executing:
8681

8782
Then manually install the following JARs:
8883

89-
* target/aspose-cloud-pdf-22.2.0.jar
84+
* target/aspose-cloud-pdf-22.3.0.jar
9085
* target/lib/*.jar
9186

9287
## Getting Started

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ apply plugin: 'idea'
2020
apply plugin: 'eclipse'
2121

2222
group = 'com.aspose'
23-
version = '22.2.0'
23+
version = '22.3.0'
2424

2525
buildscript {
2626
repositories {
@@ -84,7 +84,7 @@ dependencies {
8484
publish {
8585
groupId = 'com.aspose'
8686
artifactId = 'aspose-pdf-cloud'
87-
publishVersion = '22.2.0'
87+
publishVersion = '22.3.0'
8888
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.'
8989
licences = ['MIT']
9090
website = 'https://products.aspose.cloud/pdf/cloud'

docs/TextState.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Name | Type | Description | Notes
1111
**backgroundColor** | [**Color**](Color.md) | Sets background color of the text. | [optional]
1212
**fontStyle** | [**FontStyles**](FontStyles.md) | Sets font style of the text. |
1313
**fontFile** | **String** | Sets path of font file in storage. | [optional]
14+
**underline** | **Boolean** | Gets or sets underline of the text. | [optional]
15+
**strikeOut** | **Boolean** | Gets or sets strikeout of the text. | [optional]
16+
**superscript** | **Boolean** | Gets or sets superscript mode of the text. | [optional]
17+
**subscript** | **Boolean** | Gets or sets subscript mode of the text. | [optional]
1418

1519

1620
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<artifactId>aspose-pdf-cloud</artifactId>
77
<packaging>jar</packaging>
88
<name>aspose-pdf-cloud</name>
9-
<version>22.2.0</version>
9+
<version>22.3.0</version>
1010
<url>https://www.aspose.cloud/</url>
1111
<description>Aspose.PDF Cloud is a REST API for creating and editing PDF files.
1212
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.

src/main/java/com/aspose/asposecloudpdf/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public ApiClient() {
9292

9393
// Add custom headers
9494
addDefaultHeader("x-aspose-client", "java sdk");
95-
addDefaultHeader("x-aspose-client-version", "22.2.0");
95+
addDefaultHeader("x-aspose-client-version", "22.3.0");
9696

9797
// PDFCLOUD-418 Set default Connect Timeout
9898
setConnectTimeout(5 * 60 * 1000);

src/main/java/com/aspose/asposecloudpdf/model/TextState.java

Lines changed: 94 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ public class TextState {
5858
@SerializedName("FontFile")
5959
private String fontFile = null;
6060

61+
@SerializedName("Underline")
62+
private Boolean underline = null;
63+
64+
@SerializedName("StrikeOut")
65+
private Boolean strikeOut = null;
66+
67+
@SerializedName("Superscript")
68+
private Boolean superscript = null;
69+
70+
@SerializedName("Subscript")
71+
private Boolean subscript = null;
72+
6173
public TextState fontSize(Double fontSize) {
6274
this.fontSize = fontSize;
6375
return this;
@@ -166,6 +178,78 @@ public void setFontFile(String fontFile) {
166178
this.fontFile = fontFile;
167179
}
168180

181+
public TextState underline(Boolean underline) {
182+
this.underline = underline;
183+
return this;
184+
}
185+
186+
/**
187+
* Gets or sets underline of the text.
188+
* @return underline
189+
**/
190+
@ApiModelProperty(value = "Gets or sets underline of the text.")
191+
public Boolean isUnderline() {
192+
return underline;
193+
}
194+
195+
public void setUnderline(Boolean underline) {
196+
this.underline = underline;
197+
}
198+
199+
public TextState strikeOut(Boolean strikeOut) {
200+
this.strikeOut = strikeOut;
201+
return this;
202+
}
203+
204+
/**
205+
* Gets or sets strikeout of the text.
206+
* @return strikeOut
207+
**/
208+
@ApiModelProperty(value = "Gets or sets strikeout of the text.")
209+
public Boolean isStrikeOut() {
210+
return strikeOut;
211+
}
212+
213+
public void setStrikeOut(Boolean strikeOut) {
214+
this.strikeOut = strikeOut;
215+
}
216+
217+
public TextState superscript(Boolean superscript) {
218+
this.superscript = superscript;
219+
return this;
220+
}
221+
222+
/**
223+
* Gets or sets superscript mode of the text.
224+
* @return superscript
225+
**/
226+
@ApiModelProperty(value = "Gets or sets superscript mode of the text.")
227+
public Boolean isSuperscript() {
228+
return superscript;
229+
}
230+
231+
public void setSuperscript(Boolean superscript) {
232+
this.superscript = superscript;
233+
}
234+
235+
public TextState subscript(Boolean subscript) {
236+
this.subscript = subscript;
237+
return this;
238+
}
239+
240+
/**
241+
* Gets or sets subscript mode of the text.
242+
* @return subscript
243+
**/
244+
@ApiModelProperty(value = "Gets or sets subscript mode of the text.")
245+
public Boolean isSubscript() {
246+
return subscript;
247+
}
248+
249+
public void setSubscript(Boolean subscript) {
250+
this.subscript = subscript;
251+
}
252+
169253

170254
@Override
171255
public boolean equals(java.lang.Object o) {
@@ -181,12 +265,16 @@ public boolean equals(java.lang.Object o) {
181265
Objects.equals(this.foregroundColor, textState.foregroundColor) &&
182266
Objects.equals(this.backgroundColor, textState.backgroundColor) &&
183267
Objects.equals(this.fontStyle, textState.fontStyle) &&
184-
Objects.equals(this.fontFile, textState.fontFile);
268+
Objects.equals(this.fontFile, textState.fontFile) &&
269+
Objects.equals(this.underline, textState.underline) &&
270+
Objects.equals(this.strikeOut, textState.strikeOut) &&
271+
Objects.equals(this.superscript, textState.superscript) &&
272+
Objects.equals(this.subscript, textState.subscript);
185273
}
186274

187275
@Override
188276
public int hashCode() {
189-
return Objects.hash(fontSize, font, foregroundColor, backgroundColor, fontStyle, fontFile);
277+
return Objects.hash(fontSize, font, foregroundColor, backgroundColor, fontStyle, fontFile, underline, strikeOut, superscript, subscript);
190278
}
191279

192280

@@ -201,6 +289,10 @@ public String toString() {
201289
sb.append(" backgroundColor: ").append(toIndentedString(backgroundColor)).append("\n");
202290
sb.append(" fontStyle: ").append(toIndentedString(fontStyle)).append("\n");
203291
sb.append(" fontFile: ").append(toIndentedString(fontFile)).append("\n");
292+
sb.append(" underline: ").append(toIndentedString(underline)).append("\n");
293+
sb.append(" strikeOut: ").append(toIndentedString(strikeOut)).append("\n");
294+
sb.append(" superscript: ").append(toIndentedString(superscript)).append("\n");
295+
sb.append(" subscript: ").append(toIndentedString(subscript)).append("\n");
204296
sb.append("}");
205297
return sb.toString();
206298
}

0 commit comments

Comments
 (0)