Skip to content

Commit 3ba0aef

Browse files
authored
Merge pull request #88 from aspose-pdf-cloud/develop
update to 25.7
2 parents 7db83cb + bb530fa commit 3ba0aef

File tree

8 files changed

+259
-12
lines changed

8 files changed

+259
-12
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ 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 25.6
34-
- Develop Rotate Document Pages method.
33+
## Enhancements in Version 25.7
34+
- Add possibility to hide subject field in signature appearance.
3535
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
3636

37+
## Bugs fixed in Version 25.7
38+
- PostDeleteStamps removing stamps from PDF page is incorrect.
39+
3740
## Installation
3841
To install the API client library to your local Maven repository, simply execute:
3942

@@ -56,7 +59,7 @@ Add this dependency to your project's POM:
5659
<dependency>
5760
<groupId>com.aspose</groupId>
5861
<artifactId>aspose-cloud-pdf</artifactId>
59-
<version>25.6.0</version>
62+
<version>25.7.0</version>
6063
<scope>compile</scope>
6164
</dependency>
6265
```
@@ -65,7 +68,7 @@ Add this dependency to your project's POM:
6568
Add this dependency to your project's build file:
6669

6770
```groovy
68-
compile "com.aspose:aspose-cloud-pdf:25.6.0"
71+
compile "com.aspose:aspose-cloud-pdf:25.7.0"
6972
```
7073

7174
### Others
@@ -75,7 +78,7 @@ At first generate the JAR by executing:
7578

7679
Then manually install the following JARs:
7780

78-
* target/aspose-cloud-pdf-25.6.0.jar
81+
* target/aspose-cloud-pdf-25.7.0.jar
7982
* target/lib/*.jar
8083

8184
## Getting Started

build.gradle

Lines changed: 1 addition & 1 deletion
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 = '25.6.0'
23+
version = '25.7.0'
2424

2525
buildscript {
2626
repositories {

docs/SignatureCustomAppearance.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ An abstract class which represents signature custom appearance object.
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**fontFamilyName** | **String** | Gets/sets font family name. It should be existed in the document. Default value: Arial. | [optional]
9-
**fontSize** | **Double** | Gets/sets font size. Default value: 10. |
9+
**fontSize** | **Double** | Gets/sets font size. Default value: 10. | [optional]
10+
**rotation** | [**Rotation**](Rotation.md) | Gets or sets signature rotation. |
1011
**showContactInfo** | **Boolean** | Gets/sets contact info visibility. Default value: true. |
1112
**showReason** | **Boolean** | Gets/sets reason visibility. Default value: true. |
1213
**showLocation** | **Boolean** | Gets/sets location visibility. Default value: true. |
@@ -17,6 +18,10 @@ Name | Type | Description | Notes
1718
**dateSignedAtLabel** | **String** | Gets/sets date signed label. Default value: "Date". | [optional]
1819
**dateTimeLocalFormat** | **String** | Gets/sets datetime local format. Default value: "yyyy.MM.dd HH:mm:ss zzz". | [optional]
1920
**dateTimeFormat** | **String** | Gets/sets datetime format. Default value: "yyyy.MM.dd HH:mm:ss". | [optional]
21+
**backgroundColor** | [**Color**](Color.md) | Gets/sets background color. | [optional]
22+
**foregroundColor** | [**Color**](Color.md) | Gets/sets foreground color. | [optional]
23+
**useDigitalSubjectFormat** | **Boolean** | Gets/sets subject format usage. |
24+
**digitalSubjectFormat** | [**List&lt;SignatureSubjectNameElements&gt;**](SignatureSubjectNameElements.md) | Gets/sets subject format. | [optional]
2025

2126

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

docs/SignatureSubjectNameElements.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
# SignatureSubjectNameElements
3+
Represents an enumeration of available SubjectNameElements.
4+
5+
## Enum
6+
Name | Description
7+
------------ | ------------
8+
**CN** | Common Name.
9+
**O** | Organization.
10+
**L** | Locality.
11+
**OU** | Organizational Unit.
12+
**S** | State or Province Name.
13+
**C** | Common Name.
14+
**E** | Email.
15+
16+
17+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
18+
19+

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>25.6.0</version>
9+
<version>25.7.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
@@ -94,7 +94,7 @@ public ApiClient() {
9494

9595
// Add custom headers
9696
addDefaultHeader("x-aspose-client", "java sdk");
97-
addDefaultHeader("x-aspose-client-version", "25.6.0");
97+
addDefaultHeader("x-aspose-client-version", "25.7.0");
9898

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

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

Lines changed: 131 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
package com.aspose.asposecloudpdf.model;
2424

2525
import java.util.Objects;
26+
import com.aspose.asposecloudpdf.model.Color;
27+
import com.aspose.asposecloudpdf.model.Rotation;
28+
import com.aspose.asposecloudpdf.model.SignatureSubjectNameElements;
2629
import com.google.gson.TypeAdapter;
2730
import com.google.gson.annotations.JsonAdapter;
2831
import com.google.gson.annotations.SerializedName;
@@ -31,6 +34,8 @@
3134
import io.swagger.annotations.ApiModel;
3235
import io.swagger.annotations.ApiModelProperty;
3336
import java.io.IOException;
37+
import java.util.ArrayList;
38+
import java.util.List;
3439

3540
/**
3641
* An abstract class which represents signature custom appearance object.
@@ -44,6 +49,9 @@ public class SignatureCustomAppearance {
4449
@SerializedName("FontSize")
4550
private Double fontSize = null;
4651

52+
@SerializedName("Rotation")
53+
private Rotation rotation = null;
54+
4755
@SerializedName("ShowContactInfo")
4856
private Boolean showContactInfo = null;
4957

@@ -74,6 +82,18 @@ public class SignatureCustomAppearance {
7482
@SerializedName("DateTimeFormat")
7583
private String dateTimeFormat = null;
7684

85+
@SerializedName("BackgroundColor")
86+
private Color backgroundColor = null;
87+
88+
@SerializedName("ForegroundColor")
89+
private Color foregroundColor = null;
90+
91+
@SerializedName("UseDigitalSubjectFormat")
92+
private Boolean useDigitalSubjectFormat = null;
93+
94+
@SerializedName("DigitalSubjectFormat")
95+
private List<SignatureSubjectNameElements> digitalSubjectFormat = null;
96+
7797
public SignatureCustomAppearance fontFamilyName(String fontFamilyName) {
7898
this.fontFamilyName = fontFamilyName;
7999
return this;
@@ -101,7 +121,7 @@ public SignatureCustomAppearance fontSize(Double fontSize) {
101121
* Gets/sets font size. Default value: 10.
102122
* @return fontSize
103123
**/
104-
@ApiModelProperty(required = true, value = "Gets/sets font size. Default value: 10.")
124+
@ApiModelProperty(value = "Gets/sets font size. Default value: 10.")
105125
public Double getFontSize() {
106126
return fontSize;
107127
}
@@ -110,6 +130,24 @@ public void setFontSize(Double fontSize) {
110130
this.fontSize = fontSize;
111131
}
112132

133+
public SignatureCustomAppearance rotation(Rotation rotation) {
134+
this.rotation = rotation;
135+
return this;
136+
}
137+
138+
/**
139+
* Gets or sets signature rotation.
140+
* @return rotation
141+
**/
142+
@ApiModelProperty(required = true, value = "Gets or sets signature rotation.")
143+
public Rotation getRotation() {
144+
return rotation;
145+
}
146+
147+
public void setRotation(Rotation rotation) {
148+
this.rotation = rotation;
149+
}
150+
113151
public SignatureCustomAppearance showContactInfo(Boolean showContactInfo) {
114152
this.showContactInfo = showContactInfo;
115153
return this;
@@ -290,6 +328,86 @@ public void setDateTimeFormat(String dateTimeFormat) {
290328
this.dateTimeFormat = dateTimeFormat;
291329
}
292330

331+
public SignatureCustomAppearance backgroundColor(Color backgroundColor) {
332+
this.backgroundColor = backgroundColor;
333+
return this;
334+
}
335+
336+
/**
337+
* Gets/sets background color.
338+
* @return backgroundColor
339+
**/
340+
@ApiModelProperty(value = "Gets/sets background color.")
341+
public Color getBackgroundColor() {
342+
return backgroundColor;
343+
}
344+
345+
public void setBackgroundColor(Color backgroundColor) {
346+
this.backgroundColor = backgroundColor;
347+
}
348+
349+
public SignatureCustomAppearance foregroundColor(Color foregroundColor) {
350+
this.foregroundColor = foregroundColor;
351+
return this;
352+
}
353+
354+
/**
355+
* Gets/sets foreground color.
356+
* @return foregroundColor
357+
**/
358+
@ApiModelProperty(value = "Gets/sets foreground color.")
359+
public Color getForegroundColor() {
360+
return foregroundColor;
361+
}
362+
363+
public void setForegroundColor(Color foregroundColor) {
364+
this.foregroundColor = foregroundColor;
365+
}
366+
367+
public SignatureCustomAppearance useDigitalSubjectFormat(Boolean useDigitalSubjectFormat) {
368+
this.useDigitalSubjectFormat = useDigitalSubjectFormat;
369+
return this;
370+
}
371+
372+
/**
373+
* Gets/sets subject format usage.
374+
* @return useDigitalSubjectFormat
375+
**/
376+
@ApiModelProperty(required = true, value = "Gets/sets subject format usage.")
377+
public Boolean isUseDigitalSubjectFormat() {
378+
return useDigitalSubjectFormat;
379+
}
380+
381+
public void setUseDigitalSubjectFormat(Boolean useDigitalSubjectFormat) {
382+
this.useDigitalSubjectFormat = useDigitalSubjectFormat;
383+
}
384+
385+
public SignatureCustomAppearance digitalSubjectFormat(List<SignatureSubjectNameElements> digitalSubjectFormat) {
386+
this.digitalSubjectFormat = digitalSubjectFormat;
387+
return this;
388+
}
389+
390+
public SignatureCustomAppearance addDigitalSubjectFormatItem(SignatureSubjectNameElements digitalSubjectFormatItem) {
391+
if (this.digitalSubjectFormat == null) {
392+
this.digitalSubjectFormat = new ArrayList<SignatureSubjectNameElements>();
393+
}
394+
this.digitalSubjectFormat.add(digitalSubjectFormatItem);
395+
return this;
396+
}
397+
398+
/**
399+
* Gets/sets subject format.
400+
* @return digitalSubjectFormat
401+
**/
402+
@ApiModelProperty(value = "Gets/sets subject format.")
403+
public List<SignatureSubjectNameElements> getDigitalSubjectFormat() {
404+
return digitalSubjectFormat;
405+
}
406+
407+
public void setDigitalSubjectFormat(List<SignatureSubjectNameElements> digitalSubjectFormat) {
408+
this.digitalSubjectFormat = digitalSubjectFormat;
409+
}
410+
293411

294412
@Override
295413
public boolean equals(java.lang.Object o) {
@@ -302,6 +420,7 @@ public boolean equals(java.lang.Object o) {
302420
SignatureCustomAppearance signatureCustomAppearance = (SignatureCustomAppearance) o;
303421
return Objects.equals(this.fontFamilyName, signatureCustomAppearance.fontFamilyName) &&
304422
Objects.equals(this.fontSize, signatureCustomAppearance.fontSize) &&
423+
Objects.equals(this.rotation, signatureCustomAppearance.rotation) &&
305424
Objects.equals(this.showContactInfo, signatureCustomAppearance.showContactInfo) &&
306425
Objects.equals(this.showReason, signatureCustomAppearance.showReason) &&
307426
Objects.equals(this.showLocation, signatureCustomAppearance.showLocation) &&
@@ -311,12 +430,16 @@ public boolean equals(java.lang.Object o) {
311430
Objects.equals(this.digitalSignedLabel, signatureCustomAppearance.digitalSignedLabel) &&
312431
Objects.equals(this.dateSignedAtLabel, signatureCustomAppearance.dateSignedAtLabel) &&
313432
Objects.equals(this.dateTimeLocalFormat, signatureCustomAppearance.dateTimeLocalFormat) &&
314-
Objects.equals(this.dateTimeFormat, signatureCustomAppearance.dateTimeFormat);
433+
Objects.equals(this.dateTimeFormat, signatureCustomAppearance.dateTimeFormat) &&
434+
Objects.equals(this.backgroundColor, signatureCustomAppearance.backgroundColor) &&
435+
Objects.equals(this.foregroundColor, signatureCustomAppearance.foregroundColor) &&
436+
Objects.equals(this.useDigitalSubjectFormat, signatureCustomAppearance.useDigitalSubjectFormat) &&
437+
Objects.equals(this.digitalSubjectFormat, signatureCustomAppearance.digitalSubjectFormat);
315438
}
316439

317440
@Override
318441
public int hashCode() {
319-
return Objects.hash(fontFamilyName, fontSize, showContactInfo, showReason, showLocation, contactInfoLabel, reasonLabel, locationLabel, digitalSignedLabel, dateSignedAtLabel, dateTimeLocalFormat, dateTimeFormat);
442+
return Objects.hash(fontFamilyName, fontSize, rotation, showContactInfo, showReason, showLocation, contactInfoLabel, reasonLabel, locationLabel, digitalSignedLabel, dateSignedAtLabel, dateTimeLocalFormat, dateTimeFormat, backgroundColor, foregroundColor, useDigitalSubjectFormat, digitalSubjectFormat);
320443
}
321444

322445

@@ -327,6 +450,7 @@ public String toString() {
327450

328451
sb.append(" fontFamilyName: ").append(toIndentedString(fontFamilyName)).append("\n");
329452
sb.append(" fontSize: ").append(toIndentedString(fontSize)).append("\n");
453+
sb.append(" rotation: ").append(toIndentedString(rotation)).append("\n");
330454
sb.append(" showContactInfo: ").append(toIndentedString(showContactInfo)).append("\n");
331455
sb.append(" showReason: ").append(toIndentedString(showReason)).append("\n");
332456
sb.append(" showLocation: ").append(toIndentedString(showLocation)).append("\n");
@@ -337,6 +461,10 @@ public String toString() {
337461
sb.append(" dateSignedAtLabel: ").append(toIndentedString(dateSignedAtLabel)).append("\n");
338462
sb.append(" dateTimeLocalFormat: ").append(toIndentedString(dateTimeLocalFormat)).append("\n");
339463
sb.append(" dateTimeFormat: ").append(toIndentedString(dateTimeFormat)).append("\n");
464+
sb.append(" backgroundColor: ").append(toIndentedString(backgroundColor)).append("\n");
465+
sb.append(" foregroundColor: ").append(toIndentedString(foregroundColor)).append("\n");
466+
sb.append(" useDigitalSubjectFormat: ").append(toIndentedString(useDigitalSubjectFormat)).append("\n");
467+
sb.append(" digitalSubjectFormat: ").append(toIndentedString(digitalSubjectFormat)).append("\n");
340468
sb.append("}");
341469
return sb.toString();
342470
}

0 commit comments

Comments
 (0)