Skip to content

Commit 008c84c

Browse files
authored
Merge pull request #54 from aspose-pdf-cloud/develop
update to 22.10
2 parents 334c64b + 7d914c7 commit 008c84c

File tree

10 files changed

+635
-17
lines changed

10 files changed

+635
-17
lines changed

README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,16 @@ 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.9
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.
3337
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
3438

39+
## Bugs fixed in Version 22.10
40+
- The PostSplitDocument API method is throwing 504 Gateway Error.
41+
3542
## Installation
3643

3744
### Build a gem
@@ -45,15 +52,15 @@ gem build aspose_pdf_cloud.gemspec
4552
Then either install the gem locally:
4653

4754
```shell
48-
gem install ./aspose_pdf_cloud-22.9.0.gem
55+
gem install ./aspose_pdf_cloud-22.10.0.gem
4956
```
50-
(for development, run `gem install --dev ./aspose_pdf_cloud-22.9.0.gem` to install the development dependencies)
57+
(for development, run `gem install --dev ./aspose_pdf_cloud-22.10.0.gem` to install the development dependencies)
5158

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

5461
Finally add this to the Gemfile:
5562

56-
gem 'aspose_pdf_cloud', '~> 22.9.0'
63+
gem 'aspose_pdf_cloud', '~> 22.10.0'
5764

5865
### Install from Git
5966

