Skip to content

Commit ada4e47

Browse files
authored
Merge pull request #48 from aspose-pdf-cloud/develop
update to 22.3
2 parents 9f2d2d8 + 33ef634 commit ada4e47

File tree

4 files changed

+58
-19
lines changed

4 files changed

+58
-19
lines changed

README.md

Lines changed: 9 additions & 14 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
## Installation
4742

@@ -56,15 +51,15 @@ gem build aspose_pdf_cloud.gemspec
5651
Then either install the gem locally:
5752

5853
```shell
59-
gem install ./aspose_pdf_cloud-22.2.0.gem
54+
gem install ./aspose_pdf_cloud-22.3.0.gem
6055
```
61-
(for development, run `gem install --dev ./aspose_pdf_cloud-22.2.0.gem` to install the development dependencies)
56+
(for development, run `gem install --dev ./aspose_pdf_cloud-22.3.0.gem` to install the development dependencies)
6257

6358
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
6459

6560
Finally add this to the Gemfile:
6661

67-
gem 'aspose_pdf_cloud', '~> 22.2.0'
62+
gem 'aspose_pdf_cloud', '~> 22.3.0'
6863

6964
### Install from Git
7065

docs/TextState.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@ Name | Type | Description | Notes
1010
**background_color** | [**Color**](Color.md) | Sets background color of the text. | [optional]
1111
**font_style** | [**FontStyles**](FontStyles.md) | Sets font style of the text. |
1212
**font_file** | **String** | Sets path of font file in storage. | [optional]
13+
**underline** | **BOOLEAN** | Gets or sets underline of the text. | [optional]
14+
**strike_out** | **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

lib/aspose_pdf_cloud/models/text_state.rb

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ class TextState
4343
# Sets path of font file in storage.
4444
attr_accessor :font_file
4545

46+
# Gets or sets underline of the text.
47+
attr_accessor :underline
48+
49+
# Gets or sets strikeout of the text.
50+
attr_accessor :strike_out
51+
52+
# Gets or sets superscript mode of the text.
53+
attr_accessor :superscript
54+
55+
# Gets or sets subscript mode of the text.
56+
attr_accessor :subscript
57+
4658

4759
# Attribute mapping from ruby-style variable name to JSON key.
4860
def self.attribute_map
@@ -52,7 +64,11 @@ def self.attribute_map
5264
:'foreground_color' => :'ForegroundColor',
5365
:'background_color' => :'BackgroundColor',
5466
:'font_style' => :'FontStyle',
55-
:'font_file' => :'FontFile'
67+
:'font_file' => :'FontFile',
68+
:'underline' => :'Underline',
69+
:'strike_out' => :'StrikeOut',
70+
:'superscript' => :'Superscript',
71+
:'subscript' => :'Subscript'
5672
}
5773
end
5874

@@ -64,7 +80,11 @@ def self.swagger_types
6480
:'foreground_color' => :'Color',
6581
:'background_color' => :'Color',
6682
:'font_style' => :'FontStyles',
67-
:'font_file' => :'String'
83+
:'font_file' => :'String',
84+
:'underline' => :'BOOLEAN',
85+
:'strike_out' => :'BOOLEAN',
86+
:'superscript' => :'BOOLEAN',
87+
:'subscript' => :'BOOLEAN'
6888
}
6989
end
7090

@@ -100,6 +120,22 @@ def initialize(attributes = {})
100120
self.font_file = attributes[:'FontFile']
101121
end
102122

123+
if attributes.has_key?(:'Underline')
124+
self.underline = attributes[:'Underline']
125+
end
126+
127+
if attributes.has_key?(:'StrikeOut')
128+
self.strike_out = attributes[:'StrikeOut']
129+
end
130+
131+
if attributes.has_key?(:'Superscript')
132+
self.superscript = attributes[:'Superscript']
133+
end
134+
135+
if attributes.has_key?(:'Subscript')
136+
self.subscript = attributes[:'Subscript']
137+
end
138+
103139
end
104140

105141
# Show invalid properties with the reasons. Usually used together with valid?
@@ -135,7 +171,11 @@ def ==(o)
135171
foreground_color == o.foreground_color &&
136172
background_color == o.background_color &&
137173
font_style == o.font_style &&
138-
font_file == o.font_file
174+
font_file == o.font_file &&
175+
underline == o.underline &&
176+
strike_out == o.strike_out &&
177+
superscript == o.superscript &&
178+
subscript == o.subscript
139179
end
140180

141181
# @see the `==` method
@@ -147,7 +187,7 @@ def eql?(o)
147187
# Calculates hash code according to all attributes.
148188
# @return [Fixnum] Hash code
149189
def hash
150-
[font_size, font, foreground_color, background_color, font_style, font_file].hash
190+
[font_size, font, foreground_color, background_color, font_style, font_file, underline, strike_out, superscript, subscript].hash
151191
end
152192

153193
# Builds the object from hash

lib/aspose_pdf_cloud/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
=end
2121

2222
module AsposePdfCloud
23-
VERSION = "22.2.0"
23+
VERSION = "22.3.0"
2424
end

0 commit comments

Comments
 (0)