aspose_pdf_cloud 22.11.0 → 22.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/TextReplace.md +1 -0
- data/lib/aspose_pdf_cloud/models/text_replace.rb +14 -4
- data/lib/aspose_pdf_cloud/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61b5570a65986f3ecd6864fd3c559ffc4cb5577b6603cd13ecddff96c30c4531
|
4
|
+
data.tar.gz: f963ee5f72785b39fc83a94a6d183ece62f305e501f4f1f4f22abb0392614d0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c9e449248469713c56632b621eb9eb1be8e4b01600a90a118167b49f598848e5af806b76be5fcaf7527645e213005e2bd55e97f9177588af3261354ec6372bf
|
7
|
+
data.tar.gz: a8911f6d6791939646eb97551ef260a086c2af19a7d96300c75c0430fef0c18d5c6cac8f502dcae4f40614353f622535813f005562d230d8e3af50c9f3a32992
|
data/README.md
CHANGED
@@ -29,7 +29,7 @@ XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text
|
|
29
29
|
## Read PDF Formats
|
30
30
|
MHT, PCL, PS, XSLFO, MD
|
31
31
|
|
32
|
-
## Enhancements in Version 22.
|
32
|
+
## Enhancements in Version 22.12
|
33
33
|
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
|
34
34
|
|
35
35
|
## Installation
|
@@ -45,15 +45,15 @@ gem build aspose_pdf_cloud.gemspec
|
|
45
45
|
Then either install the gem locally:
|
46
46
|
|
47
47
|
```shell
|
48
|
-
gem install ./aspose_pdf_cloud-22.
|
48
|
+
gem install ./aspose_pdf_cloud-22.12.0.gem
|
49
49
|
```
|
50
|
-
(for development, run `gem install --dev ./aspose_pdf_cloud-22.
|
50
|
+
(for development, run `gem install --dev ./aspose_pdf_cloud-22.12.0.gem` to install the development dependencies)
|
51
51
|
|
52
52
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
53
53
|
|
54
54
|
Finally add this to the Gemfile:
|
55
55
|
|
56
|
-
gem 'aspose_pdf_cloud', '~> 22.
|
56
|
+
gem 'aspose_pdf_cloud', '~> 22.12.0'
|
57
57
|
|
58
58
|
### Install from Git
|
59
59
|
|
data/docs/TextReplace.md
CHANGED
@@ -9,5 +9,6 @@ Name | Type | Description | Notes
|
|
9
9
|
**regex** | **BOOLEAN** | Gets or sets a value indicating whether search text is regular expression. |
|
10
10
|
**text_state** | [**TextState**](TextState.md) | Text properties of a new text. | [optional]
|
11
11
|
**rect** | [**Rectangle**](Rectangle.md) | Rectangle area where searched original text. | [optional]
|
12
|
+
**center_text_horizontally** | **BOOLEAN** | The text after replacement is centered horizontally relative to the text being replaced. | [optional]
|
12
13
|
|
13
14
|
|
@@ -40,6 +40,9 @@ module AsposePdfCloud
|
|
40
40
|
# Rectangle area where searched original text.
|
41
41
|
attr_accessor :rect
|
42
42
|
|
43
|
+
# The text after replacement is centered horizontally relative to the text being replaced.
|
44
|
+
attr_accessor :center_text_horizontally
|
45
|
+
|
43
46
|
|
44
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
48
|
def self.attribute_map
|
@@ -48,7 +51,8 @@ module AsposePdfCloud
|
|
48
51
|
:'new_value' => :'NewValue',
|
49
52
|
:'regex' => :'Regex',
|
50
53
|
:'text_state' => :'TextState',
|
51
|
-
:'rect' => :'Rect'
|
54
|
+
:'rect' => :'Rect',
|
55
|
+
:'center_text_horizontally' => :'CenterTextHorizontally'
|
52
56
|
}
|
53
57
|
end
|
54
58
|
|
@@ -59,7 +63,8 @@ module AsposePdfCloud
|
|
59
63
|
:'new_value' => :'String',
|
60
64
|
:'regex' => :'BOOLEAN',
|
61
65
|
:'text_state' => :'TextState',
|
62
|
-
:'rect' => :'Rectangle'
|
66
|
+
:'rect' => :'Rectangle',
|
67
|
+
:'center_text_horizontally' => :'BOOLEAN'
|
63
68
|
}
|
64
69
|
end
|
65
70
|
|
@@ -91,6 +96,10 @@ module AsposePdfCloud
|
|
91
96
|
self.rect = attributes[:'Rect']
|
92
97
|
end
|
93
98
|
|
99
|
+
if attributes.has_key?(:'CenterTextHorizontally')
|
100
|
+
self.center_text_horizontally = attributes[:'CenterTextHorizontally']
|
101
|
+
end
|
102
|
+
|
94
103
|
end
|
95
104
|
|
96
105
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -144,7 +153,8 @@ module AsposePdfCloud
|
|
144
153
|
new_value == o.new_value &&
|
145
154
|
regex == o.regex &&
|
146
155
|
text_state == o.text_state &&
|
147
|
-
rect == o.rect
|
156
|
+
rect == o.rect &&
|
157
|
+
center_text_horizontally == o.center_text_horizontally
|
148
158
|
end
|
149
159
|
|
150
160
|
# @see the `==` method
|
@@ -156,7 +166,7 @@ module AsposePdfCloud
|
|
156
166
|
# Calculates hash code according to all attributes.
|
157
167
|
# @return [Fixnum] Hash code
|
158
168
|
def hash
|
159
|
-
[old_value, new_value, regex, text_state, rect].hash
|
169
|
+
[old_value, new_value, regex, text_state, rect, center_text_horizontally].hash
|
160
170
|
end
|
161
171
|
|
162
172
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_pdf_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 22.
|
4
|
+
version: 22.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aspose PDF Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|