Skip to content

Commit e63a200

Browse files
authored
Merge pull request #47 from aspose-pdf-cloud/develop
update to 22.3
2 parents 7768c67 + ce858bf commit e63a200

File tree

5 files changed

+107
-16
lines changed

5 files changed

+107
-16
lines changed

README.md

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

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

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

4641
## Requirements
4742
Building the API client library requires [Maven](https://maven.apache.org/) to be installed.

sdk/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 {
@@ -100,7 +100,7 @@ dependencies {
100100
publish {
101101
groupId = 'com.aspose'
102102
artifactId = 'aspose-cloud-pdf-android'
103-
publishVersion = '22.2.0'
103+
publishVersion = '22.3.0'
104104
desc = 'Aspose.PDF Cloud is a REST API for creating and editing PDF files. 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.'
105105
licences = ['MIT']
106106
website = 'https://products.aspose.cloud/pdf/cloud'

sdk/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)

sdk/src/main/java/com/aspose/asposecloudpdfandroid/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", "android 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);

sdk/src/main/java/com/aspose/asposecloudpdfandroid/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)