Skip to content

Commit 1e5c22c

Browse files
authored
Merge pull request #52 from aspose-pdf-cloud/develop
update to 22.12
2 parents 3924168 + da0fa26 commit 1e5c22c

File tree

6 files changed

+34
-10
lines changed

6 files changed

+34
-10
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ 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.11
33+
## Enhancements in Version 22.12
3434
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
3535

3636
## Installation
@@ -55,7 +55,7 @@ Add this dependency to your project's POM:
5555
<dependency>
5656
<groupId>com.aspose</groupId>
5757
<artifactId>aspose-cloud-pdf</artifactId>
58-
<version>22.11.0</version>
58+
<version>22.12.0</version>
5959
<scope>compile</scope>
6060
</dependency>
6161
```
@@ -64,7 +64,7 @@ Add this dependency to your project's POM:
6464
Add this dependency to your project's build file:
6565

6666
```groovy
67-
compile "com.aspose:aspose-cloud-pdf:22.11.0"
67+
compile "com.aspose:aspose-cloud-pdf:22.12.0"
6868
```
6969

7070
### Others
@@ -75,7 +75,7 @@ At first generate the JAR by executing:
7575

7676
Then manually install the following JARs:
7777

78-
* target/aspose-cloud-pdf-22.11.0.jar
78+
* target/aspose-cloud-pdf-22.12.0.jar
7979
* target/lib/*.jar
8080

8181
## 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.11.0'
23+
version = '22.12.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.11.0'
87+
publishVersion = '22.12.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/TextReplace.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**regex** | **Boolean** | Gets or sets a value indicating whether search text is regular expression. |
1111
**textState** | [**TextState**](TextState.md) | Text properties of a new text. | [optional]
1212
**rect** | [**Rectangle**](Rectangle.md) | Rectangle area where searched original text. | [optional]
13+
**centerTextHorizontally** | **Boolean** | The text after replacement is centered horizontally relative to the text being replaced. | [optional]
1314

1415

1516
[[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.11.0</version>
9+
<version>22.12.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.11.0");
95+
addDefaultHeader("x-aspose-client-version", "22.12.0");
9696

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

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

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public class TextReplace {
5555
@SerializedName("Rect")
5656
private Rectangle rect = null;
5757

58+
@SerializedName("CenterTextHorizontally")
59+
private Boolean centerTextHorizontally = null;
60+
5861
public TextReplace oldValue(String oldValue) {
5962
this.oldValue = oldValue;
6063
return this;
@@ -145,6 +148,24 @@ public void setRect(Rectangle rect) {
145148
this.rect = rect;
146149
}
147150

151+
public TextReplace centerTextHorizontally(Boolean centerTextHorizontally) {
152+
this.centerTextHorizontally = centerTextHorizontally;
153+
return this;
154+
}
155+
156+
/**
157+
* The text after replacement is centered horizontally relative to the text being replaced.
158+
* @return centerTextHorizontally
159+
**/
160+
@ApiModelProperty(value = "The text after replacement is centered horizontally relative to the text being replaced.")
161+
public Boolean isCenterTextHorizontally() {
162+
return centerTextHorizontally;
163+
}
164+
165+
public void setCenterTextHorizontally(Boolean centerTextHorizontally) {
166+
this.centerTextHorizontally = centerTextHorizontally;
167+
}
168+
148169

149170
@Override
150171
public boolean equals(java.lang.Object o) {
@@ -159,12 +180,13 @@ public boolean equals(java.lang.Object o) {
159180
Objects.equals(this.newValue, textReplace.newValue) &&
160181
Objects.equals(this.regex, textReplace.regex) &&
161182
Objects.equals(this.textState, textReplace.textState) &&
162-
Objects.equals(this.rect, textReplace.rect);
183+
Objects.equals(this.rect, textReplace.rect) &&
184+
Objects.equals(this.centerTextHorizontally, textReplace.centerTextHorizontally);
163185
}
164186

165187
@Override
166188
public int hashCode() {
167-
return Objects.hash(oldValue, newValue, regex, textState, rect);
189+
return Objects.hash(oldValue, newValue, regex, textState, rect, centerTextHorizontally);
168190
}
169191

170192

@@ -178,6 +200,7 @@ public String toString() {
178200
sb.append(" regex: ").append(toIndentedString(regex)).append("\n");
179201
sb.append(" textState: ").append(toIndentedString(textState)).append("\n");
180202
sb.append(" rect: ").append(toIndentedString(rect)).append("\n");
203+
sb.append(" centerTextHorizontally: ").append(toIndentedString(centerTextHorizontally)).append("\n");
181204
sb.append("}");
182205
return sb.toString();
183206
}

0 commit comments

Comments
 (0)