aspose_pdf_cloud 22.9.0 → 22.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -6
- data/docs/PageRange.md +10 -0
- data/docs/PdfApi.md +45 -4
- data/docs/SplitRangePdfOptions.md +9 -0
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +126 -4
- data/lib/aspose_pdf_cloud/models/page_range.rb +207 -0
- data/lib/aspose_pdf_cloud/models/split_range_pdf_options.rb +200 -0
- data/lib/aspose_pdf_cloud/version.rb +1 -1
- data/lib/aspose_pdf_cloud.rb +2 -0
- data/test/pdf_tests.rb +19 -2
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e8548166d10719223f0a628fe3b0bd0ce1db24f3cddee4de6e28dde31c4ce32
|
4
|
+
data.tar.gz: ba6c1bada934e2e14dd0364183fe606b0026218414afc10d8fec3cf465e98688
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93cf2bdc09ba71a3be15243de3be8be252c3ccb139298db4931a3ac10d015538652c54ca27bdb76358868cd4038193964568093f73cea56fe8d1b64fff320d76
|
7
|
+
data.tar.gz: f64aa478ca7ce895aec0e5b18abd4320b23344399deb6aaa90b894c00638af469e2a64fc272f8e36249d4494b94edae14b30fbd363d36d6848641e78e79a6c6a
|
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.11
|
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.11.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.11.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.11.0'
|
57
57
|
|
58
58
|
### Install from Git
|
59
59
|
|
@@ -234,7 +234,7 @@ Class | Method | HTTP request | Description
|
|
234
234
|
*AsposePdfCloud::PdfApi* | [**get_pages**](docs/PdfApi.md#get_pages) | **GET** /pdf/\{name}/pages | Read document pages info.
|
235
235
|
*AsposePdfCloud::PdfApi* | [**get_pcl_in_storage_to_pdf**](docs/PdfApi.md#get_pcl_in_storage_to_pdf) | **GET** /pdf/create/pcl | Convert PCL file (located on storage) to PDF format and return resulting file in response.
|
236
236
|
*AsposePdfCloud::PdfApi* | [**get_pdf_a_in_storage_to_pdf**](docs/PdfApi.md#get_pdf_a_in_storage_to_pdf) | **GET** /pdf/create/pdfa | Convert PDFA file (located on storage) to PDF format and return resulting file in response.
|
237
|
-
*AsposePdfCloud::PdfApi* | [**get_pdf_in_storage_to_doc**](docs/PdfApi.md#get_pdf_in_storage_to_doc) | **GET** /pdf/\{name}/convert/doc | Converts PDF document (located on storage) to DOC format and returns resulting file in response content
|
237
|
+
*AsposePdfCloud::PdfApi* | [**get_pdf_in_storage_to_doc**](docs/PdfApi.md#get_pdf_in_storage_to_doc) | **GET** /pdf/\{name}/convert/doc | Converts PDF document (located on storage) to DOC format and returns resulting file in response content.
|
238
238
|
*AsposePdfCloud::PdfApi* | [**get_pdf_in_storage_to_epub**](docs/PdfApi.md#get_pdf_in_storage_to_epub) | **GET** /pdf/\{name}/convert/epub | Converts PDF document (located on storage) to EPUB format and returns resulting file in response content
|
239
239
|
*AsposePdfCloud::PdfApi* | [**get_pdf_in_storage_to_html**](docs/PdfApi.md#get_pdf_in_storage_to_html) | **GET** /pdf/\{name}/convert/html | Converts PDF document (located on storage) to Html format and returns resulting file in response content
|
240
240
|
*AsposePdfCloud::PdfApi* | [**get_pdf_in_storage_to_mobi_xml**](docs/PdfApi.md#get_pdf_in_storage_to_mobi_xml) | **GET** /pdf/\{name}/convert/mobixml | Converts PDF document (located on storage) to MOBIXML format and returns resulting ZIP archive file in response content.
|
@@ -335,6 +335,7 @@ Class | Method | HTTP request | Description
|
|
335
335
|
*AsposePdfCloud::PdfApi* | [**post_sign_page**](docs/PdfApi.md#post_sign_page) | **POST** /pdf/\{name}/pages/\{pageNumber}/sign | Sign page.
|
336
336
|
*AsposePdfCloud::PdfApi* | [**post_signature_field**](docs/PdfApi.md#post_signature_field) | **POST** /pdf/\{name}/fields/signature | Add document signature field.
|
337
337
|
*AsposePdfCloud::PdfApi* | [**post_split_document**](docs/PdfApi.md#post_split_document) | **POST** /pdf/\{name}/split | Split document to parts.
|
338
|
+
*AsposePdfCloud::PdfApi* | [**post_split_range_pdf_document**](docs/PdfApi.md#post_split_range_pdf_document) | **POST** /pdf/\{name}/splitrangepdf | Split document into ranges.
|
338
339
|
*AsposePdfCloud::PdfApi* | [**post_text_box_fields**](docs/PdfApi.md#post_text_box_fields) | **POST** /pdf/\{name}/fields/textbox | Add document text box fields.
|
339
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.
|
340
341
|
*AsposePdfCloud::PdfApi* | [**put_add_text**](docs/PdfApi.md#put_add_text) | **PUT** /pdf/\{name}/pages/\{pageNumber}/text | Add text to PDF document page.
|
@@ -401,7 +402,7 @@ Class | Method | HTTP request | Description
|
|
401
402
|
*AsposePdfCloud::PdfApi* | [**put_pdf_in_request_to_xlsx**](docs/PdfApi.md#put_pdf_in_request_to_xlsx) | **PUT** /pdf/convert/xlsx | Converts PDF document (in request content) to XLSX format and uploads resulting file to storage.
|
402
403
|
*AsposePdfCloud::PdfApi* | [**put_pdf_in_request_to_xml**](docs/PdfApi.md#put_pdf_in_request_to_xml) | **PUT** /pdf/convert/xml | Converts PDF document (in request content) to XML format and uploads resulting file to storage.
|
403
404
|
*AsposePdfCloud::PdfApi* | [**put_pdf_in_request_to_xps**](docs/PdfApi.md#put_pdf_in_request_to_xps) | **PUT** /pdf/convert/xps | Converts PDF document (in request content) to XPS format and uploads resulting file to storage.
|
404
|
-
*AsposePdfCloud::PdfApi* | [**put_pdf_in_storage_to_doc**](docs/PdfApi.md#put_pdf_in_storage_to_doc) | **PUT** /pdf/\{name}/convert/doc | Converts PDF document (located on storage) to DOC format and uploads resulting file to storage
|
405
|
+
*AsposePdfCloud::PdfApi* | [**put_pdf_in_storage_to_doc**](docs/PdfApi.md#put_pdf_in_storage_to_doc) | **PUT** /pdf/\{name}/convert/doc | Converts PDF document (located on storage) to DOC format and uploads resulting file to storage.
|
405
406
|
*AsposePdfCloud::PdfApi* | [**put_pdf_in_storage_to_epub**](docs/PdfApi.md#put_pdf_in_storage_to_epub) | **PUT** /pdf/\{name}/convert/epub | Converts PDF document (located on storage) to EPUB format and uploads resulting file to storage
|
406
407
|
*AsposePdfCloud::PdfApi* | [**put_pdf_in_storage_to_html**](docs/PdfApi.md#put_pdf_in_storage_to_html) | **PUT** /pdf/\{name}/convert/html | Converts PDF document (located on storage) to Html format and uploads resulting file to storage
|
407
408
|
*AsposePdfCloud::PdfApi* | [**put_pdf_in_storage_to_mobi_xml**](docs/PdfApi.md#put_pdf_in_storage_to_mobi_xml) | **PUT** /pdf/\{name}/convert/mobixml | Converts PDF document (located on storage) to MOBIXML format and uploads resulting ZIP archive file to storage
|
@@ -523,6 +524,7 @@ Class | Method | HTTP request | Description
|
|
523
524
|
- [AsposePdfCloud::OutputFormat](docs/OutputFormat.md)
|
524
525
|
- [AsposePdfCloud::PageLayout](docs/PageLayout.md)
|
525
526
|
- [AsposePdfCloud::PageMode](docs/PageMode.md)
|
527
|
+
- [AsposePdfCloud::PageRange](docs/PageRange.md)
|
526
528
|
- [AsposePdfCloud::PageWordCount](docs/PageWordCount.md)
|
527
529
|
- [AsposePdfCloud::Paragraph](docs/Paragraph.md)
|
528
530
|
- [AsposePdfCloud::PartsEmbeddingModes](docs/PartsEmbeddingModes.md)
|
@@ -543,6 +545,7 @@ Class | Method | HTTP request | Description
|
|
543
545
|
- [AsposePdfCloud::SignatureType](docs/SignatureType.md)
|
544
546
|
- [AsposePdfCloud::SoundEncoding](docs/SoundEncoding.md)
|
545
547
|
- [AsposePdfCloud::SoundIcon](docs/SoundIcon.md)
|
548
|
+
- [AsposePdfCloud::SplitRangePdfOptions](docs/SplitRangePdfOptions.md)
|
546
549
|
- [AsposePdfCloud::SplitResult](docs/SplitResult.md)
|
547
550
|
- [AsposePdfCloud::Stamp](docs/Stamp.md)
|
548
551
|
- [AsposePdfCloud::StampIcon](docs/StampIcon.md)
|
data/docs/PageRange.md
ADDED
data/docs/PdfApi.md
CHANGED
@@ -145,7 +145,7 @@ Method | HTTP request | Description
|
|
145
145
|
[**get_pages**](PdfApi.md#get_pages) | **GET** /pdf/\{name}/pages | Read document pages info.
|
146
146
|
[**get_pcl_in_storage_to_pdf**](PdfApi.md#get_pcl_in_storage_to_pdf) | **GET** /pdf/create/pcl | Convert PCL file (located on storage) to PDF format and return resulting file in response.
|
147
147
|
[**get_pdf_a_in_storage_to_pdf**](PdfApi.md#get_pdf_a_in_storage_to_pdf) | **GET** /pdf/create/pdfa | Convert PDFA file (located on storage) to PDF format and return resulting file in response.
|
148
|
-
[**get_pdf_in_storage_to_doc**](PdfApi.md#get_pdf_in_storage_to_doc) | **GET** /pdf/\{name}/convert/doc | Converts PDF document (located on storage) to DOC format and returns resulting file in response content
|
148
|
+
[**get_pdf_in_storage_to_doc**](PdfApi.md#get_pdf_in_storage_to_doc) | **GET** /pdf/\{name}/convert/doc | Converts PDF document (located on storage) to DOC format and returns resulting file in response content.
|
149
149
|
[**get_pdf_in_storage_to_epub**](PdfApi.md#get_pdf_in_storage_to_epub) | **GET** /pdf/\{name}/convert/epub | Converts PDF document (located on storage) to EPUB format and returns resulting file in response content
|
150
150
|
[**get_pdf_in_storage_to_html**](PdfApi.md#get_pdf_in_storage_to_html) | **GET** /pdf/\{name}/convert/html | Converts PDF document (located on storage) to Html format and returns resulting file in response content
|
151
151
|
[**get_pdf_in_storage_to_mobi_xml**](PdfApi.md#get_pdf_in_storage_to_mobi_xml) | **GET** /pdf/\{name}/convert/mobixml | Converts PDF document (located on storage) to MOBIXML format and returns resulting ZIP archive file in response content.
|
@@ -246,6 +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 | Split document into ranges.
|
249
250
|
[**post_text_box_fields**](PdfApi.md#post_text_box_fields) | **POST** /pdf/\{name}/fields/textbox | Add document text box fields.
|
250
251
|
[**put_add_new_page**](PdfApi.md#put_add_new_page) | **PUT** /pdf/\{name}/pages | Add new page to end of the document.
|
251
252
|
[**put_add_text**](PdfApi.md#put_add_text) | **PUT** /pdf/\{name}/pages/\{pageNumber}/text | Add text to PDF document page.
|
@@ -312,7 +313,7 @@ Method | HTTP request | Description
|
|
312
313
|
[**put_pdf_in_request_to_xlsx**](PdfApi.md#put_pdf_in_request_to_xlsx) | **PUT** /pdf/convert/xlsx | Converts PDF document (in request content) to XLSX format and uploads resulting file to storage.
|
313
314
|
[**put_pdf_in_request_to_xml**](PdfApi.md#put_pdf_in_request_to_xml) | **PUT** /pdf/convert/xml | Converts PDF document (in request content) to XML format and uploads resulting file to storage.
|
314
315
|
[**put_pdf_in_request_to_xps**](PdfApi.md#put_pdf_in_request_to_xps) | **PUT** /pdf/convert/xps | Converts PDF document (in request content) to XPS format and uploads resulting file to storage.
|
315
|
-
[**put_pdf_in_storage_to_doc**](PdfApi.md#put_pdf_in_storage_to_doc) | **PUT** /pdf/\{name}/convert/doc | Converts PDF document (located on storage) to DOC format and uploads resulting file to storage
|
316
|
+
[**put_pdf_in_storage_to_doc**](PdfApi.md#put_pdf_in_storage_to_doc) | **PUT** /pdf/\{name}/convert/doc | Converts PDF document (located on storage) to DOC format and uploads resulting file to storage.
|
316
317
|
[**put_pdf_in_storage_to_epub**](PdfApi.md#put_pdf_in_storage_to_epub) | **PUT** /pdf/\{name}/convert/epub | Converts PDF document (located on storage) to EPUB format and uploads resulting file to storage
|
317
318
|
[**put_pdf_in_storage_to_html**](PdfApi.md#put_pdf_in_storage_to_html) | **PUT** /pdf/\{name}/convert/html | Converts PDF document (located on storage) to Html format and uploads resulting file to storage
|
318
319
|
[**put_pdf_in_storage_to_mobi_xml**](PdfApi.md#put_pdf_in_storage_to_mobi_xml) | **PUT** /pdf/\{name}/convert/mobixml | Converts PDF document (located on storage) to MOBIXML format and uploads resulting ZIP archive file to storage
|
@@ -2956,6 +2957,7 @@ Name | Type | Description | Notes
|
|
2956
2957
|
**height** | **Integer**| The converted image height. | [optional] [default to 0]
|
2957
2958
|
**folder** | **String**| The document folder. | [optional]
|
2958
2959
|
**storage** | **String**| The document storage. | [optional]
|
2960
|
+
**password** | **String**| The password (Base64). | [optional]
|
2959
2961
|
|
2960
2962
|
### Return type
|
2961
2963
|
|
@@ -2983,6 +2985,7 @@ Name | Type | Description | Notes
|
|
2983
2985
|
**height** | **Integer**| The converted image height. | [optional] [default to 0]
|
2984
2986
|
**folder** | **String**| The document folder. | [optional]
|
2985
2987
|
**storage** | **String**| The document storage. | [optional]
|
2988
|
+
**password** | **String**| The password (Base64). | [optional]
|
2986
2989
|
|
2987
2990
|
### Return type
|
2988
2991
|
|
@@ -3010,6 +3013,7 @@ Name | Type | Description | Notes
|
|
3010
3013
|
**height** | **Integer**| The converted image height. | [optional] [default to 0]
|
3011
3014
|
**folder** | **String**| The document folder. | [optional]
|
3012
3015
|
**storage** | **String**| The document storage. | [optional]
|
3016
|
+
**password** | **String**| The password (Base64). | [optional]
|
3013
3017
|
|
3014
3018
|
### Return type
|
3015
3019
|
|
@@ -3037,6 +3041,7 @@ Name | Type | Description | Notes
|
|
3037
3041
|
**height** | **Integer**| The converted image height. | [optional] [default to 0]
|
3038
3042
|
**folder** | **String**| The document folder. | [optional]
|
3039
3043
|
**storage** | **String**| The document storage. | [optional]
|
3044
|
+
**password** | **String**| The password (Base64). | [optional]
|
3040
3045
|
|
3041
3046
|
### Return type
|
3042
3047
|
|
@@ -3064,6 +3069,7 @@ Name | Type | Description | Notes
|
|
3064
3069
|
**height** | **Integer**| The converted image height. | [optional] [default to 0]
|
3065
3070
|
**folder** | **String**| The document folder. | [optional]
|
3066
3071
|
**storage** | **String**| The document storage. | [optional]
|
3072
|
+
**password** | **String**| The password (Base64). | [optional]
|
3067
3073
|
|
3068
3074
|
### Return type
|
3069
3075
|
|
@@ -3091,6 +3097,7 @@ Name | Type | Description | Notes
|
|
3091
3097
|
**height** | **Integer**| The converted image height. | [optional] [default to 0]
|
3092
3098
|
**folder** | **String**| The document folder. | [optional]
|
3093
3099
|
**storage** | **String**| The document storage. | [optional]
|
3100
|
+
**password** | **String**| The password (Base64). | [optional]
|
3094
3101
|
|
3095
3102
|
### Return type
|
3096
3103
|
|
@@ -3860,7 +3867,7 @@ Name | Type | Description | Notes
|
|
3860
3867
|
# **get_pdf_in_storage_to_doc**
|
3861
3868
|
> File get_pdf_in_storage_to_doc(name, opts)
|
3862
3869
|
|
3863
|
-
Converts PDF document (located on storage) to DOC format and returns resulting file in response content
|
3870
|
+
Converts PDF document (located on storage) to DOC format and returns resulting file in response content.
|
3864
3871
|
|
3865
3872
|
### Parameters
|
3866
3873
|
|
@@ -3877,6 +3884,7 @@ Name | Type | Description | Notes
|
|
3877
3884
|
**relative_horizontal_proximity** | **Float**| Relative horizontal proximity. | [optional]
|
3878
3885
|
**folder** | **String**| The document folder. | [optional]
|
3879
3886
|
**storage** | **String**| The document storage. | [optional]
|
3887
|
+
**password** | **String**| The password (Base64). | [optional]
|
3880
3888
|
|
3881
3889
|
### Return type
|
3882
3890
|
|
@@ -6501,6 +6509,31 @@ Name | Type | Description | Notes
|
|
6501
6509
|
|
6502
6510
|
|
6503
6511
|
|
6512
|
+
# **post_split_range_pdf_document**
|
6513
|
+
> SplitResultResponse post_split_range_pdf_document(name, options, opts)
|
6514
|
+
|
6515
|
+
Split document into ranges.
|
6516
|
+
|
6517
|
+
### Parameters
|
6518
|
+
|
6519
|
+
Name | Type | Description | Notes
|
6520
|
+
------------- | ------------- | ------------- | -------------
|
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
|
+
|
6526
|
+
### Return type
|
6527
|
+
|
6528
|
+
[**SplitResultResponse**](SplitResultResponse.md)
|
6529
|
+
|
6530
|
+
### HTTP request headers
|
6531
|
+
|
6532
|
+
- **Content-Type**: application/json
|
6533
|
+
- **Accept**: application/json
|
6534
|
+
|
6535
|
+
|
6536
|
+
|
6504
6537
|
# **post_text_box_fields**
|
6505
6538
|
> AsposeResponse post_text_box_fields(name, fields, opts)
|
6506
6539
|
|
@@ -7695,6 +7728,7 @@ Name | Type | Description | Notes
|
|
7695
7728
|
**height** | **Integer**| The converted image height. | [optional] [default to 0]
|
7696
7729
|
**folder** | **String**| The document folder. | [optional]
|
7697
7730
|
**storage** | **String**| The document storage. | [optional]
|
7731
|
+
**password** | **String**| The password (Base64). | [optional]
|
7698
7732
|
|
7699
7733
|
### Return type
|
7700
7734
|
|
@@ -7723,6 +7757,7 @@ Name | Type | Description | Notes
|
|
7723
7757
|
**height** | **Integer**| The converted image height. | [optional] [default to 0]
|
7724
7758
|
**folder** | **String**| The document folder. | [optional]
|
7725
7759
|
**storage** | **String**| The document storage. | [optional]
|
7760
|
+
**password** | **String**| The password (Base64). | [optional]
|
7726
7761
|
|
7727
7762
|
### Return type
|
7728
7763
|
|
@@ -7751,6 +7786,7 @@ Name | Type | Description | Notes
|
|
7751
7786
|
**height** | **Integer**| The converted image height. | [optional] [default to 0]
|
7752
7787
|
**folder** | **String**| The document folder. | [optional]
|
7753
7788
|
**storage** | **String**| The document storage. | [optional]
|
7789
|
+
**password** | **String**| The password (Base64). | [optional]
|
7754
7790
|
|
7755
7791
|
### Return type
|
7756
7792
|
|
@@ -7779,6 +7815,7 @@ Name | Type | Description | Notes
|
|
7779
7815
|
**height** | **Integer**| The converted image height. | [optional] [default to 0]
|
7780
7816
|
**folder** | **String**| The document folder. | [optional]
|
7781
7817
|
**storage** | **String**| The document storage. | [optional]
|
7818
|
+
**password** | **String**| The password (Base64). | [optional]
|
7782
7819
|
|
7783
7820
|
### Return type
|
7784
7821
|
|
@@ -7807,6 +7844,7 @@ Name | Type | Description | Notes
|
|
7807
7844
|
**height** | **Integer**| The converted image height. | [optional] [default to 0]
|
7808
7845
|
**folder** | **String**| The document folder. | [optional]
|
7809
7846
|
**storage** | **String**| The document storage. | [optional]
|
7847
|
+
**password** | **String**| The password (Base64). | [optional]
|
7810
7848
|
|
7811
7849
|
### Return type
|
7812
7850
|
|
@@ -7835,6 +7873,7 @@ Name | Type | Description | Notes
|
|
7835
7873
|
**height** | **Integer**| The converted image height. | [optional] [default to 0]
|
7836
7874
|
**folder** | **String**| The document folder. | [optional]
|
7837
7875
|
**storage** | **String**| The document storage. | [optional]
|
7876
|
+
**password** | **String**| The password (Base64). | [optional]
|
7838
7877
|
|
7839
7878
|
### Return type
|
7840
7879
|
|
@@ -7917,6 +7956,7 @@ Name | Type | Description | Notes
|
|
7917
7956
|
**recognize_bullets** | **BOOLEAN**| Recognize bullets. | [optional]
|
7918
7957
|
**relative_horizontal_proximity** | **Float**| Relative horizontal proximity. | [optional]
|
7919
7958
|
**storage** | **String**| The document storage. | [optional]
|
7959
|
+
**password** | **String**| The password (Base64). | [optional]
|
7920
7960
|
**file** | **File**| A file to be converted. | [optional]
|
7921
7961
|
|
7922
7962
|
### Return type
|
@@ -8278,7 +8318,7 @@ Name | Type | Description | Notes
|
|
8278
8318
|
# **put_pdf_in_storage_to_doc**
|
8279
8319
|
> AsposeResponse put_pdf_in_storage_to_doc(name, out_path, opts)
|
8280
8320
|
|
8281
|
-
Converts PDF document (located on storage) to DOC format and uploads resulting file to storage
|
8321
|
+
Converts PDF document (located on storage) to DOC format and uploads resulting file to storage.
|
8282
8322
|
|
8283
8323
|
### Parameters
|
8284
8324
|
|
@@ -8296,6 +8336,7 @@ Name | Type | Description | Notes
|
|
8296
8336
|
**relative_horizontal_proximity** | **Float**| Relative horizontal proximity. | [optional]
|
8297
8337
|
**folder** | **String**| The document folder. | [optional]
|
8298
8338
|
**storage** | **String**| The document storage. | [optional]
|
8339
|
+
**password** | **String**| The password (Base64). | [optional]
|
8299
8340
|
|
8300
8341
|
### Return type
|
8301
8342
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# AsposePdfCloud::SplitRangePdfOptions
|
2
|
+
Represents Pdf split into ranges options.
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**page_ranges** | [**Array<PageRange>**](PageRange.md) | | [optional]
|
8
|
+
|
9
|
+
|
@@ -7926,6 +7926,7 @@ module AsposePdfCloud
|
|
7926
7926
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
7927
7927
|
# @option opts [String] :folder The document folder.
|
7928
7928
|
# @option opts [String] :storage The document storage.
|
7929
|
+
# @option opts [String] :password The password (Base64).
|
7929
7930
|
# @return [File]
|
7930
7931
|
def get_page_convert_to_bmp(name, page_number, opts = {})
|
7931
7932
|
@api_client.request_token_if_needed
|
@@ -7949,6 +7950,7 @@ module AsposePdfCloud
|
|
7949
7950
|
# @option opts [Integer] :height The converted image height.
|
7950
7951
|
# @option opts [String] :folder The document folder.
|
7951
7952
|
# @option opts [String] :storage The document storage.
|
7953
|
+
# @option opts [String] :password The password (Base64).
|
7952
7954
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
7953
7955
|
def get_page_convert_to_bmp_with_http_info(name, page_number, opts = {})
|
7954
7956
|
if @api_client.config.debugging
|
@@ -7971,6 +7973,7 @@ module AsposePdfCloud
|
|
7971
7973
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
7972
7974
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
7973
7975
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
7976
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
7974
7977
|
|
7975
7978
|
# header parameters
|
7976
7979
|
header_params = {}
|
@@ -8010,6 +8013,7 @@ module AsposePdfCloud
|
|
8010
8013
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
8011
8014
|
# @option opts [String] :folder The document folder.
|
8012
8015
|
# @option opts [String] :storage The document storage.
|
8016
|
+
# @option opts [String] :password The password (Base64).
|
8013
8017
|
# @return [File]
|
8014
8018
|
def get_page_convert_to_emf(name, page_number, opts = {})
|
8015
8019
|
@api_client.request_token_if_needed
|
@@ -8033,6 +8037,7 @@ module AsposePdfCloud
|
|
8033
8037
|
# @option opts [Integer] :height The converted image height.
|
8034
8038
|
# @option opts [String] :folder The document folder.
|
8035
8039
|
# @option opts [String] :storage The document storage.
|
8040
|
+
# @option opts [String] :password The password (Base64).
|
8036
8041
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
8037
8042
|
def get_page_convert_to_emf_with_http_info(name, page_number, opts = {})
|
8038
8043
|
if @api_client.config.debugging
|
@@ -8055,6 +8060,7 @@ module AsposePdfCloud
|
|
8055
8060
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
8056
8061
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8057
8062
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
8063
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
8058
8064
|
|
8059
8065
|
# header parameters
|
8060
8066
|
header_params = {}
|
@@ -8094,6 +8100,7 @@ module AsposePdfCloud
|
|
8094
8100
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
8095
8101
|
# @option opts [String] :folder The document folder.
|
8096
8102
|
# @option opts [String] :storage The document storage.
|
8103
|
+
# @option opts [String] :password The password (Base64).
|
8097
8104
|
# @return [File]
|
8098
8105
|
def get_page_convert_to_gif(name, page_number, opts = {})
|
8099
8106
|
@api_client.request_token_if_needed
|
@@ -8117,6 +8124,7 @@ module AsposePdfCloud
|
|
8117
8124
|
# @option opts [Integer] :height The converted image height.
|
8118
8125
|
# @option opts [String] :folder The document folder.
|
8119
8126
|
# @option opts [String] :storage The document storage.
|
8127
|
+
# @option opts [String] :password The password (Base64).
|
8120
8128
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
8121
8129
|
def get_page_convert_to_gif_with_http_info(name, page_number, opts = {})
|
8122
8130
|
if @api_client.config.debugging
|
@@ -8139,6 +8147,7 @@ module AsposePdfCloud
|
|
8139
8147
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
8140
8148
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8141
8149
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
8150
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
8142
8151
|
|
8143
8152
|
# header parameters
|
8144
8153
|
header_params = {}
|
@@ -8178,6 +8187,7 @@ module AsposePdfCloud
|
|
8178
8187
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
8179
8188
|
# @option opts [String] :folder The document folder.
|
8180
8189
|
# @option opts [String] :storage The document storage.
|
8190
|
+
# @option opts [String] :password The password (Base64).
|
8181
8191
|
# @return [File]
|
8182
8192
|
def get_page_convert_to_jpeg(name, page_number, opts = {})
|
8183
8193
|
@api_client.request_token_if_needed
|
@@ -8201,6 +8211,7 @@ module AsposePdfCloud
|
|
8201
8211
|
# @option opts [Integer] :height The converted image height.
|
8202
8212
|
# @option opts [String] :folder The document folder.
|
8203
8213
|
# @option opts [String] :storage The document storage.
|
8214
|
+
# @option opts [String] :password The password (Base64).
|
8204
8215
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
8205
8216
|
def get_page_convert_to_jpeg_with_http_info(name, page_number, opts = {})
|
8206
8217
|
if @api_client.config.debugging
|
@@ -8223,6 +8234,7 @@ module AsposePdfCloud
|
|
8223
8234
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
8224
8235
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8225
8236
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
8237
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
8226
8238
|
|
8227
8239
|
# header parameters
|
8228
8240
|
header_params = {}
|
@@ -8262,6 +8274,7 @@ module AsposePdfCloud
|
|
8262
8274
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
8263
8275
|
# @option opts [String] :folder The document folder.
|
8264
8276
|
# @option opts [String] :storage The document storage.
|
8277
|
+
# @option opts [String] :password The password (Base64).
|
8265
8278
|
# @return [File]
|
8266
8279
|
def get_page_convert_to_png(name, page_number, opts = {})
|
8267
8280
|
@api_client.request_token_if_needed
|
@@ -8285,6 +8298,7 @@ module AsposePdfCloud
|
|
8285
8298
|
# @option opts [Integer] :height The converted image height.
|
8286
8299
|
# @option opts [String] :folder The document folder.
|
8287
8300
|
# @option opts [String] :storage The document storage.
|
8301
|
+
# @option opts [String] :password The password (Base64).
|
8288
8302
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
8289
8303
|
def get_page_convert_to_png_with_http_info(name, page_number, opts = {})
|
8290
8304
|
if @api_client.config.debugging
|
@@ -8307,6 +8321,7 @@ module AsposePdfCloud
|
|
8307
8321
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
8308
8322
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8309
8323
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
8324
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
8310
8325
|
|
8311
8326
|
# header parameters
|
8312
8327
|
header_params = {}
|
@@ -8346,6 +8361,7 @@ module AsposePdfCloud
|
|
8346
8361
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
8347
8362
|
# @option opts [String] :folder The document folder.
|
8348
8363
|
# @option opts [String] :storage The document storage.
|
8364
|
+
# @option opts [String] :password The password (Base64).
|
8349
8365
|
# @return [File]
|
8350
8366
|
def get_page_convert_to_tiff(name, page_number, opts = {})
|
8351
8367
|
@api_client.request_token_if_needed
|
@@ -8369,6 +8385,7 @@ module AsposePdfCloud
|
|
8369
8385
|
# @option opts [Integer] :height The converted image height.
|
8370
8386
|
# @option opts [String] :folder The document folder.
|
8371
8387
|
# @option opts [String] :storage The document storage.
|
8388
|
+
# @option opts [String] :password The password (Base64).
|
8372
8389
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
8373
8390
|
def get_page_convert_to_tiff_with_http_info(name, page_number, opts = {})
|
8374
8391
|
if @api_client.config.debugging
|
@@ -8391,6 +8408,7 @@ module AsposePdfCloud
|
|
8391
8408
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
8392
8409
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8393
8410
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
8411
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
8394
8412
|
|
8395
8413
|
# header parameters
|
8396
8414
|
header_params = {}
|
@@ -10785,7 +10803,7 @@ module AsposePdfCloud
|
|
10785
10803
|
return data, status_code, headers
|
10786
10804
|
end
|
10787
10805
|
|
10788
|
-
# Converts PDF document (located on storage) to DOC format and returns resulting file in response content
|
10806
|
+
# Converts PDF document (located on storage) to DOC format and returns resulting file in response content.
|
10789
10807
|
#
|
10790
10808
|
# @param name The document name.
|
10791
10809
|
# @param [Hash] opts the optional parameters
|
@@ -10799,6 +10817,7 @@ module AsposePdfCloud
|
|
10799
10817
|
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
10800
10818
|
# @option opts [String] :folder The document folder.
|
10801
10819
|
# @option opts [String] :storage The document storage.
|
10820
|
+
# @option opts [String] :password The password (Base64).
|
10802
10821
|
# @return [File]
|
10803
10822
|
def get_pdf_in_storage_to_doc(name, opts = {})
|
10804
10823
|
@api_client.request_token_if_needed
|
@@ -10813,7 +10832,7 @@ module AsposePdfCloud
|
|
10813
10832
|
return data
|
10814
10833
|
end
|
10815
10834
|
|
10816
|
-
# Converts PDF document (located on storage) to DOC format and returns resulting file in response content
|
10835
|
+
# Converts PDF document (located on storage) to DOC format and returns resulting file in response content.
|
10817
10836
|
#
|
10818
10837
|
# @param name The document name.
|
10819
10838
|
# @param [Hash] opts the optional parameters
|
@@ -10827,6 +10846,7 @@ module AsposePdfCloud
|
|
10827
10846
|
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
10828
10847
|
# @option opts [String] :folder The document folder.
|
10829
10848
|
# @option opts [String] :storage The document storage.
|
10849
|
+
# @option opts [String] :password The password (Base64).
|
10830
10850
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
10831
10851
|
def get_pdf_in_storage_to_doc_with_http_info(name, opts = {})
|
10832
10852
|
if @api_client.config.debugging
|
@@ -10857,6 +10877,7 @@ module AsposePdfCloud
|
|
10857
10877
|
query_params[:'relativeHorizontalProximity'] = opts[:'relative_horizontal_proximity'] if !opts[:'relative_horizontal_proximity'].nil?
|
10858
10878
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
10859
10879
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
10880
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
10860
10881
|
|
10861
10882
|
# header parameters
|
10862
10883
|
header_params = {}
|
@@ -19110,6 +19131,83 @@ module AsposePdfCloud
|
|
19110
19131
|
return data, status_code, headers
|
19111
19132
|
end
|
19112
19133
|
|
19134
|
+
# Split document into ranges.
|
19135
|
+
#
|
19136
|
+
# @param name The document name.
|
19137
|
+
# @param options The splitting options.
|
19138
|
+
# @param [Hash] opts the optional parameters
|
19139
|
+
# @option opts [String] :storage The document storage.
|
19140
|
+
# @option opts [String] :folder The document folder.
|
19141
|
+
# @return [SplitResultResponse]
|
19142
|
+
def post_split_range_pdf_document(name, options, opts = {})
|
19143
|
+
@api_client.request_token_if_needed
|
19144
|
+
data, _status_code, _headers = post_split_range_pdf_document_with_http_info(name, options, opts)
|
19145
|
+
rescue ApiError => error
|
19146
|
+
if error.code == 401
|
19147
|
+
@api_client.request_token_if_needed
|
19148
|
+
data, _status_code, _headers = post_split_range_pdf_document_with_http_info(name, options, opts)
|
19149
|
+
else
|
19150
|
+
raise
|
19151
|
+
end
|
19152
|
+
return data
|
19153
|
+
end
|
19154
|
+
|
19155
|
+
# Split document into ranges.
|
19156
|
+
#
|
19157
|
+
# @param name The document name.
|
19158
|
+
# @param options The splitting options.
|
19159
|
+
# @param [Hash] opts the optional parameters
|
19160
|
+
# @option opts [String] :storage The document storage.
|
19161
|
+
# @option opts [String] :folder The document folder.
|
19162
|
+
# @return [Array<(SplitResultResponse, Fixnum, Hash)>] SplitResultResponse data, response status code and response headers
|
19163
|
+
def post_split_range_pdf_document_with_http_info(name, options, opts = {})
|
19164
|
+
if @api_client.config.debugging
|
19165
|
+
@api_client.config.logger.debug "Calling API: PdfApi.post_split_range_pdf_document ..."
|
19166
|
+
end
|
19167
|
+
# verify the required parameter 'name' is set
|
19168
|
+
if @api_client.config.client_side_validation && name.nil?
|
19169
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_split_range_pdf_document"
|
19170
|
+
end
|
19171
|
+
# verify the required parameter 'options' is set
|
19172
|
+
if @api_client.config.client_side_validation && options.nil?
|
19173
|
+
fail ArgumentError, "Missing the required parameter 'options' when calling PdfApi.post_split_range_pdf_document"
|
19174
|
+
end
|
19175
|
+
# resource path
|
19176
|
+
local_var_path = "/pdf/{name}/splitrangepdf".sub('{' + 'name' + '}', name.to_s)
|
19177
|
+
|
19178
|
+
# query parameters
|
19179
|
+
query_params = {}
|
19180
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
19181
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
19182
|
+
|
19183
|
+
# header parameters
|
19184
|
+
header_params = {}
|
19185
|
+
# HTTP header 'Accept' (if needed)
|
19186
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
19187
|
+
# HTTP header 'Content-Type'
|
19188
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
19189
|
+
|
19190
|
+
# form parameters
|
19191
|
+
form_params = {}
|
19192
|
+
# Fix header in file
|
19193
|
+
post_body = nil
|
19194
|
+
|
19195
|
+
# http body (model)
|
19196
|
+
post_body = @api_client.object_to_http_body(options)
|
19197
|
+
auth_names = ['JWT']
|
19198
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
19199
|
+
:header_params => header_params,
|
19200
|
+
:query_params => query_params,
|
19201
|
+
:form_params => form_params,
|
19202
|
+
:body => post_body,
|
19203
|
+
:auth_names => auth_names,
|
19204
|
+
:return_type => 'SplitResultResponse')
|
19205
|
+
if @api_client.config.debugging
|
19206
|
+
@api_client.config.logger.debug "API called: PdfApi#post_split_range_pdf_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
19207
|
+
end
|
19208
|
+
return data, status_code, headers
|
19209
|
+
end
|
19210
|
+
|
19113
19211
|
# Add document text box fields.
|
19114
19212
|
#
|
19115
19213
|
# @param name The document name.
|
@@ -22842,6 +22940,7 @@ module AsposePdfCloud
|
|
22842
22940
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
22843
22941
|
# @option opts [String] :folder The document folder.
|
22844
22942
|
# @option opts [String] :storage The document storage.
|
22943
|
+
# @option opts [String] :password The password (Base64).
|
22845
22944
|
# @return [AsposeResponse]
|
22846
22945
|
def put_page_convert_to_bmp(name, page_number, out_path, opts = {})
|
22847
22946
|
@api_client.request_token_if_needed
|
@@ -22866,6 +22965,7 @@ module AsposePdfCloud
|
|
22866
22965
|
# @option opts [Integer] :height The converted image height.
|
22867
22966
|
# @option opts [String] :folder The document folder.
|
22868
22967
|
# @option opts [String] :storage The document storage.
|
22968
|
+
# @option opts [String] :password The password (Base64).
|
22869
22969
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
22870
22970
|
def put_page_convert_to_bmp_with_http_info(name, page_number, out_path, opts = {})
|
22871
22971
|
if @api_client.config.debugging
|
@@ -22893,6 +22993,7 @@ module AsposePdfCloud
|
|
22893
22993
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
22894
22994
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
22895
22995
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
22996
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
22896
22997
|
|
22897
22998
|
# header parameters
|
22898
22999
|
header_params = {}
|
@@ -22933,6 +23034,7 @@ module AsposePdfCloud
|
|
22933
23034
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
22934
23035
|
# @option opts [String] :folder The document folder.
|
22935
23036
|
# @option opts [String] :storage The document storage.
|
23037
|
+
# @option opts [String] :password The password (Base64).
|
22936
23038
|
# @return [AsposeResponse]
|
22937
23039
|
def put_page_convert_to_emf(name, page_number, out_path, opts = {})
|
22938
23040
|
@api_client.request_token_if_needed
|
@@ -22957,6 +23059,7 @@ module AsposePdfCloud
|
|
22957
23059
|
# @option opts [Integer] :height The converted image height.
|
22958
23060
|
# @option opts [String] :folder The document folder.
|
22959
23061
|
# @option opts [String] :storage The document storage.
|
23062
|
+
# @option opts [String] :password The password (Base64).
|
22960
23063
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
22961
23064
|
def put_page_convert_to_emf_with_http_info(name, page_number, out_path, opts = {})
|
22962
23065
|
if @api_client.config.debugging
|
@@ -22984,6 +23087,7 @@ module AsposePdfCloud
|
|
22984
23087
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
22985
23088
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
22986
23089
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23090
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
22987
23091
|
|
22988
23092
|
# header parameters
|
22989
23093
|
header_params = {}
|
@@ -23024,6 +23128,7 @@ module AsposePdfCloud
|
|
23024
23128
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
23025
23129
|
# @option opts [String] :folder The document folder.
|
23026
23130
|
# @option opts [String] :storage The document storage.
|
23131
|
+
# @option opts [String] :password The password (Base64).
|
23027
23132
|
# @return [AsposeResponse]
|
23028
23133
|
def put_page_convert_to_gif(name, page_number, out_path, opts = {})
|
23029
23134
|
@api_client.request_token_if_needed
|
@@ -23048,6 +23153,7 @@ module AsposePdfCloud
|
|
23048
23153
|
# @option opts [Integer] :height The converted image height.
|
23049
23154
|
# @option opts [String] :folder The document folder.
|
23050
23155
|
# @option opts [String] :storage The document storage.
|
23156
|
+
# @option opts [String] :password The password (Base64).
|
23051
23157
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
23052
23158
|
def put_page_convert_to_gif_with_http_info(name, page_number, out_path, opts = {})
|
23053
23159
|
if @api_client.config.debugging
|
@@ -23075,6 +23181,7 @@ module AsposePdfCloud
|
|
23075
23181
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
23076
23182
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
23077
23183
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23184
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
23078
23185
|
|
23079
23186
|
# header parameters
|
23080
23187
|
header_params = {}
|
@@ -23115,6 +23222,7 @@ module AsposePdfCloud
|
|
23115
23222
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
23116
23223
|
# @option opts [String] :folder The document folder.
|
23117
23224
|
# @option opts [String] :storage The document storage.
|
23225
|
+
# @option opts [String] :password The password (Base64).
|
23118
23226
|
# @return [AsposeResponse]
|
23119
23227
|
def put_page_convert_to_jpeg(name, page_number, out_path, opts = {})
|
23120
23228
|
@api_client.request_token_if_needed
|
@@ -23139,6 +23247,7 @@ module AsposePdfCloud
|
|
23139
23247
|
# @option opts [Integer] :height The converted image height.
|
23140
23248
|
# @option opts [String] :folder The document folder.
|
23141
23249
|
# @option opts [String] :storage The document storage.
|
23250
|
+
# @option opts [String] :password The password (Base64).
|
23142
23251
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
23143
23252
|
def put_page_convert_to_jpeg_with_http_info(name, page_number, out_path, opts = {})
|
23144
23253
|
if @api_client.config.debugging
|
@@ -23166,6 +23275,7 @@ module AsposePdfCloud
|
|
23166
23275
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
23167
23276
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
23168
23277
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23278
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
23169
23279
|
|
23170
23280
|
# header parameters
|
23171
23281
|
header_params = {}
|
@@ -23206,6 +23316,7 @@ module AsposePdfCloud
|
|
23206
23316
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
23207
23317
|
# @option opts [String] :folder The document folder.
|
23208
23318
|
# @option opts [String] :storage The document storage.
|
23319
|
+
# @option opts [String] :password The password (Base64).
|
23209
23320
|
# @return [AsposeResponse]
|
23210
23321
|
def put_page_convert_to_png(name, page_number, out_path, opts = {})
|
23211
23322
|
@api_client.request_token_if_needed
|
@@ -23230,6 +23341,7 @@ module AsposePdfCloud
|
|
23230
23341
|
# @option opts [Integer] :height The converted image height.
|
23231
23342
|
# @option opts [String] :folder The document folder.
|
23232
23343
|
# @option opts [String] :storage The document storage.
|
23344
|
+
# @option opts [String] :password The password (Base64).
|
23233
23345
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
23234
23346
|
def put_page_convert_to_png_with_http_info(name, page_number, out_path, opts = {})
|
23235
23347
|
if @api_client.config.debugging
|
@@ -23257,6 +23369,7 @@ module AsposePdfCloud
|
|
23257
23369
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
23258
23370
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
23259
23371
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23372
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
23260
23373
|
|
23261
23374
|
# header parameters
|
23262
23375
|
header_params = {}
|
@@ -23297,6 +23410,7 @@ module AsposePdfCloud
|
|
23297
23410
|
# @option opts [Integer] :height The converted image height. (default to 0)
|
23298
23411
|
# @option opts [String] :folder The document folder.
|
23299
23412
|
# @option opts [String] :storage The document storage.
|
23413
|
+
# @option opts [String] :password The password (Base64).
|
23300
23414
|
# @return [AsposeResponse]
|
23301
23415
|
def put_page_convert_to_tiff(name, page_number, out_path, opts = {})
|
23302
23416
|
@api_client.request_token_if_needed
|
@@ -23321,6 +23435,7 @@ module AsposePdfCloud
|
|
23321
23435
|
# @option opts [Integer] :height The converted image height.
|
23322
23436
|
# @option opts [String] :folder The document folder.
|
23323
23437
|
# @option opts [String] :storage The document storage.
|
23438
|
+
# @option opts [String] :password The password (Base64).
|
23324
23439
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
23325
23440
|
def put_page_convert_to_tiff_with_http_info(name, page_number, out_path, opts = {})
|
23326
23441
|
if @api_client.config.debugging
|
@@ -23348,6 +23463,7 @@ module AsposePdfCloud
|
|
23348
23463
|
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
23349
23464
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
23350
23465
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23466
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
23351
23467
|
|
23352
23468
|
# header parameters
|
23353
23469
|
header_params = {}
|
@@ -23552,6 +23668,7 @@ module AsposePdfCloud
|
|
23552
23668
|
# @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
|
23553
23669
|
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
23554
23670
|
# @option opts [String] :storage The document storage.
|
23671
|
+
# @option opts [String] :password The password (Base64).
|
23555
23672
|
# @option opts [File] :file A file to be converted.
|
23556
23673
|
# @return [AsposeResponse]
|
23557
23674
|
def put_pdf_in_request_to_doc(out_path, opts = {})
|
@@ -23580,6 +23697,7 @@ module AsposePdfCloud
|
|
23580
23697
|
# @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
|
23581
23698
|
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
23582
23699
|
# @option opts [String] :storage The document storage.
|
23700
|
+
# @option opts [String] :password The password (Base64).
|
23583
23701
|
# @option opts [File] :file A file to be converted.
|
23584
23702
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
23585
23703
|
def put_pdf_in_request_to_doc_with_http_info(out_path, opts = {})
|
@@ -23611,6 +23729,7 @@ module AsposePdfCloud
|
|
23611
23729
|
query_params[:'recognizeBullets'] = opts[:'recognize_bullets'] if !opts[:'recognize_bullets'].nil?
|
23612
23730
|
query_params[:'relativeHorizontalProximity'] = opts[:'relative_horizontal_proximity'] if !opts[:'relative_horizontal_proximity'].nil?
|
23613
23731
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23732
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
23614
23733
|
|
23615
23734
|
# header parameters
|
23616
23735
|
header_params = {}
|
@@ -24749,7 +24868,7 @@ module AsposePdfCloud
|
|
24749
24868
|
return data, status_code, headers
|
24750
24869
|
end
|
24751
24870
|
|
24752
|
-
# Converts PDF document (located on storage) to DOC format and uploads resulting file to storage
|
24871
|
+
# Converts PDF document (located on storage) to DOC format and uploads resulting file to storage.
|
24753
24872
|
#
|
24754
24873
|
# @param name The document name.
|
24755
24874
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
|
@@ -24764,6 +24883,7 @@ module AsposePdfCloud
|
|
24764
24883
|
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
24765
24884
|
# @option opts [String] :folder The document folder.
|
24766
24885
|
# @option opts [String] :storage The document storage.
|
24886
|
+
# @option opts [String] :password The password (Base64).
|
24767
24887
|
# @return [AsposeResponse]
|
24768
24888
|
def put_pdf_in_storage_to_doc(name, out_path, opts = {})
|
24769
24889
|
@api_client.request_token_if_needed
|
@@ -24778,7 +24898,7 @@ module AsposePdfCloud
|
|
24778
24898
|
return data
|
24779
24899
|
end
|
24780
24900
|
|
24781
|
-
# Converts PDF document (located on storage) to DOC format and uploads resulting file to storage
|
24901
|
+
# Converts PDF document (located on storage) to DOC format and uploads resulting file to storage.
|
24782
24902
|
#
|
24783
24903
|
# @param name The document name.
|
24784
24904
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
|
@@ -24793,6 +24913,7 @@ module AsposePdfCloud
|
|
24793
24913
|
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
24794
24914
|
# @option opts [String] :folder The document folder.
|
24795
24915
|
# @option opts [String] :storage The document storage.
|
24916
|
+
# @option opts [String] :password The password (Base64).
|
24796
24917
|
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
24797
24918
|
def put_pdf_in_storage_to_doc_with_http_info(name, out_path, opts = {})
|
24798
24919
|
if @api_client.config.debugging
|
@@ -24828,6 +24949,7 @@ module AsposePdfCloud
|
|
24828
24949
|
query_params[:'relativeHorizontalProximity'] = opts[:'relative_horizontal_proximity'] if !opts[:'relative_horizontal_proximity'].nil?
|
24829
24950
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
24830
24951
|
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
24952
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
24831
24953
|
|
24832
24954
|
# header parameters
|
24833
24955
|
header_params = {}
|
@@ -0,0 +1,207 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
Copyright (c) 2022 Aspose.PDF Cloud
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
SOFTWARE.
|
19
|
+
--------------------------------------------------------------------------------------------------------------------
|
20
|
+
=end
|
21
|
+
|
22
|
+
require 'date'
|
23
|
+
require 'time'
|
24
|
+
|
25
|
+
module AsposePdfCloud
|
26
|
+
|
27
|
+
class PageRange
|
28
|
+
attr_accessor :from
|
29
|
+
|
30
|
+
attr_accessor :to
|
31
|
+
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'from' => :'from',
|
37
|
+
:'to' => :'to'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.swagger_types
|
43
|
+
{
|
44
|
+
:'from' => :'Integer',
|
45
|
+
:'to' => :'Integer'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes the object
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
+
def initialize(attributes = {})
|
52
|
+
return unless attributes.is_a?(Hash)
|
53
|
+
|
54
|
+
# convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
56
|
+
|
57
|
+
if attributes.has_key?(:'from')
|
58
|
+
self.from = attributes[:'from']
|
59
|
+
end
|
60
|
+
|
61
|
+
if attributes.has_key?(:'to')
|
62
|
+
self.to = attributes[:'to']
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
66
|
+
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
+
# @return Array for valid properies with the reasons
|
69
|
+
def list_invalid_properties
|
70
|
+
invalid_properties = Array.new
|
71
|
+
return invalid_properties
|
72
|
+
end
|
73
|
+
|
74
|
+
# Check to see if the all the properties in the model are valid
|
75
|
+
# @return true if the model is valid
|
76
|
+
def valid?
|
77
|
+
return true
|
78
|
+
end
|
79
|
+
|
80
|
+
# Checks equality by comparing each attribute.
|
81
|
+
# @param [Object] Object to be compared
|
82
|
+
def ==(o)
|
83
|
+
return true if self.equal?(o)
|
84
|
+
self.class == o.class &&
|
85
|
+
from == o.from &&
|
86
|
+
to == o.to
|
87
|
+
end
|
88
|
+
|
89
|
+
# @see the `==` method
|
90
|
+
# @param [Object] Object to be compared
|
91
|
+
def eql?(o)
|
92
|
+
self == o
|
93
|
+
end
|
94
|
+
|
95
|
+
# Calculates hash code according to all attributes.
|
96
|
+
# @return [Fixnum] Hash code
|
97
|
+
def hash
|
98
|
+
[from, to].hash
|
99
|
+
end
|
100
|
+
|
101
|
+
# Builds the object from hash
|
102
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
+
# @return [Object] Returns the model itself
|
104
|
+
def build_from_hash(attributes)
|
105
|
+
return nil unless attributes.is_a?(Hash)
|
106
|
+
self.class.swagger_types.each_pair do |key, type|
|
107
|
+
if type =~ /\AArray<(.*)>/i
|
108
|
+
# check to ensure the input is an array given that the the attribute
|
109
|
+
# is documented as an array but the input is not
|
110
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
111
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
112
|
+
end
|
113
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
114
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
115
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
116
|
+
end
|
117
|
+
|
118
|
+
self
|
119
|
+
end
|
120
|
+
|
121
|
+
# Deserializes the data based on type
|
122
|
+
# @param string type Data type
|
123
|
+
# @param string value Value to be deserialized
|
124
|
+
# @return [Object] Deserialized data
|
125
|
+
def _deserialize(type, value)
|
126
|
+
case type.to_sym
|
127
|
+
when :DateTime
|
128
|
+
DateTime.parse(value)
|
129
|
+
when :Date
|
130
|
+
Date.parse(value)
|
131
|
+
when :String
|
132
|
+
value.to_s
|
133
|
+
when :Integer
|
134
|
+
value.to_i
|
135
|
+
when :Float
|
136
|
+
value.to_f
|
137
|
+
when :BOOLEAN
|
138
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
139
|
+
true
|
140
|
+
else
|
141
|
+
false
|
142
|
+
end
|
143
|
+
when :Object
|
144
|
+
# generic object (usually a Hash), return directly
|
145
|
+
value
|
146
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
147
|
+
inner_type = Regexp.last_match[:inner_type]
|
148
|
+
value.map { |v| _deserialize(inner_type, v) }
|
149
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
150
|
+
k_type = Regexp.last_match[:k_type]
|
151
|
+
v_type = Regexp.last_match[:v_type]
|
152
|
+
{}.tap do |hash|
|
153
|
+
value.each do |k, v|
|
154
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
else # model
|
158
|
+
temp_model = AsposePdfCloud.const_get(type).new
|
159
|
+
temp_model.build_from_hash(value)
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
# Returns the string representation of the object
|
164
|
+
# @return [String] String presentation of the object
|
165
|
+
def to_s
|
166
|
+
to_hash.to_s
|
167
|
+
end
|
168
|
+
|
169
|
+
# to_body is an alias to to_hash (backward compatibility)
|
170
|
+
# @return [Hash] Returns the object in the form of hash
|
171
|
+
def to_body
|
172
|
+
to_hash
|
173
|
+
end
|
174
|
+
|
175
|
+
# Returns the object in the form of hash
|
176
|
+
# @return [Hash] Returns the object in the form of hash
|
177
|
+
def to_hash
|
178
|
+
hash = {}
|
179
|
+
self.class.attribute_map.each_pair do |attr, param|
|
180
|
+
value = self.send(attr)
|
181
|
+
next if value.nil?
|
182
|
+
hash[param] = _to_hash(value)
|
183
|
+
end
|
184
|
+
hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Outputs non-array value in the form of hash
|
188
|
+
# For object, use to_hash. Otherwise, just return the value
|
189
|
+
# @param [Object] value Any valid value
|
190
|
+
# @return [Hash] Returns the value in the form of hash
|
191
|
+
def _to_hash(value)
|
192
|
+
if value.is_a?(Array)
|
193
|
+
value.compact.map{ |v| _to_hash(v) }
|
194
|
+
elsif value.is_a?(Hash)
|
195
|
+
{}.tap do |hash|
|
196
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
197
|
+
end
|
198
|
+
elsif value.respond_to? :to_hash
|
199
|
+
value.to_hash
|
200
|
+
else
|
201
|
+
value
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
end
|
206
|
+
|
207
|
+
end
|
@@ -0,0 +1,200 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
Copyright (c) 2022 Aspose.PDF Cloud
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
SOFTWARE.
|
19
|
+
--------------------------------------------------------------------------------------------------------------------
|
20
|
+
=end
|
21
|
+
|
22
|
+
require 'date'
|
23
|
+
require 'time'
|
24
|
+
|
25
|
+
module AsposePdfCloud
|
26
|
+
# Represents Pdf split into ranges options.
|
27
|
+
class SplitRangePdfOptions
|
28
|
+
attr_accessor :page_ranges
|
29
|
+
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
:'page_ranges' => :'PageRanges'
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.swagger_types
|
40
|
+
{
|
41
|
+
:'page_ranges' => :'Array<PageRange>'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
return unless attributes.is_a?(Hash)
|
49
|
+
|
50
|
+
# convert string to symbol for hash key
|
51
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
52
|
+
|
53
|
+
if attributes.has_key?(:'PageRanges')
|
54
|
+
if (value = attributes[:'PageRanges']).is_a?(Array)
|
55
|
+
self.page_ranges = value
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
60
|
+
|
61
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
62
|
+
# @return Array for valid properies with the reasons
|
63
|
+
def list_invalid_properties
|
64
|
+
invalid_properties = Array.new
|
65
|
+
return invalid_properties
|
66
|
+
end
|
67
|
+
|
68
|
+
# Check to see if the all the properties in the model are valid
|
69
|
+
# @return true if the model is valid
|
70
|
+
def valid?
|
71
|
+
return true
|
72
|
+
end
|
73
|
+
|
74
|
+
# Checks equality by comparing each attribute.
|
75
|
+
# @param [Object] Object to be compared
|
76
|
+
def ==(o)
|
77
|
+
return true if self.equal?(o)
|
78
|
+
self.class == o.class &&
|
79
|
+
page_ranges == o.page_ranges
|
80
|
+
end
|
81
|
+
|
82
|
+
# @see the `==` method
|
83
|
+
# @param [Object] Object to be compared
|
84
|
+
def eql?(o)
|
85
|
+
self == o
|
86
|
+
end
|
87
|
+
|
88
|
+
# Calculates hash code according to all attributes.
|
89
|
+
# @return [Fixnum] Hash code
|
90
|
+
def hash
|
91
|
+
[page_ranges].hash
|
92
|
+
end
|
93
|
+
|
94
|
+
# Builds the object from hash
|
95
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
96
|
+
# @return [Object] Returns the model itself
|
97
|
+
def build_from_hash(attributes)
|
98
|
+
return nil unless attributes.is_a?(Hash)
|
99
|
+
self.class.swagger_types.each_pair do |key, type|
|
100
|
+
if type =~ /\AArray<(.*)>/i
|
101
|
+
# check to ensure the input is an array given that the the attribute
|
102
|
+
# is documented as an array but the input is not
|
103
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
104
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
105
|
+
end
|
106
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
107
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
108
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
109
|
+
end
|
110
|
+
|
111
|
+
self
|
112
|
+
end
|
113
|
+
|
114
|
+
# Deserializes the data based on type
|
115
|
+
# @param string type Data type
|
116
|
+
# @param string value Value to be deserialized
|
117
|
+
# @return [Object] Deserialized data
|
118
|
+
def _deserialize(type, value)
|
119
|
+
case type.to_sym
|
120
|
+
when :DateTime
|
121
|
+
DateTime.parse(value)
|
122
|
+
when :Date
|
123
|
+
Date.parse(value)
|
124
|
+
when :String
|
125
|
+
value.to_s
|
126
|
+
when :Integer
|
127
|
+
value.to_i
|
128
|
+
when :Float
|
129
|
+
value.to_f
|
130
|
+
when :BOOLEAN
|
131
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
132
|
+
true
|
133
|
+
else
|
134
|
+
false
|
135
|
+
end
|
136
|
+
when :Object
|
137
|
+
# generic object (usually a Hash), return directly
|
138
|
+
value
|
139
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
140
|
+
inner_type = Regexp.last_match[:inner_type]
|
141
|
+
value.map { |v| _deserialize(inner_type, v) }
|
142
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
143
|
+
k_type = Regexp.last_match[:k_type]
|
144
|
+
v_type = Regexp.last_match[:v_type]
|
145
|
+
{}.tap do |hash|
|
146
|
+
value.each do |k, v|
|
147
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
148
|
+
end
|
149
|
+
end
|
150
|
+
else # model
|
151
|
+
temp_model = AsposePdfCloud.const_get(type).new
|
152
|
+
temp_model.build_from_hash(value)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
# Returns the string representation of the object
|
157
|
+
# @return [String] String presentation of the object
|
158
|
+
def to_s
|
159
|
+
to_hash.to_s
|
160
|
+
end
|
161
|
+
|
162
|
+
# to_body is an alias to to_hash (backward compatibility)
|
163
|
+
# @return [Hash] Returns the object in the form of hash
|
164
|
+
def to_body
|
165
|
+
to_hash
|
166
|
+
end
|
167
|
+
|
168
|
+
# Returns the object in the form of hash
|
169
|
+
# @return [Hash] Returns the object in the form of hash
|
170
|
+
def to_hash
|
171
|
+
hash = {}
|
172
|
+
self.class.attribute_map.each_pair do |attr, param|
|
173
|
+
value = self.send(attr)
|
174
|
+
next if value.nil?
|
175
|
+
hash[param] = _to_hash(value)
|
176
|
+
end
|
177
|
+
hash
|
178
|
+
end
|
179
|
+
|
180
|
+
# Outputs non-array value in the form of hash
|
181
|
+
# For object, use to_hash. Otherwise, just return the value
|
182
|
+
# @param [Object] value Any valid value
|
183
|
+
# @return [Hash] Returns the value in the form of hash
|
184
|
+
def _to_hash(value)
|
185
|
+
if value.is_a?(Array)
|
186
|
+
value.compact.map{ |v| _to_hash(v) }
|
187
|
+
elsif value.is_a?(Hash)
|
188
|
+
{}.tap do |hash|
|
189
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
190
|
+
end
|
191
|
+
elsif value.respond_to? :to_hash
|
192
|
+
value.to_hash
|
193
|
+
else
|
194
|
+
value
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
end
|
199
|
+
|
200
|
+
end
|
data/lib/aspose_pdf_cloud.rb
CHANGED
@@ -95,6 +95,7 @@ require_relative 'aspose_pdf_cloud/models/option'
|
|
95
95
|
require_relative 'aspose_pdf_cloud/models/output_format'
|
96
96
|
require_relative 'aspose_pdf_cloud/models/page_layout'
|
97
97
|
require_relative 'aspose_pdf_cloud/models/page_mode'
|
98
|
+
require_relative 'aspose_pdf_cloud/models/page_range'
|
98
99
|
require_relative 'aspose_pdf_cloud/models/page_word_count'
|
99
100
|
require_relative 'aspose_pdf_cloud/models/paragraph'
|
100
101
|
require_relative 'aspose_pdf_cloud/models/parts_embedding_modes'
|
@@ -115,6 +116,7 @@ require_relative 'aspose_pdf_cloud/models/signature_custom_appearance'
|
|
115
116
|
require_relative 'aspose_pdf_cloud/models/signature_type'
|
116
117
|
require_relative 'aspose_pdf_cloud/models/sound_encoding'
|
117
118
|
require_relative 'aspose_pdf_cloud/models/sound_icon'
|
119
|
+
require_relative 'aspose_pdf_cloud/models/split_range_pdf_options'
|
118
120
|
require_relative 'aspose_pdf_cloud/models/split_result'
|
119
121
|
require_relative 'aspose_pdf_cloud/models/stamp'
|
120
122
|
require_relative 'aspose_pdf_cloud/models/stamp_icon'
|
data/test/pdf_tests.rb
CHANGED
@@ -3697,11 +3697,9 @@ class PdfTests < Minitest::Test
|
|
3697
3697
|
assert(response, 'Failed to optimize document.')
|
3698
3698
|
end
|
3699
3699
|
|
3700
|
-
|
3701
3700
|
def test_post_split_document
|
3702
3701
|
file_name = '4pages.pdf'
|
3703
3702
|
upload_file(file_name)
|
3704
|
-
|
3705
3703
|
opts = {
|
3706
3704
|
:folder => @temp_folder
|
3707
3705
|
}
|
@@ -3709,6 +3707,25 @@ class PdfTests < Minitest::Test
|
|
3709
3707
|
assert(response, 'Failed to split document to parts.')
|
3710
3708
|
end
|
3711
3709
|
|
3710
|
+
def test_post_split_range_pdf_document
|
3711
|
+
file_name = '4pages.pdf'
|
3712
|
+
upload_file(file_name)
|
3713
|
+
pageRange1 = PageRange.new
|
3714
|
+
pageRange1.to = 2
|
3715
|
+
pageRange2 = PageRange.new
|
3716
|
+
pageRange2.from = 3
|
3717
|
+
pageRange3 = PageRange.new
|
3718
|
+
pageRange3.from = 2
|
3719
|
+
pageRange3.to = 3
|
3720
|
+
range_options = SplitRangePdfOptions.new
|
3721
|
+
range_options.page_ranges = [pageRange1, pageRange2, pageRange3]
|
3722
|
+
opts = {
|
3723
|
+
:folder => @temp_folder
|
3724
|
+
}
|
3725
|
+
response = @pdf_api.post_split_range_pdf_document(file_name, range_options, opts)
|
3726
|
+
assert(response, 'Failed to split document to ranges.')
|
3727
|
+
end
|
3728
|
+
|
3712
3729
|
def test_put_create_empty_document
|
3713
3730
|
file_name = 'empty.pdf'
|
3714
3731
|
|
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.11.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-
|
11
|
+
date: 2022-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -339,6 +339,7 @@ files:
|
|
339
339
|
- docs/PageLayout.md
|
340
340
|
- docs/PageMode.md
|
341
341
|
- docs/PageNumberStamp.md
|
342
|
+
- docs/PageRange.md
|
342
343
|
- docs/PageWordCount.md
|
343
344
|
- docs/Pages.md
|
344
345
|
- docs/Paragraph.md
|
@@ -398,6 +399,7 @@ files:
|
|
398
399
|
- docs/SoundAnnotationsResponse.md
|
399
400
|
- docs/SoundEncoding.md
|
400
401
|
- docs/SoundIcon.md
|
402
|
+
- docs/SplitRangePdfOptions.md
|
401
403
|
- docs/SplitResult.md
|
402
404
|
- docs/SplitResultDocument.md
|
403
405
|
- docs/SplitResultResponse.md
|
@@ -625,6 +627,7 @@ files:
|
|
625
627
|
- lib/aspose_pdf_cloud/models/page_layout.rb
|
626
628
|
- lib/aspose_pdf_cloud/models/page_mode.rb
|
627
629
|
- lib/aspose_pdf_cloud/models/page_number_stamp.rb
|
630
|
+
- lib/aspose_pdf_cloud/models/page_range.rb
|
628
631
|
- lib/aspose_pdf_cloud/models/page_word_count.rb
|
629
632
|
- lib/aspose_pdf_cloud/models/pages.rb
|
630
633
|
- lib/aspose_pdf_cloud/models/paragraph.rb
|
@@ -683,6 +686,7 @@ files:
|
|
683
686
|
- lib/aspose_pdf_cloud/models/sound_annotations_response.rb
|
684
687
|
- lib/aspose_pdf_cloud/models/sound_encoding.rb
|
685
688
|
- lib/aspose_pdf_cloud/models/sound_icon.rb
|
689
|
+
- lib/aspose_pdf_cloud/models/split_range_pdf_options.rb
|
686
690
|
- lib/aspose_pdf_cloud/models/split_result.rb
|
687
691
|
- lib/aspose_pdf_cloud/models/split_result_document.rb
|
688
692
|
- lib/aspose_pdf_cloud/models/split_result_response.rb
|