Skip to content

Commit 0bf547d

Browse files
authored
Merge pull request #58 from aspose-pdf-cloud/develop
Develop
2 parents 2a9eb8a + a388c55 commit 0bf547d

File tree

8 files changed

+1605
-642
lines changed

8 files changed

+1605
-642
lines changed

README.md

+6-11
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
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.
3436
- 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

docs/TextState.md

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ Name | Type | Description | Notes
1010
**backgroundColor** | [**Color**](Color.md) | Sets background color of the text. | [optional]
1111
**fontStyle** | [**FontStyles**](FontStyles.md) | Sets font style of the text. |
1212
**fontFile** | **string** | Sets path of font file in storage. | [optional]
13+
**underline** | **boolean** | Gets or sets underline of the text. | [optional]
14+
**strikeOut** | **boolean** | Gets or sets strikeout of the text. | [optional]
15+
**superscript** | **boolean** | Gets or sets superscript mode of the text. | [optional]
16+
**subscript** | **boolean** | Gets or sets subscript mode of the text. | [optional]
1317

1418
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[View Source]](../src/models/textState.ts)
1519

package-lock.json

+1,538-626
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asposepdfcloud",
3-
"version": "22.2.0",
3+
"version": "22.3.0",
44
"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. 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.",
55
"homepage": "https://products.aspose.cloud/pdf/cloud",
66
"author": {

src/models/textState.ts

+36
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,22 @@ export class TextState {
5050
* Sets path of font file in storage.
5151
*/
5252
'fontFile': string;
53+
/**
54+
* Gets or sets underline of the text.
55+
*/
56+
'underline': boolean;
57+
/**
58+
* Gets or sets strikeout of the text.
59+
*/
60+
'strikeOut': boolean;
61+
/**
62+
* Gets or sets superscript mode of the text.
63+
*/
64+
'superscript': boolean;
65+
/**
66+
* Gets or sets subscript mode of the text.
67+
*/
68+
'subscript': boolean;
5369

5470
static discriminator = undefined;
5571

@@ -83,6 +99,26 @@ export class TextState {
8399
"name": "fontFile",
84100
"baseName": "FontFile",
85101
"type": "string"
102+
},
103+
{
104+
"name": "underline",
105+
"baseName": "Underline",
106+
"type": "boolean"
107+
},
108+
{
109+
"name": "strikeOut",
110+
"baseName": "StrikeOut",
111+
"type": "boolean"
112+
},
113+
{
114+
"name": "superscript",
115+
"baseName": "Superscript",
116+
"type": "boolean"
117+
},
118+
{
119+
"name": "subscript",
120+
"baseName": "Subscript",
121+
"type": "boolean"
86122
} ];
87123

88124
static getAttributeTypeMap() {

test/baseTestPdfApi.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ export function drawTable() {
7777
foregroundColor: { a: 0xFF, r: 0x00, g: 0xFF, b: 0x00 },
7878
backgroundColor: { a: 0xFF, r: 0xFF, g: 0x00, b: 0x00},
7979
fontStyle: FontStyles.Bold,
80-
fontFile: null
80+
fontFile: null,
81+
underline: false,
82+
strikeOut: false,
83+
superscript: false,
84+
subscript: false,
8185
};
8286

8387
const numOfCols = 5;

test/testHeaderFooter.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ describe("Header Footer Tests", () => {
6262
foregroundColor: { a: 0x00, r: 0x00, g: 0xFF, b: 0x00 },
6363
backgroundColor: { a: 0x00, r: 0xFF, g: 0x00, b: 0x00},
6464
fontStyle: FontStyles.Bold,
65-
fontFile: null
65+
fontFile: null,
66+
underline: false,
67+
strikeOut: false,
68+
superscript: false,
69+
subscript: false,
6670
};
6771

6872
const startPage = 2;
@@ -100,7 +104,11 @@ describe("Header Footer Tests", () => {
100104
foregroundColor: { a: 0x00, r: 0x00, g: 0xFF, b: 0x00 },
101105
backgroundColor: { a: 0x00, r: 0xFF, g: 0x00, b: 0x00},
102106
fontStyle: FontStyles.Bold,
103-
fontFile: null
107+
fontFile: null,
108+
underline: false,
109+
strikeOut: false,
110+
superscript: false,
111+
subscript: false,
104112
};
105113

106114
const startPage = 2;

test/testText.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ describe("Text Tests", () => {
9898
foregroundColor: { a: 0x00, r: 0x00, g: 0xFF, b: 0x00 },
9999
backgroundColor: { a: 0x00, r: 0xFF, g: 0x00, b: 0x00},
100100
fontStyle: FontStyles.Bold,
101-
fontFile: BaseTest.remoteTempFolder + '/' + fontName
101+
fontFile: BaseTest.remoteTempFolder + '/' + fontName,
102+
underline: false,
103+
strikeOut: false,
104+
superscript: false,
105+
subscript: false,
102106
}
103107
}
104108
]

0 commit comments

Comments
 (0)