Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 10 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -66,7 +61,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-cloud-pdf</artifactId>
<version>22.2.0</version>
<version>22.3.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'com.aspose'
version = '22.2.0'
version = '22.3.0'

buildscript {
repositories {
Expand Down Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions docs/TextState.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<artifactId>aspose-pdf-cloud</artifactId>
<packaging>jar</packaging>
<name>aspose-pdf-cloud</name>
<version>22.2.0</version>
<version>22.3.0</version>
<url>https://www.aspose.cloud/</url>
<description>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.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/aspose/asposecloudpdf/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
96 changes: 94 additions & 2 deletions src/main/java/com/aspose/asposecloudpdf/model/TextState.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand All @@ -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);
}


Expand All @@ -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();
}
Expand Down