@@ -234,7 +241,7 @@ Class | Method | HTTP request | Description
234241
*AsposePdfCloud::PdfApi* | [**get_pages**](docs/PdfApi.md#get_pages) | **GET** /pdf/\{name}/pages | Read document pages info.
235242
*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.
236243
*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
244+
*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.
238245
*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
239246
*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
240247
*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 +342,7 @@ Class | Method | HTTP request | Description
335342
*AsposePdfCloud::PdfApi* | [**post_sign_page**](docs/PdfApi.md#post_sign_page) | **POST** /pdf/\{name}/pages/\{pageNumber}/sign | Sign page.
336343
*AsposePdfCloud::PdfApi* | [**post_signature_field**](docs/PdfApi.md#post_signature_field) | **POST** /pdf/\{name}/fields/signature | Add document signature field.
337344
*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 |
338346
*AsposePdfCloud::PdfApi* | [**post_text_box_fields**](docs/PdfApi.md#post_text_box_fields) | **POST** /pdf/\{name}/fields/textbox | Add document text box fields.
339347
*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.
340348
*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 +409,7 @@ Class | Method | HTTP request | Description
401409
*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.
402410
*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.
403411
*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
412+
*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.
405413
*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
406414
*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
407415
*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 +531,7 @@ Class | Method | HTTP request | Description
523531
- [AsposePdfCloud::OutputFormat](docs/OutputFormat.md)
524532
- [AsposePdfCloud::PageLayout](docs/PageLayout.md)
525533
- [AsposePdfCloud::PageMode](docs/PageMode.md)
534+
- [AsposePdfCloud::PageRange](docs/PageRange.md)
526535
- [AsposePdfCloud::PageWordCount](docs/PageWordCount.md)
527536
- [AsposePdfCloud::Paragraph](docs/Paragraph.md)
528537
- [AsposePdfCloud::PartsEmbeddingModes](docs/PartsEmbeddingModes.md)
@@ -543,6 +552,7 @@ Class | Method | HTTP request | Description
543552
- [AsposePdfCloud::SignatureType](docs/SignatureType.md)
544553
- [AsposePdfCloud::SoundEncoding](docs/SoundEncoding.md)
545554
- [AsposePdfCloud::SoundIcon](docs/SoundIcon.md)
555+
- [AsposePdfCloud::SplitRangePdfOptions](docs/SplitRangePdfOptions.md)
546556
- [AsposePdfCloud::SplitResult](docs/SplitResult.md)
547557
- [AsposePdfCloud::Stamp](docs/Stamp.md)
548558
- [AsposePdfCloud::StampIcon](docs/StampIcon.md)

docs/PageRange.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# AsposePdfCloud::PageRange
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**from** | **Integer** | | [optional]
8+
**to** | **Integer** | | [optional]
9+
10+

docs/PdfApi.md

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Method | HTTP request | Description
145145
[**get_pages**](PdfApi.md#get_pages) | **GET** /pdf/\{name}/pages | Read document pages info.
146146
[**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.
147147
[**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.
149149
[**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
150150
[**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
151151
[**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
246246
[**post_sign_page**](PdfApi.md#post_sign_page) | **POST** /pdf/\{name}/pages/\{pageNumber}/sign | Sign page.
247247
[**post_signature_field**](PdfApi.md#post_signature_field) | **POST** /pdf/\{name}/fields/signature | Add document signature field.
248248
[**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 |
249250
[**post_text_box_fields**](PdfApi.md#post_text_box_fields) | **POST** /pdf/\{name}/fields/textbox | Add document text box fields.
250251
[**put_add_new_page**](PdfApi.md#put_add_new_page) | **PUT** /pdf/\{name}/pages | Add new page to end of the document.
251252
[**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
312313
[**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.
313314
[**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.
314315
[**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.
316317
[**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
317318
[**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
318319
[**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
29562957
**height** | **Integer**| The converted image height. | [optional] [default to 0]
29572958
**folder** | **String**| The document folder. | [optional]
29582959
**storage** | **String**| The document storage. | [optional]
2960+
**password** | **String**| The password (Base64). | [optional]
29592961

29602962
### Return type
29612963

@@ -2983,6 +2985,7 @@ Name | Type | Description | Notes
29832985
**height** | **Integer**| The converted image height. | [optional] [default to 0]
29842986
**folder** | **String**| The document folder. | [optional]
29852987
**storage** | **String**| The document storage. | [optional]
2988+
**password** | **String**| The password (Base64). | [optional]
29862989

29872990
### Return type
29882991

@@ -3010,6 +3013,7 @@ Name | Type | Description | Notes
30103013
**height** | **Integer**| The converted image height. | [optional] [default to 0]
30113014
**folder** | **String**| The document folder. | [optional]
30123015
**storage** | **String**| The document storage. | [optional]
3016+
**password** | **String**| The password (Base64). | [optional]
30133017

30143018
### Return type
30153019

@@ -3037,6 +3041,7 @@ Name | Type | Description | Notes
30373041
**height** | **Integer**| The converted image height. | [optional] [default to 0]
30383042
**folder** | **String**| The document folder. | [optional]
30393043
**storage** | **String**| The document storage. | [optional]
3044+
**password** | **String**| The password (Base64). | [optional]
30403045

30413046
### Return type
30423047

@@ -3064,6 +3069,7 @@ Name | Type | Description | Notes
30643069
**height** | **Integer**| The converted image height. | [optional] [default to 0]
30653070
**folder** | **String**| The document folder. | [optional]
30663071
**storage** | **String**| The document storage. | [optional]
3072+
**password** | **String**| The password (Base64). | [optional]
30673073

30683074
### Return type
30693075

@@ -3091,6 +3097,7 @@ Name | Type | Description | Notes
30913097
**height** | **Integer**| The converted image height. | [optional] [default to 0]
30923098
**folder** | **String**| The document folder. | [optional]
30933099
**storage** | **String**| The document storage. | [optional]
3100+
**password** | **String**| The password (Base64). | [optional]
30943101

30953102
### Return type
30963103

@@ -3860,7 +3867,7 @@ Name | Type | Description | Notes
38603867
# **get_pdf_in_storage_to_doc**
38613868
> File get_pdf_in_storage_to_doc(name, opts)
38623869
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.
38643871

38653872
### Parameters
38663873

@@ -3877,6 +3884,7 @@ Name | Type | Description | Notes
38773884
**relative_horizontal_proximity** | **Float**| Relative horizontal proximity. | [optional]
38783885
**folder** | **String**| The document folder. | [optional]
38793886
**storage** | **String**| The document storage. | [optional]
3887+
**password** | **String**| The password (Base64). | [optional]
38803888

38813889
### Return type
38823890

@@ -6501,6 +6509,31 @@ Name | Type | Description | Notes
65016509

65026510

65036511

6512+
# **post_split_range_pdf_document**
6513+
> SplitResultResponse post_split_range_pdf_document(name, options, opts)
6514+
6515+
6516+
6517+
### Parameters
6518+
6519+
Name | Type | Description | Notes
6520+
------------- | ------------- | ------------- | -------------
6521+
**name** | **String**| |
6522+
**options** | [**SplitRangePdfOptions**](SplitRangePdfOptions.md)| |
6523+
**storage** | **String**| | [optional]
6524+
**folder** | **String**| | [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+
65046537
# **post_text_box_fields**
65056538
> AsposeResponse post_text_box_fields(name, fields, opts)
65066539
@@ -7695,6 +7728,7 @@ Name | Type | Description | Notes
76957728
**height** | **Integer**| The converted image height. | [optional] [default to 0]
76967729
**folder** | **String**| The document folder. | [optional]
76977730
**storage** | **String**| The document storage. | [optional]
7731+
**password** | **String**| The password (Base64). | [optional]
76987732

76997733
### Return type
77007734

@@ -7723,6 +7757,7 @@ Name | Type | Description | Notes
77237757
**height** | **Integer**| The converted image height. | [optional] [default to 0]
77247758
**folder** | **String**| The document folder. | [optional]
77257759
**storage** | **String**| The document storage. | [optional]
7760+
**password** | **String**| The password (Base64). | [optional]
77267761

77277762
### Return type
77287763

@@ -7751,6 +7786,7 @@ Name | Type | Description | Notes
77517786
**height** | **Integer**| The converted image height. | [optional] [default to 0]
77527787
**folder** | **String**| The document folder. | [optional]
77537788
**storage** | **String**| The document storage. | [optional]
7789+
**password** | **String**| The password (Base64). | [optional]
77547790

77557791
### Return type
77567792

@@ -7779,6 +7815,7 @@ Name | Type | Description | Notes
77797815
**height** | **Integer**| The converted image height. | [optional] [default to 0]
77807816
**folder** | **String**| The document folder. | [optional]
77817817
**storage** | **String**| The document storage. | [optional]
7818+
**password** | **String**| The password (Base64). | [optional]
77827819

77837820
### Return type
77847821

@@ -7807,6 +7844,7 @@ Name | Type | Description | Notes
78077844
**height** | **Integer**| The converted image height. | [optional] [default to 0]
78087845
**folder** | **String**| The document folder. | [optional]
78097846
**storage** | **String**| The document storage. | [optional]
7847+
**password** | **String**| The password (Base64). | [optional]
78107848

78117849
### Return type
78127850

@@ -7835,6 +7873,7 @@ Name | Type | Description | Notes
78357873
**height** | **Integer**| The converted image height. | [optional] [default to 0]
78367874
**folder** | **String**| The document folder. | [optional]
78377875
**storage** | **String**| The document storage. | [optional]
7876+
**password** | **String**| The password (Base64). | [optional]
78387877

78397878
### Return type
78407879

@@ -7917,6 +7956,7 @@ Name | Type | Description | Notes
79177956
**recognize_bullets** | **BOOLEAN**| Recognize bullets. | [optional]
79187957
**relative_horizontal_proximity** | **Float**| Relative horizontal proximity. | [optional]
79197958
**storage** | **String**| The document storage. | [optional]
7959+
**password** | **String**| The password (Base64). | [optional]
79207960
**file** | **File**| A file to be converted. | [optional]
79217961

79227962
### Return type
@@ -8278,7 +8318,7 @@ Name | Type | Description | Notes
82788318
# **put_pdf_in_storage_to_doc**
82798319
> AsposeResponse put_pdf_in_storage_to_doc(name, out_path, opts)
82808320
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.
82828322

82838323
### Parameters
82848324

@@ -8296,6 +8336,7 @@ Name | Type | Description | Notes
82968336
**relative_horizontal_proximity** | **Float**| Relative horizontal proximity. | [optional]
82978337
**folder** | **String**| The document folder. | [optional]
82988338
**storage** | **String**| The document storage. | [optional]
8339+
**password** | **String**| The password (Base64). | [optional]
82998340

83008341
### Return type
83018342

docs/SplitRangePdfOptions.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# AsposePdfCloud::SplitRangePdfOptions
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**page_ranges** | [**Array<PageRange>**](PageRange.md) | | [optional]
8+
9+

lib/aspose_pdf_cloud.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
require_relative 'aspose_pdf_cloud/models/output_format'
9696
require_relative 'aspose_pdf_cloud/models/page_layout'
9797
require_relative 'aspose_pdf_cloud/models/page_mode'
98+
require_relative 'aspose_pdf_cloud/models/page_range'
9899
require_relative 'aspose_pdf_cloud/models/page_word_count'
99100
require_relative 'aspose_pdf_cloud/models/paragraph'
100101
require_relative 'aspose_pdf_cloud/models/parts_embedding_modes'
@@ -115,6 +116,7 @@
115116
require_relative 'aspose_pdf_cloud/models/signature_type'
116117
require_relative 'aspose_pdf_cloud/models/sound_encoding'
117118
require_relative 'aspose_pdf_cloud/models/sound_icon'
119+
require_relative 'aspose_pdf_cloud/models/split_range_pdf_options'
118120
require_relative 'aspose_pdf_cloud/models/split_result'
119121
require_relative 'aspose_pdf_cloud/models/stamp'
120122
require_relative 'aspose_pdf_cloud/models/stamp_icon'

0 commit comments

Comments
 (0)