aspose_pdf_cloud 22.10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ded3f90137c02eb2f66fdb931d2132e5684264f5f3d27b43d42847b79d6956ac
4
- data.tar.gz: 7347dfb52a984549e343c238d5a9e4412f2f57ceba838ec419b96e688da8bc76
3
+ metadata.gz: 61b5570a65986f3ecd6864fd3c559ffc4cb5577b6603cd13ecddff96c30c4531
4
+ data.tar.gz: f963ee5f72785b39fc83a94a6d183ece62f305e501f4f1f4f22abb0392614d0d
5
5
  SHA512:
6
- metadata.gz: def86ff1a2ae02e293468185ac02569be6e6691290a3a88dd82ae86a47fe5bc73fd3af4269d170057a1c280337b050d362da9e7729b4186bfd614dd313fd644c
7
- data.tar.gz: a683849749036e8f406e9b4d378f1c1b0a10297b28797daf82887e5675bddff7e986cd9272cb8b681e0d60c199955c41c6c59f633937563ba8fe836bd640973b
6
+ metadata.gz: 6c9e449248469713c56632b621eb9eb1be8e4b01600a90a118167b49f598848e5af806b76be5fcaf7527645e213005e2bd55e97f9177588af3261354ec6372bf
7
+ data.tar.gz: a8911f6d6791939646eb97551ef260a086c2af19a7d96300c75c0430fef0c18d5c6cac8f502dcae4f40614353f622535813f005562d230d8e3af50c9f3a32992
data/README.md CHANGED
@@ -29,16 +29,9 @@ 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.10
33
- - Convert password protected PDF to DOC.
34
- - Support to convert password protected document to graphic formats.
35
- - Support to convert pages of password protected PDF to JPEG using GetPageConvertToJpeg.
36
- - Add new REST API endpoint to parse PDF document into PDF parts containing specified page ranges.
32
+ ## Enhancements in Version 22.12
37
33
  - A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
38
34
 
39
- ## Bugs fixed in Version 22.10
40
- - The PostSplitDocument API method is throwing 504 Gateway Error.
41
-
42
35
  ## Installation
43
36
 
44
37
  ### Build a gem
@@ -52,15 +45,15 @@ gem build aspose_pdf_cloud.gemspec
52
45
  Then either install the gem locally:
53
46
 
54
47
  ```shell
55
- gem install ./aspose_pdf_cloud-22.10.0.gem
48
+ gem install ./aspose_pdf_cloud-22.12.0.gem
56
49
  ```
57
- (for development, run `gem install --dev ./aspose_pdf_cloud-22.10.0.gem` to install the development dependencies)
50
+ (for development, run `gem install --dev ./aspose_pdf_cloud-22.12.0.gem` to install the development dependencies)
58
51
 
59
52
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
60
53
 
61
54
  Finally add this to the Gemfile:
62
55
 
63
- gem 'aspose_pdf_cloud', '~> 22.10.0'
56
+ gem 'aspose_pdf_cloud', '~> 22.12.0'
64
57
 
65
58
  ### Install from Git
66
59
 
@@ -342,7 +335,7 @@ Class | Method | HTTP request | Description
342
335
  *AsposePdfCloud::PdfApi* | [**post_sign_page**](docs/PdfApi.md#post_sign_page) | **POST** /pdf/\{name}/pages/\{pageNumber}/sign | Sign page.
343
336
  *AsposePdfCloud::PdfApi* | [**post_signature_field**](docs/PdfApi.md#post_signature_field) | **POST** /pdf/\{name}/fields/signature | Add document signature field.
344
337
  *AsposePdfCloud::PdfApi* | [**post_split_document**](docs/PdfApi.md#post_split_document) | **POST** /pdf/\{name}/split | Split document to parts.
345
- *AsposePdfCloud::PdfApi* | [**post_split_range_pdf_document**](docs/PdfApi.md#post_split_range_pdf_document) | **POST** /pdf/\{name}/splitrangepdf |
338
+ *AsposePdfCloud::PdfApi* | [**post_split_range_pdf_document**](docs/PdfApi.md#post_split_range_pdf_document) | **POST** /pdf/\{name}/splitrangepdf | Split document into ranges.
346
339
  *AsposePdfCloud::PdfApi* | [**post_text_box_fields**](docs/PdfApi.md#post_text_box_fields) | **POST** /pdf/\{name}/fields/textbox | Add document text box fields.
347
340
  *AsposePdfCloud::PdfApi* | [**put_add_new_page**](docs/PdfApi.md#put_add_new_page) | **PUT** /pdf/\{name}/pages | Add new page to end of the document.
348
341
  *AsposePdfCloud::PdfApi* | [**put_add_text**](docs/PdfApi.md#put_add_text) | **PUT** /pdf/\{name}/pages/\{pageNumber}/text | Add text to PDF document page.
data/docs/PdfApi.md CHANGED
@@ -246,7 +246,7 @@ Method | HTTP request | Description
246
246
  [**post_sign_page**](PdfApi.md#post_sign_page) | **POST** /pdf/\{name}/pages/\{pageNumber}/sign | Sign page.
247
247
  [**post_signature_field**](PdfApi.md#post_signature_field) | **POST** /pdf/\{name}/fields/signature | Add document signature field.
248
248
  [**post_split_document**](PdfApi.md#post_split_document) | **POST** /pdf/\{name}/split | Split document to parts.
249
- [**post_split_range_pdf_document**](PdfApi.md#post_split_range_pdf_document) | **POST** /pdf/\{name}/splitrangepdf |
249
+ [**post_split_range_pdf_document**](PdfApi.md#post_split_range_pdf_document) | **POST** /pdf/\{name}/splitrangepdf | Split document into ranges.
250
250
  [**post_text_box_fields**](PdfApi.md#post_text_box_fields) | **POST** /pdf/\{name}/fields/textbox | Add document text box fields.
251
251
  [**put_add_new_page**](PdfApi.md#put_add_new_page) | **PUT** /pdf/\{name}/pages | Add new page to end of the document.
252
252
  [**put_add_text**](PdfApi.md#put_add_text) | **PUT** /pdf/\{name}/pages/\{pageNumber}/text | Add text to PDF document page.
@@ -6512,16 +6512,16 @@ Name | Type | Description | Notes
6512
6512
  # **post_split_range_pdf_document**
6513
6513
  > SplitResultResponse post_split_range_pdf_document(name, options, opts)
6514
6514
 
6515
-
6515
+ Split document into ranges.
6516
6516
 
6517
6517
  ### Parameters
6518
6518
 
6519
6519
  Name | Type | Description | Notes
6520
6520
  ------------- | ------------- | ------------- | -------------
6521
- **name** | **String**| |
6522
- **options** | [**SplitRangePdfOptions**](SplitRangePdfOptions.md)| |
6523
- **storage** | **String**| | [optional]
6524
- **folder** | **String**| | [optional]
6521
+ **name** | **String**| The document name. |
6522
+ **options** | [**SplitRangePdfOptions**](SplitRangePdfOptions.md)| The splitting options. |
6523
+ **storage** | **String**| The document storage. | [optional]
6524
+ **folder** | **String**| The document folder. | [optional]
6525
6525
 
6526
6526
  ### Return type
6527
6527
 
@@ -1,5 +1,5 @@
1
1
  # AsposePdfCloud::SplitRangePdfOptions
2
-
2
+ Represents Pdf split into ranges options.
3
3
 
4
4
  ## Properties
5
5
  Name | Type | Description | Notes
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
 
@@ -19131,13 +19131,13 @@ module AsposePdfCloud
19131
19131
  return data, status_code, headers
19132
19132
  end
19133
19133
 
19134
+ # Split document into ranges.
19134
19135
  #
19135
- #
19136
- # @param name
19137
- # @param options
19136
+ # @param name The document name.
19137
+ # @param options The splitting options.
19138
19138
  # @param [Hash] opts the optional parameters
19139
- # @option opts [String] :storage
19140
- # @option opts [String] :folder
19139
+ # @option opts [String] :storage The document storage.
19140
+ # @option opts [String] :folder The document folder.
19141
19141
  # @return [SplitResultResponse]
19142
19142
  def post_split_range_pdf_document(name, options, opts = {})
19143
19143
  @api_client.request_token_if_needed
@@ -19152,13 +19152,13 @@ module AsposePdfCloud
19152
19152
  return data
19153
19153
  end
19154
19154
 
19155
+ # Split document into ranges.
19155
19156
  #
19156
- #
19157
- # @param name
19158
- # @param options
19157
+ # @param name The document name.
19158
+ # @param options The splitting options.
19159
19159
  # @param [Hash] opts the optional parameters
19160
- # @option opts [String] :storage
19161
- # @option opts [String] :folder
19160
+ # @option opts [String] :storage The document storage.
19161
+ # @option opts [String] :folder The document folder.
19162
19162
  # @return [Array<(SplitResultResponse, Fixnum, Hash)>] SplitResultResponse data, response status code and response headers
19163
19163
  def post_split_range_pdf_document_with_http_info(name, options, opts = {})
19164
19164
  if @api_client.config.debugging
@@ -23,7 +23,7 @@ require 'date'
23
23
  require 'time'
24
24
 
25
25
  module AsposePdfCloud
26
-
26
+ # Represents Pdf split into ranges options.
27
27
  class SplitRangePdfOptions
28
28
  attr_accessor :page_ranges
29
29
 
@@ -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
@@ -20,5 +20,5 @@ SOFTWARE.
20
20
  =end
21
21
 
22
22
  module AsposePdfCloud
23
- VERSION = "22.10.0"
23
+ VERSION = "22.12.0"
24
24
  end
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.10.0
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: 2022-10-27 00:00:00.000000000 Z
11
+ date: 2023-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json