aspose_pdf_cloud 20.6.0 → 20.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e59695f8f626cb20c664d20c909440fb6b6c336214c36dbbfe125bf9bfff8731
4
- data.tar.gz: c105fe514b6d1024a4f6a1fea8e0862fdae4ab3d71fe1869dafa40eda40427bb
3
+ metadata.gz: 7fe11a03deff92cabba5629c4679d229cf205ca25ebd340da53b88ba040bf025
4
+ data.tar.gz: d9b65a9ea9530d2f58b51fbdc636c686add0598ab549614e679051331505cfc4
5
5
  SHA512:
6
- metadata.gz: fb43817c81ebfa222c6f7c4c8dd82279a9ae7240b89b439cd606069c40a0cf1f049156a08d25a01eb866bd4e3ab89d7a28d2a71c42deb6767cfbcc919f3e8392
7
- data.tar.gz: 0cf8634c4cb305360fea86c270c3fae37e529846f32b9fa6984b2cb2649955a9a136a9436b36d8d1229f33227b5e5925c04690f95d0fb7d451b0e930d82a27ab
6
+ metadata.gz: f8946aeb040eecde7bf069e9fe5a8b9cac94ea4f70184bd04bce148069faf09d7270462d26744ca12689dff8232cb5d864b3806bc992f08bce8e277903e445af
7
+ data.tar.gz: 73bb74cd04fc7301a92957ffa7dd39bfd7c7c588aea9e1f8a7d45a50c47a6cfb5f09fafb18d2990ef8b897114091069a55c44c651be2ad36f07035f91401b8d4
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Aspose.PDF Cloud
2
2
 
3
3
  - API version: 3.0
4
- - Package version: 20.6.0
4
+ - Package version: 20.7.0
5
5
 
6
6
  [Aspose.PDF Cloud](https://products.aspose.cloud/pdf) is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of Pdf documents in the cloud.
7
7
 
@@ -24,15 +24,15 @@ gem build aspose_pdf_cloud.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./aspose_pdf_cloud-20.6.0.gem
27
+ gem install ./aspose_pdf_cloud-20.7.0.gem
28
28
  ```
29
- (for development, run `gem install --dev ./aspose_pdf_cloud-20.6.0.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./aspose_pdf_cloud-20.7.0.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'aspose_pdf_cloud', '~> 20.6.0'
35
+ gem 'aspose_pdf_cloud', '~> 20.7.0'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -116,6 +116,7 @@ Class | Method | HTTP request | Description
116
116
  *AsposePdfCloud::PdfApi* | [**delete_stamp**](docs/PdfApi.md#delete_stamp) | **DELETE** /pdf/\{name}/stamps/\{stampId} | Delete document stamp by ID
117
117
  *AsposePdfCloud::PdfApi* | [**delete_table**](docs/PdfApi.md#delete_table) | **DELETE** /pdf/\{name}/tables/\{tableId} | Delete document table by ID
118
118
  *AsposePdfCloud::PdfApi* | [**download_file**](docs/PdfApi.md#download_file) | **GET** /pdf/storage/file/\{path} | Download file
119
+ *AsposePdfCloud::PdfApi* | [**get_api_info**](docs/PdfApi.md#get_api_info) | **GET** /pdf/info |
119
120
  *AsposePdfCloud::PdfApi* | [**get_bookmark**](docs/PdfApi.md#get_bookmark) | **GET** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Read document bookmark.
120
121
  *AsposePdfCloud::PdfApi* | [**get_bookmarks**](docs/PdfApi.md#get_bookmarks) | **GET** /pdf/\{name}/bookmarks/list/\{bookmarkPath} | Read document bookmarks node list.
121
122
  *AsposePdfCloud::PdfApi* | [**get_caret_annotation**](docs/PdfApi.md#get_caret_annotation) | **GET** /pdf/\{name}/annotations/caret/\{annotationId} | Read document page caret annotation by ID.
@@ -124,7 +125,7 @@ Class | Method | HTTP request | Description
124
125
  *AsposePdfCloud::PdfApi* | [**get_combo_box_field**](docs/PdfApi.md#get_combo_box_field) | **GET** /pdf/\{name}/fields/combobox/\{fieldName} | Read document combobox field by name.
125
126
  *AsposePdfCloud::PdfApi* | [**get_disc_usage**](docs/PdfApi.md#get_disc_usage) | **GET** /pdf/storage/disc | Get disc usage
126
127
  *AsposePdfCloud::PdfApi* | [**get_document**](docs/PdfApi.md#get_document) | **GET** /pdf/\{name} | Read common document info.
127
- *AsposePdfCloud::PdfApi* | [**get_document_annotations**](docs/PdfApi.md#get_document_annotations) | **GET** /pdf/\{name}/annotations | Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
128
+ *AsposePdfCloud::PdfApi* | [**get_document_annotations**](docs/PdfApi.md#get_document_annotations) | **GET** /pdf/\{name}/annotations | Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
128
129
  *AsposePdfCloud::PdfApi* | [**get_document_attachment_by_index**](docs/PdfApi.md#get_document_attachment_by_index) | **GET** /pdf/\{name}/attachments/\{attachmentIndex} | Read document attachment info by its index.
129
130
  *AsposePdfCloud::PdfApi* | [**get_document_attachments**](docs/PdfApi.md#get_document_attachments) | **GET** /pdf/\{name}/attachments | Read document attachments info.
130
131
  *AsposePdfCloud::PdfApi* | [**get_document_bookmarks**](docs/PdfApi.md#get_document_bookmarks) | **GET** /pdf/\{name}/bookmarks/tree | Read document bookmarks tree.
@@ -273,7 +274,7 @@ Class | Method | HTTP request | Description
273
274
  *AsposePdfCloud::PdfApi* | [**get_verify_signature**](docs/PdfApi.md#get_verify_signature) | **GET** /pdf/\{name}/verifySignature | Verify signature document.
274
275
  *AsposePdfCloud::PdfApi* | [**get_web_in_storage_to_pdf**](docs/PdfApi.md#get_web_in_storage_to_pdf) | **GET** /pdf/create/web | Convert web page to PDF format and return resulting file in response.
275
276
  *AsposePdfCloud::PdfApi* | [**get_words_per_page**](docs/PdfApi.md#get_words_per_page) | **GET** /pdf/\{name}/pages/wordCount | Get number of words per document page.
276
- *AsposePdfCloud::PdfApi* | [**get_xfa_pdf_in_storage_to_acro_form**](docs/PdfApi.md#get_xfa_pdf_in_storage_to_acro_form) | **GET** /pdf/\{name}/convert/xfatoacroform | Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
277
+ *AsposePdfCloud::PdfApi* | [**get_xfa_pdf_in_storage_to_acro_form**](docs/PdfApi.md#get_xfa_pdf_in_storage_to_acro_form) | **GET** /pdf/\{name}/convert/xfatoacroform | Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
277
278
  *AsposePdfCloud::PdfApi* | [**get_xml_in_storage_to_pdf**](docs/PdfApi.md#get_xml_in_storage_to_pdf) | **GET** /pdf/create/xml | Convert XML file (located on storage) to PDF format and return resulting file in response.
278
279
  *AsposePdfCloud::PdfApi* | [**get_xps_in_storage_to_pdf**](docs/PdfApi.md#get_xps_in_storage_to_pdf) | **GET** /pdf/create/xps | Convert XPS file (located on storage) to PDF format and return resulting file in response.
279
280
  *AsposePdfCloud::PdfApi* | [**get_xsl_fo_in_storage_to_pdf**](docs/PdfApi.md#get_xsl_fo_in_storage_to_pdf) | **GET** /pdf/create/xslfo | Convert XslFo file (located on storage) to PDF format and return resulting file in response.
@@ -446,8 +447,8 @@ Class | Method | HTTP request | Description
446
447
  *AsposePdfCloud::PdfApi* | [**put_update_field**](docs/PdfApi.md#put_update_field) | **PUT** /pdf/\{name}/fields/\{fieldName} | Update field.
447
448
  *AsposePdfCloud::PdfApi* | [**put_update_fields**](docs/PdfApi.md#put_update_fields) | **PUT** /pdf/\{name}/fields | Update fields.
448
449
  *AsposePdfCloud::PdfApi* | [**put_web_in_storage_to_pdf**](docs/PdfApi.md#put_web_in_storage_to_pdf) | **PUT** /pdf/\{name}/create/web | Convert web page to PDF format and upload resulting file to storage.
449
- *AsposePdfCloud::PdfApi* | [**put_xfa_pdf_in_request_to_acro_form**](docs/PdfApi.md#put_xfa_pdf_in_request_to_acro_form) | **PUT** /pdf/convert/xfatoacroform | Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
450
- *AsposePdfCloud::PdfApi* | [**put_xfa_pdf_in_storage_to_acro_form**](docs/PdfApi.md#put_xfa_pdf_in_storage_to_acro_form) | **PUT** /pdf/\{name}/convert/xfatoacroform | Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
450
+ *AsposePdfCloud::PdfApi* | [**put_xfa_pdf_in_request_to_acro_form**](docs/PdfApi.md#put_xfa_pdf_in_request_to_acro_form) | **PUT** /pdf/convert/xfatoacroform | Converts PDF document which contains XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
451
+ *AsposePdfCloud::PdfApi* | [**put_xfa_pdf_in_storage_to_acro_form**](docs/PdfApi.md#put_xfa_pdf_in_storage_to_acro_form) | **PUT** /pdf/\{name}/convert/xfatoacroform | Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
451
452
  *AsposePdfCloud::PdfApi* | [**put_xml_in_storage_to_pdf**](docs/PdfApi.md#put_xml_in_storage_to_pdf) | **PUT** /pdf/\{name}/create/xml | Convert XML file (located on storage) to PDF format and upload resulting file to storage.
452
453
  *AsposePdfCloud::PdfApi* | [**put_xps_in_storage_to_pdf**](docs/PdfApi.md#put_xps_in_storage_to_pdf) | **PUT** /pdf/\{name}/create/xps | Convert XPS file (located on storage) to PDF format and upload resulting file to storage.
453
454
  *AsposePdfCloud::PdfApi* | [**put_xsl_fo_in_storage_to_pdf**](docs/PdfApi.md#put_xsl_fo_in_storage_to_pdf) | **PUT** /pdf/\{name}/create/xslfo | Convert XslFo file (located on storage) to PDF format and upload resulting file to storage.
@@ -461,6 +462,7 @@ Class | Method | HTTP request | Description
461
462
  - [AsposePdfCloud::AnnotationState](docs/AnnotationState.md)
462
463
  - [AsposePdfCloud::AnnotationType](docs/AnnotationType.md)
463
464
  - [AsposePdfCloud::AntialiasingProcessingType](docs/AntialiasingProcessingType.md)
465
+ - [AsposePdfCloud::ApiInfo](docs/ApiInfo.md)
464
466
  - [AsposePdfCloud::AsposeResponse](docs/AsposeResponse.md)
465
467
  - [AsposePdfCloud::Border](docs/Border.md)
466
468
  - [AsposePdfCloud::BorderCornerStyle](docs/BorderCornerStyle.md)
@@ -503,6 +505,8 @@ Class | Method | HTTP request | Description
503
505
  - [AsposePdfCloud::HorizontalAlignment](docs/HorizontalAlignment.md)
504
506
  - [AsposePdfCloud::HtmlDocumentType](docs/HtmlDocumentType.md)
505
507
  - [AsposePdfCloud::HtmlMarkupGenerationModes](docs/HtmlMarkupGenerationModes.md)
508
+ - [AsposePdfCloud::ImageCompressionVersion](docs/ImageCompressionVersion.md)
509
+ - [AsposePdfCloud::ImageEncoding](docs/ImageEncoding.md)
506
510
  - [AsposePdfCloud::ImageFragment](docs/ImageFragment.md)
507
511
  - [AsposePdfCloud::ImageSrcType](docs/ImageSrcType.md)
508
512
  - [AsposePdfCloud::ImageTemplate](docs/ImageTemplate.md)
@@ -0,0 +1,10 @@
1
+ # AsposePdfCloud::ApiInfo
2
+ Represents response for ApiInfo DTO
3
+
4
+ ## Properties
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | Product name. | [optional]
8
+ **version** | **String** | API version. | [optional]
9
+
10
+
@@ -0,0 +1,12 @@
1
+ # AsposePdfCloud::ImageCompressionVersion
2
+ Describes versions of image compression algorithm.
3
+
4
+ ## Enum
5
+ Name | Type | Value | Description
6
+ ------------ | ------------- | ------------- | -------------
7
+ **STANDARD** | **String** | 'Standard' | Standard algorithm. Default value.
8
+ **FAST** | **String** | 'Fast' | Improved algorithm faster then standard but applicable not for all cases.
9
+ **MIXED** | **String** | 'Mixed' | Use fast algorithm when possible and standard for other cases. May be slower then "Fast" but may produce better compression.
10
+
11
+
12
+
@@ -0,0 +1,13 @@
1
+ # AsposePdfCloud::ImageEncoding
2
+ Image encoding type.
3
+
4
+ ## Enum
5
+ Name | Type | Value | Description
6
+ ------------ | ------------- | ------------- | -------------
7
+ **UNCHANGED** | **String** | 'Unchanged' | Don't change encoding.
8
+ **JPEG** | **String** | 'Jpeg' | JPEG (DCT) encoding.
9
+ **FLATE** | **String** | 'Flate' | Flate encoding.
10
+ **JPEG2000** | **String** | 'Jpeg2000' | JPEG2000 (JPX) encoding.
11
+
12
+
13
+
@@ -4,12 +4,18 @@ Represents Pdf optimize options.
4
4
  ## Properties
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **allow_reuse_page_content** | **BOOLEAN** | If true page contents will be reused when document is optimized for equal pages. |
8
- **compress_images** | **BOOLEAN** | If this flag is set to true images will be compressed in the document. compression level is specfied with ImageQuality property. |
9
- **image_quality** | **Integer** | Specifie slevel of image compression when CompressIamges flag is used. |
10
- **link_duplcate_streams** | **BOOLEAN** | If this flag is set to true, Resource streams will be analyzed. If duplicate streams are found (i.e. if stream contents is equal), then thes streams will be stored as one object. This allows to decrease document size in some cases (for example, when same document was concatenedted multiple times). |
11
- **remove_unused_objects** | **BOOLEAN** | If this flag is set to true, all document objects will be checked and unused objects (i.e. objects which does not have any reference) are removed from document. |
12
- **remove_unused_streams** | **BOOLEAN** | If this flag set to true, every resource is checked on it's usage. If resource is never used, then resources is removed. This may decrease document size for example when pages were extracted from document. |
13
- **unembed_fonts** | **BOOLEAN** | Make fonts not embedded if set to true. |
7
+ **allow_reuse_page_content** | **BOOLEAN** | If true page contents will be reused when document is optimized for equal pages. | [optional]
8
+ **compress_images** | **BOOLEAN** | If this flag is set to true images will be compressed in the document. Compression level is specified with ImageQuality property. | [optional]
9
+ **image_quality** | **Integer** | Specifies level of image compression when CompressImages flag is used. | [optional]
10
+ **link_duplcate_streams** | **BOOLEAN** | If this flag is set to true, Resource streams will be analyzed. If duplicate streams are found (i.e. if stream contents is equal), then thees streams will be stored as one object. This allows to decrease document size in some cases (for example, when same document was concatenated multiple times). | [optional]
11
+ **remove_unused_objects** | **BOOLEAN** | If this flag is set to true, all document objects will be checked and unused objects (i.e. objects which does not have any reference) are removed from document. | [optional]
12
+ **remove_unused_streams** | **BOOLEAN** | If this flag set to true, every resource is checked on it's usage. If resource is never used, then resources is removed. This may decrease document size for example when pages were extracted from document. | [optional]
13
+ **unembed_fonts** | **BOOLEAN** | Make fonts not embedded if set to true. | [optional]
14
+ **resize_images** | **BOOLEAN** | If this flag set to true and CompressImages is true images will be resized if image resolution is greater then specified MaxResolution parameter. | [optional]
15
+ **max_resolution** | **Integer** | Specifies maximum resolution of images. If image has higher resolution it will be scaled. | [optional]
16
+ **subset_fonts** | **BOOLEAN** | Fonts will be converted into subsets if set to true. | [optional]
17
+ **remove_private_info** | **BOOLEAN** | Remove private information (page piece info). | [optional]
18
+ **image_encoding** | [**ImageEncoding**](ImageEncoding.md) | Image encode which will be used. | [optional]
19
+ **image_compression_version** | [**ImageCompressionVersion**](ImageCompressionVersion.md) | Version of compression algorithm. Possible values are: "Standard" - standard compression, "Fast" - fast (improved compression which is faster then standard but may be applicable not for all images), "Mixed" - mixed (standard compression is applied to images which can not be compressed by faster algorithm, this may give best compression but more slow then "Fast" algorithm. Version "Fast" is not applicable for resizing images (standard method will be used). Default is "Standard". | [optional]
14
20
 
15
21
 
@@ -4,8 +4,9 @@ Allows to specify PdfA file format.
4
4
  ## Enum
5
5
  Name | Type | Value | Description
6
6
  ------------ | ------------- | ------------- | -------------
7
- **PDFA1_A** | **String** | 'PDFA1A' |
8
- **PDFA1_B** | **String** | 'PDFA1B' |
7
+ **PDFA1_A** | **String** | 'PDFA1A' | Pdf/A-1a format
8
+ **PDFA1_B** | **String** | 'PDFA1B' | Pdf/A-1b format
9
+ **PDFA3_A** | **String** | 'PDFA3A' | Pdf/A-3a format
9
10
 
10
11
 
11
12
 
@@ -29,6 +29,7 @@ Method | HTTP request | Description
29
29
  [**delete_stamp**](PdfApi.md#delete_stamp) | **DELETE** /pdf/\{name}/stamps/\{stampId} | Delete document stamp by ID
30
30
  [**delete_table**](PdfApi.md#delete_table) | **DELETE** /pdf/\{name}/tables/\{tableId} | Delete document table by ID
31
31
  [**download_file**](PdfApi.md#download_file) | **GET** /pdf/storage/file/\{path} | Download file
32
+ [**get_api_info**](PdfApi.md#get_api_info) | **GET** /pdf/info |
32
33
  [**get_bookmark**](PdfApi.md#get_bookmark) | **GET** /pdf/\{name}/bookmarks/bookmark/\{bookmarkPath} | Read document bookmark.
33
34
  [**get_bookmarks**](PdfApi.md#get_bookmarks) | **GET** /pdf/\{name}/bookmarks/list/\{bookmarkPath} | Read document bookmarks node list.
34
35
  [**get_caret_annotation**](PdfApi.md#get_caret_annotation) | **GET** /pdf/\{name}/annotations/caret/\{annotationId} | Read document page caret annotation by ID.
@@ -37,7 +38,7 @@ Method | HTTP request | Description
37
38
  [**get_combo_box_field**](PdfApi.md#get_combo_box_field) | **GET** /pdf/\{name}/fields/combobox/\{fieldName} | Read document combobox field by name.
38
39
  [**get_disc_usage**](PdfApi.md#get_disc_usage) | **GET** /pdf/storage/disc | Get disc usage
39
40
  [**get_document**](PdfApi.md#get_document) | **GET** /pdf/\{name} | Read common document info.
40
- [**get_document_annotations**](PdfApi.md#get_document_annotations) | **GET** /pdf/\{name}/annotations | Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
41
+ [**get_document_annotations**](PdfApi.md#get_document_annotations) | **GET** /pdf/\{name}/annotations | Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
41
42
  [**get_document_attachment_by_index**](PdfApi.md#get_document_attachment_by_index) | **GET** /pdf/\{name}/attachments/\{attachmentIndex} | Read document attachment info by its index.
42
43
  [**get_document_attachments**](PdfApi.md#get_document_attachments) | **GET** /pdf/\{name}/attachments | Read document attachments info.
43
44
  [**get_document_bookmarks**](PdfApi.md#get_document_bookmarks) | **GET** /pdf/\{name}/bookmarks/tree | Read document bookmarks tree.
@@ -186,7 +187,7 @@ Method | HTTP request | Description
186
187
  [**get_verify_signature**](PdfApi.md#get_verify_signature) | **GET** /pdf/\{name}/verifySignature | Verify signature document.
187
188
  [**get_web_in_storage_to_pdf**](PdfApi.md#get_web_in_storage_to_pdf) | **GET** /pdf/create/web | Convert web page to PDF format and return resulting file in response.
188
189
  [**get_words_per_page**](PdfApi.md#get_words_per_page) | **GET** /pdf/\{name}/pages/wordCount | Get number of words per document page.
189
- [**get_xfa_pdf_in_storage_to_acro_form**](PdfApi.md#get_xfa_pdf_in_storage_to_acro_form) | **GET** /pdf/\{name}/convert/xfatoacroform | Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
190
+ [**get_xfa_pdf_in_storage_to_acro_form**](PdfApi.md#get_xfa_pdf_in_storage_to_acro_form) | **GET** /pdf/\{name}/convert/xfatoacroform | Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
190
191
  [**get_xml_in_storage_to_pdf**](PdfApi.md#get_xml_in_storage_to_pdf) | **GET** /pdf/create/xml | Convert XML file (located on storage) to PDF format and return resulting file in response.
191
192
  [**get_xps_in_storage_to_pdf**](PdfApi.md#get_xps_in_storage_to_pdf) | **GET** /pdf/create/xps | Convert XPS file (located on storage) to PDF format and return resulting file in response.
192
193
  [**get_xsl_fo_in_storage_to_pdf**](PdfApi.md#get_xsl_fo_in_storage_to_pdf) | **GET** /pdf/create/xslfo | Convert XslFo file (located on storage) to PDF format and return resulting file in response.
@@ -359,8 +360,8 @@ Method | HTTP request | Description
359
360
  [**put_update_field**](PdfApi.md#put_update_field) | **PUT** /pdf/\{name}/fields/\{fieldName} | Update field.
360
361
  [**put_update_fields**](PdfApi.md#put_update_fields) | **PUT** /pdf/\{name}/fields | Update fields.
361
362
  [**put_web_in_storage_to_pdf**](PdfApi.md#put_web_in_storage_to_pdf) | **PUT** /pdf/\{name}/create/web | Convert web page to PDF format and upload resulting file to storage.
362
- [**put_xfa_pdf_in_request_to_acro_form**](PdfApi.md#put_xfa_pdf_in_request_to_acro_form) | **PUT** /pdf/convert/xfatoacroform | Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
363
- [**put_xfa_pdf_in_storage_to_acro_form**](PdfApi.md#put_xfa_pdf_in_storage_to_acro_form) | **PUT** /pdf/\{name}/convert/xfatoacroform | Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
363
+ [**put_xfa_pdf_in_request_to_acro_form**](PdfApi.md#put_xfa_pdf_in_request_to_acro_form) | **PUT** /pdf/convert/xfatoacroform | Converts PDF document which contains XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
364
+ [**put_xfa_pdf_in_storage_to_acro_form**](PdfApi.md#put_xfa_pdf_in_storage_to_acro_form) | **PUT** /pdf/\{name}/convert/xfatoacroform | Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
364
365
  [**put_xml_in_storage_to_pdf**](PdfApi.md#put_xml_in_storage_to_pdf) | **PUT** /pdf/\{name}/create/xml | Convert XML file (located on storage) to PDF format and upload resulting file to storage.
365
366
  [**put_xps_in_storage_to_pdf**](PdfApi.md#put_xps_in_storage_to_pdf) | **PUT** /pdf/\{name}/create/xps | Convert XPS file (located on storage) to PDF format and upload resulting file to storage.
366
367
  [**put_xsl_fo_in_storage_to_pdf**](PdfApi.md#put_xsl_fo_in_storage_to_pdf) | **PUT** /pdf/\{name}/create/xslfo | Convert XslFo file (located on storage) to PDF format and upload resulting file to storage.
@@ -983,6 +984,25 @@ Name | Type | Description | Notes
983
984
 
984
985
 
985
986
 
987
+ # **get_api_info**
988
+ > ApiInfo get_api_info
989
+
990
+
991
+
992
+ ### Parameters
993
+ This endpoint does not need any parameter.
994
+
995
+ ### Return type
996
+
997
+ [**ApiInfo**](ApiInfo.md)
998
+
999
+ ### HTTP request headers
1000
+
1001
+ - **Content-Type**: application/json
1002
+ - **Accept**: application/json
1003
+
1004
+
1005
+
986
1006
  # **get_bookmark**
987
1007
  > BookmarkResponse get_bookmark(name, bookmark_path, opts)
988
1008
 
@@ -1182,7 +1202,7 @@ Name | Type | Description | Notes
1182
1202
  # **get_document_annotations**
1183
1203
  > AnnotationsInfoResponse get_document_annotations(name, opts)
1184
1204
 
1185
- Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
1205
+ Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
1186
1206
 
1187
1207
  ### Parameters
1188
1208
 
@@ -4951,7 +4971,7 @@ Name | Type | Description | Notes
4951
4971
  # **get_xfa_pdf_in_storage_to_acro_form**
4952
4972
  > File get_xfa_pdf_in_storage_to_acro_form(name, opts)
4953
4973
 
4954
- Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
4974
+ Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
4955
4975
 
4956
4976
  ### Parameters
4957
4977
 
@@ -5967,7 +5987,7 @@ Name | Type | Description | Notes
5967
5987
  ------------- | ------------- | ------------- | -------------
5968
5988
  **name** | **String**| The document name. |
5969
5989
  **page_number** | **Integer**| The page number. |
5970
- **links** | [**Array<LinkAnnotation>**](LinkAnnotation.md)| Array of link anotation. |
5990
+ **links** | [**Array<LinkAnnotation>**](LinkAnnotation.md)| Array of link annotation. |
5971
5991
  **storage** | **String**| The document storage. | [optional]
5972
5992
  **folder** | **String**| The document folder. | [optional]
5973
5993
 
@@ -6847,7 +6867,7 @@ Name | Type | Description | Notes
6847
6867
  **out_path** | **String**| Full resulting filename (ex. /folder1/folder2/result.doc) |
6848
6868
  **password** | **String**| The password (encrypted Base64). |
6849
6869
  **storage** | **String**| The document storage. | [optional]
6850
- **file** | **File**| A file to be derypted. | [optional]
6870
+ **file** | **File**| A file to be decrypted. | [optional]
6851
6871
 
6852
6872
  ### Return type
6853
6873
 
@@ -7587,7 +7607,7 @@ Name | Type | Description | Notes
7587
7607
  ------------- | ------------- | ------------- | -------------
7588
7608
  **name** | **String**| The document name. |
7589
7609
  **link_id** | **String**| The link ID. |
7590
- **link** | [**LinkAnnotation**](LinkAnnotation.md)| Link anotation. |
7610
+ **link** | [**LinkAnnotation**](LinkAnnotation.md)| Link annotation. |
7591
7611
  **storage** | **String**| The document storage. | [optional]
7592
7612
  **folder** | **String**| The document folder. | [optional]
7593
7613
 
@@ -7662,7 +7682,7 @@ Merge a list of documents.
7662
7682
 
7663
7683
  Name | Type | Description | Notes
7664
7684
  ------------- | ------------- | ------------- | -------------
7665
- **name** | **String**| Resulting documen name. |
7685
+ **name** | **String**| Resulting document name. |
7666
7686
  **merge_documents** | [**MergeDocuments**](MergeDocuments.md)| MergeDocuments with a list of documents. |
7667
7687
  **storage** | **String**| Resulting document storage. | [optional]
7668
7688
  **folder** | **String**| Resulting document folder. | [optional]
@@ -9556,7 +9576,7 @@ Name | Type | Description | Notes
9556
9576
  # **put_xfa_pdf_in_request_to_acro_form**
9557
9577
  > AsposeResponse put_xfa_pdf_in_request_to_acro_form(out_path, opts)
9558
9578
 
9559
- Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
9579
+ Converts PDF document which contains XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
9560
9580
 
9561
9581
  ### Parameters
9562
9582
 
@@ -9580,7 +9600,7 @@ Name | Type | Description | Notes
9580
9600
  # **put_xfa_pdf_in_storage_to_acro_form**
9581
9601
  > AsposeResponse put_xfa_pdf_in_storage_to_acro_form(name, out_path, opts)
9582
9602
 
9583
- Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
9603
+ Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
9584
9604
 
9585
9605
  ### Parameters
9586
9606
 
@@ -30,6 +30,7 @@ require_relative 'aspose_pdf_cloud/models/annotation_flags'
30
30
  require_relative 'aspose_pdf_cloud/models/annotation_state'
31
31
  require_relative 'aspose_pdf_cloud/models/annotation_type'
32
32
  require_relative 'aspose_pdf_cloud/models/antialiasing_processing_type'
33
+ require_relative 'aspose_pdf_cloud/models/api_info'
33
34
  require_relative 'aspose_pdf_cloud/models/aspose_response'
34
35
  require_relative 'aspose_pdf_cloud/models/border'
35
36
  require_relative 'aspose_pdf_cloud/models/border_corner_style'
@@ -72,6 +73,8 @@ require_relative 'aspose_pdf_cloud/models/graph_info'
72
73
  require_relative 'aspose_pdf_cloud/models/horizontal_alignment'
73
74
  require_relative 'aspose_pdf_cloud/models/html_document_type'
74
75
  require_relative 'aspose_pdf_cloud/models/html_markup_generation_modes'
76
+ require_relative 'aspose_pdf_cloud/models/image_compression_version'
77
+ require_relative 'aspose_pdf_cloud/models/image_encoding'
75
78
  require_relative 'aspose_pdf_cloud/models/image_fragment'
76
79
  require_relative 'aspose_pdf_cloud/models/image_src_type'
77
80
  require_relative 'aspose_pdf_cloud/models/image_template'
@@ -1919,6 +1919,66 @@ module AsposePdfCloud
1919
1919
  return data, status_code, headers
1920
1920
  end
1921
1921
 
1922
+ #
1923
+ #
1924
+ # @param [Hash] opts the optional parameters
1925
+ # @return [ApiInfo]
1926
+ def get_api_info(opts = {})
1927
+ @api_client.request_token_if_needed
1928
+ data, _status_code, _headers = get_api_info_with_http_info(opts)
1929
+ rescue ApiError => error
1930
+ if error.code == 401
1931
+ @api_client.request_token_if_needed
1932
+ data, _status_code, _headers = get_api_info_with_http_info(opts)
1933
+ else
1934
+ raise
1935
+ end
1936
+ return data
1937
+ end
1938
+
1939
+ #
1940
+ #
1941
+ # @param [Hash] opts the optional parameters
1942
+ # @return [Array<(ApiInfo, Fixnum, Hash)>] ApiInfo data, response status code and response headers
1943
+ def get_api_info_with_http_info(opts = {})
1944
+ if @api_client.config.debugging
1945
+ @api_client.config.logger.debug "Calling API: PdfApi.get_api_info ..."
1946
+ end
1947
+ # resource path
1948
+ local_var_path = "/pdf/info"
1949
+
1950
+ # query parameters
1951
+ query_params = {}
1952
+
1953
+ # header parameters
1954
+ header_params = {}
1955
+ # HTTP header 'Accept' (if needed)
1956
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1957
+ # HTTP header 'Content-Type'
1958
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1959
+
1960
+ # form parameters
1961
+ form_params = {}
1962
+ # Fix header in file
1963
+ post_body = nil
1964
+
1965
+ # http body (model)
1966
+ # Fix header in file
1967
+ # post_body = nil
1968
+ auth_names = ['JWT']
1969
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1970
+ :header_params => header_params,
1971
+ :query_params => query_params,
1972
+ :form_params => form_params,
1973
+ :body => post_body,
1974
+ :auth_names => auth_names,
1975
+ :return_type => 'ApiInfo')
1976
+ if @api_client.config.debugging
1977
+ @api_client.config.logger.debug "API called: PdfApi#get_api_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1978
+ end
1979
+ return data, status_code, headers
1980
+ end
1981
+
1922
1982
  # Read document bookmark.
1923
1983
  #
1924
1984
  # @param name The document name.
@@ -2522,7 +2582,7 @@ module AsposePdfCloud
2522
2582
  return data, status_code, headers
2523
2583
  end
2524
2584
 
2525
- # Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
2585
+ # Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
2526
2586
  #
2527
2587
  # @param name The document name.
2528
2588
  # @param [Hash] opts the optional parameters
@@ -2542,7 +2602,7 @@ module AsposePdfCloud
2542
2602
  return data
2543
2603
  end
2544
2604
 
2545
- # Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
2605
+ # Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
2546
2606
  #
2547
2607
  # @param name The document name.
2548
2608
  # @param [Hash] opts the optional parameters
@@ -11404,8 +11464,8 @@ module AsposePdfCloud
11404
11464
  fail ArgumentError, "Missing the required parameter 'type' when calling PdfApi.get_pdf_in_storage_to_pdf_a"
11405
11465
  end
11406
11466
  # verify enum value
11407
- if @api_client.config.client_side_validation && !['PDFA1A', 'PDFA1B'].include?(type)
11408
- fail ArgumentError, "invalid value for 'type', must be one of PDFA1A, PDFA1B"
11467
+ if @api_client.config.client_side_validation && !['PDFA1A', 'PDFA1B', 'PDFA3A'].include?(type)
11468
+ fail ArgumentError, "invalid value for 'type', must be one of PDFA1A, PDFA1B, PDFA3A"
11409
11469
  end
11410
11470
  # resource path
11411
11471
  local_var_path = "/pdf/{name}/convert/pdfa".sub('{' + 'name' + '}', name.to_s)
@@ -14175,7 +14235,7 @@ module AsposePdfCloud
14175
14235
  return data, status_code, headers
14176
14236
  end
14177
14237
 
14178
- # Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
14238
+ # Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
14179
14239
  #
14180
14240
  # @param name The document name.
14181
14241
  # @param [Hash] opts the optional parameters
@@ -14195,7 +14255,7 @@ module AsposePdfCloud
14195
14255
  return data
14196
14256
  end
14197
14257
 
14198
- # Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
14258
+ # Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
14199
14259
  #
14200
14260
  # @param name The document name.
14201
14261
  # @param [Hash] opts the optional parameters
@@ -17364,7 +17424,7 @@ module AsposePdfCloud
17364
17424
  #
17365
17425
  # @param name The document name.
17366
17426
  # @param page_number The page number.
17367
- # @param links Array of link anotation.
17427
+ # @param links Array of link annotation.
17368
17428
  # @param [Hash] opts the optional parameters
17369
17429
  # @option opts [String] :storage The document storage.
17370
17430
  # @option opts [String] :folder The document folder.
@@ -17386,7 +17446,7 @@ module AsposePdfCloud
17386
17446
  #
17387
17447
  # @param name The document name.
17388
17448
  # @param page_number The page number.
17389
- # @param links Array of link anotation.
17449
+ # @param links Array of link annotation.
17390
17450
  # @param [Hash] opts the optional parameters
17391
17451
  # @option opts [String] :storage The document storage.
17392
17452
  # @option opts [String] :folder The document folder.
@@ -20150,7 +20210,7 @@ module AsposePdfCloud
20150
20210
  # @param password The password (encrypted Base64).
20151
20211
  # @param [Hash] opts the optional parameters
20152
20212
  # @option opts [String] :storage The document storage.
20153
- # @option opts [File] :file A file to be derypted.
20213
+ # @option opts [File] :file A file to be decrypted.
20154
20214
  # @return [AsposeResponse]
20155
20215
  def put_decrypt_document(out_path, password, opts = {})
20156
20216
  @api_client.request_token_if_needed
@@ -20171,7 +20231,7 @@ module AsposePdfCloud
20171
20231
  # @param password The password (encrypted Base64).
20172
20232
  # @param [Hash] opts the optional parameters
20173
20233
  # @option opts [String] :storage The document storage.
20174
- # @option opts [File] :file A file to be derypted.
20234
+ # @option opts [File] :file A file to be decrypted.
20175
20235
  # @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
20176
20236
  def put_decrypt_document_with_http_info(out_path, password, opts = {})
20177
20237
  if @api_client.config.debugging
@@ -22487,7 +22547,7 @@ module AsposePdfCloud
22487
22547
  #
22488
22548
  # @param name The document name.
22489
22549
  # @param link_id The link ID.
22490
- # @param link Link anotation.
22550
+ # @param link Link annotation.
22491
22551
  # @param [Hash] opts the optional parameters
22492
22552
  # @option opts [String] :storage The document storage.
22493
22553
  # @option opts [String] :folder The document folder.
@@ -22509,7 +22569,7 @@ module AsposePdfCloud
22509
22569
  #
22510
22570
  # @param name The document name.
22511
22571
  # @param link_id The link ID.
22512
- # @param link Link anotation.
22572
+ # @param link Link annotation.
22513
22573
  # @param [Hash] opts the optional parameters
22514
22574
  # @option opts [String] :storage The document storage.
22515
22575
  # @option opts [String] :folder The document folder.
@@ -22730,7 +22790,7 @@ module AsposePdfCloud
22730
22790
 
22731
22791
  # Merge a list of documents.
22732
22792
  #
22733
- # @param name Resulting documen name.
22793
+ # @param name Resulting document name.
22734
22794
  # @param merge_documents MergeDocuments with a list of documents.
22735
22795
  # @param [Hash] opts the optional parameters
22736
22796
  # @option opts [String] :storage Resulting document storage.
@@ -22751,7 +22811,7 @@ module AsposePdfCloud
22751
22811
 
22752
22812
  # Merge a list of documents.
22753
22813
  #
22754
- # @param name Resulting documen name.
22814
+ # @param name Resulting document name.
22755
22815
  # @param merge_documents MergeDocuments with a list of documents.
22756
22816
  # @param [Hash] opts the optional parameters
22757
22817
  # @option opts [String] :storage Resulting document storage.
@@ -24322,8 +24382,8 @@ module AsposePdfCloud
24322
24382
  fail ArgumentError, "Missing the required parameter 'type' when calling PdfApi.put_pdf_in_request_to_pdf_a"
24323
24383
  end
24324
24384
  # verify enum value
24325
- if @api_client.config.client_side_validation && !['PDFA1A', 'PDFA1B'].include?(type)
24326
- fail ArgumentError, "invalid value for 'type', must be one of PDFA1A, PDFA1B"
24385
+ if @api_client.config.client_side_validation && !['PDFA1A', 'PDFA1B', 'PDFA3A'].include?(type)
24386
+ fail ArgumentError, "invalid value for 'type', must be one of PDFA1A, PDFA1B, PDFA3A"
24327
24387
  end
24328
24388
  # resource path
24329
24389
  local_var_path = "/pdf/convert/pdfa"
@@ -25637,8 +25697,8 @@ module AsposePdfCloud
25637
25697
  fail ArgumentError, "Missing the required parameter 'type' when calling PdfApi.put_pdf_in_storage_to_pdf_a"
25638
25698
  end
25639
25699
  # verify enum value
25640
- if @api_client.config.client_side_validation && !['PDFA1A', 'PDFA1B'].include?(type)
25641
- fail ArgumentError, "invalid value for 'type', must be one of PDFA1A, PDFA1B"
25700
+ if @api_client.config.client_side_validation && !['PDFA1A', 'PDFA1B', 'PDFA3A'].include?(type)
25701
+ fail ArgumentError, "invalid value for 'type', must be one of PDFA1A, PDFA1B, PDFA3A"
25642
25702
  end
25643
25703
  # resource path
25644
25704
  local_var_path = "/pdf/{name}/convert/pdfa".sub('{' + 'name' + '}', name.to_s)
@@ -28821,7 +28881,7 @@ module AsposePdfCloud
28821
28881
  return data, status_code, headers
28822
28882
  end
28823
28883
 
28824
- # Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
28884
+ # Converts PDF document which contains XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
28825
28885
  #
28826
28886
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
28827
28887
  # @param [Hash] opts the optional parameters
@@ -28841,7 +28901,7 @@ module AsposePdfCloud
28841
28901
  return data
28842
28902
  end
28843
28903
 
28844
- # Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
28904
+ # Converts PDF document which contains XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
28845
28905
  #
28846
28906
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
28847
28907
  # @param [Hash] opts the optional parameters
@@ -28895,7 +28955,7 @@ module AsposePdfCloud
28895
28955
  return data, status_code, headers
28896
28956
  end
28897
28957
 
28898
- # Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
28958
+ # Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
28899
28959
  #
28900
28960
  # @param name The document name.
28901
28961
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
@@ -28916,7 +28976,7 @@ module AsposePdfCloud
28916
28976
  return data
28917
28977
  end
28918
28978
 
28919
- # Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
28979
+ # Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
28920
28980
  #
28921
28981
  # @param name The document name.
28922
28982
  # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
@@ -0,0 +1,209 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2020 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 response for ApiInfo DTO
27
+ class ApiInfo
28
+ # Product name.
29
+ attr_accessor :name
30
+
31
+ # API version.
32
+ attr_accessor :version
33
+
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'name' => :'Name',
39
+ :'version' => :'Version'
40
+ }
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ def self.swagger_types
45
+ {
46
+ :'name' => :'String',
47
+ :'version' => :'String'
48
+ }
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ return unless attributes.is_a?(Hash)
55
+
56
+ # convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
58
+
59
+ if attributes.has_key?(:'Name')
60
+ self.name = attributes[:'Name']
61
+ end
62
+
63
+ if attributes.has_key?(:'Version')
64
+ self.version = attributes[:'Version']
65
+ end
66
+
67
+ end
68
+
69
+ # Show invalid properties with the reasons. Usually used together with valid?
70
+ # @return Array for valid properies with the reasons
71
+ def list_invalid_properties
72
+ invalid_properties = Array.new
73
+ return invalid_properties
74
+ end
75
+
76
+ # Check to see if the all the properties in the model are valid
77
+ # @return true if the model is valid
78
+ def valid?
79
+ return true
80
+ end
81
+
82
+ # Checks equality by comparing each attribute.
83
+ # @param [Object] Object to be compared
84
+ def ==(o)
85
+ return true if self.equal?(o)
86
+ self.class == o.class &&
87
+ name == o.name &&
88
+ version == o.version
89
+ end
90
+
91
+ # @see the `==` method
92
+ # @param [Object] Object to be compared
93
+ def eql?(o)
94
+ self == o
95
+ end
96
+
97
+ # Calculates hash code according to all attributes.
98
+ # @return [Fixnum] Hash code
99
+ def hash
100
+ [name, version].hash
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def build_from_hash(attributes)
107
+ return nil unless attributes.is_a?(Hash)
108
+ self.class.swagger_types.each_pair do |key, type|
109
+ if type =~ /\AArray<(.*)>/i
110
+ # check to ensure the input is an array given that the the attribute
111
+ # is documented as an array but the input is not
112
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
113
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
114
+ end
115
+ elsif !attributes[self.class.attribute_map[key]].nil?
116
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
117
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
118
+ end
119
+
120
+ self
121
+ end
122
+
123
+ # Deserializes the data based on type
124
+ # @param string type Data type
125
+ # @param string value Value to be deserialized
126
+ # @return [Object] Deserialized data
127
+ def _deserialize(type, value)
128
+ case type.to_sym
129
+ when :DateTime
130
+ DateTime.parse(value)
131
+ when :Date
132
+ Date.parse(value)
133
+ when :String
134
+ value.to_s
135
+ when :Integer
136
+ value.to_i
137
+ when :Float
138
+ value.to_f
139
+ when :BOOLEAN
140
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
141
+ true
142
+ else
143
+ false
144
+ end
145
+ when :Object
146
+ # generic object (usually a Hash), return directly
147
+ value
148
+ when /\AArray<(?<inner_type>.+)>\z/
149
+ inner_type = Regexp.last_match[:inner_type]
150
+ value.map { |v| _deserialize(inner_type, v) }
151
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
152
+ k_type = Regexp.last_match[:k_type]
153
+ v_type = Regexp.last_match[:v_type]
154
+ {}.tap do |hash|
155
+ value.each do |k, v|
156
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
157
+ end
158
+ end
159
+ else # model
160
+ temp_model = AsposePdfCloud.const_get(type).new
161
+ temp_model.build_from_hash(value)
162
+ end
163
+ end
164
+
165
+ # Returns the string representation of the object
166
+ # @return [String] String presentation of the object
167
+ def to_s
168
+ to_hash.to_s
169
+ end
170
+
171
+ # to_body is an alias to to_hash (backward compatibility)
172
+ # @return [Hash] Returns the object in the form of hash
173
+ def to_body
174
+ to_hash
175
+ end
176
+
177
+ # Returns the object in the form of hash
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_hash
180
+ hash = {}
181
+ self.class.attribute_map.each_pair do |attr, param|
182
+ value = self.send(attr)
183
+ next if value.nil?
184
+ hash[param] = _to_hash(value)
185
+ end
186
+ hash
187
+ end
188
+
189
+ # Outputs non-array value in the form of hash
190
+ # For object, use to_hash. Otherwise, just return the value
191
+ # @param [Object] value Any valid value
192
+ # @return [Hash] Returns the value in the form of hash
193
+ def _to_hash(value)
194
+ if value.is_a?(Array)
195
+ value.compact.map{ |v| _to_hash(v) }
196
+ elsif value.is_a?(Hash)
197
+ {}.tap do |hash|
198
+ value.each { |k, v| hash[k] = _to_hash(v) }
199
+ end
200
+ elsif value.respond_to? :to_hash
201
+ value.to_hash
202
+ else
203
+ value
204
+ end
205
+ end
206
+
207
+ end
208
+
209
+ end
@@ -0,0 +1,45 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2020 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
+ class ImageCompressionVersion
27
+
28
+ STANDARD = "Standard".freeze
29
+ FAST = "Fast".freeze
30
+ MIXED = "Mixed".freeze
31
+
32
+ # Builds the enum from string
33
+ # @param [String] The enum value in the form of the string
34
+ # @return [String] The enum value
35
+ def build_from_hash(value)
36
+ # resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME)
37
+ # consantValues = ImageCompressionVersion.constants.select{|c| c.to_s == value}
38
+ constantValues = ImageCompressionVersion.constants.select{ |const_name| ImageCompressionVersion.const_get(const_name) == value}
39
+
40
+ raise "Invalid ENUM value #{value} for class #ImageCompressionVersion" if constantValues.empty?
41
+ value
42
+ end
43
+ end
44
+
45
+ end
@@ -0,0 +1,46 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2020 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
+ class ImageEncoding
27
+
28
+ UNCHANGED = "Unchanged".freeze
29
+ JPEG = "Jpeg".freeze
30
+ FLATE = "Flate".freeze
31
+ JPEG2000 = "Jpeg2000".freeze
32
+
33
+ # Builds the enum from string
34
+ # @param [String] The enum value in the form of the string
35
+ # @return [String] The enum value
36
+ def build_from_hash(value)
37
+ # resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME)
38
+ # consantValues = ImageEncoding.constants.select{|c| c.to_s == value}
39
+ constantValues = ImageEncoding.constants.select{ |const_name| ImageEncoding.const_get(const_name) == value}
40
+
41
+ raise "Invalid ENUM value #{value} for class #ImageEncoding" if constantValues.empty?
42
+ value
43
+ end
44
+ end
45
+
46
+ end
@@ -28,13 +28,13 @@ module AsposePdfCloud
28
28
  # If true page contents will be reused when document is optimized for equal pages.
29
29
  attr_accessor :allow_reuse_page_content
30
30
 
31
- # If this flag is set to true images will be compressed in the document. compression level is specfied with ImageQuality property.
31
+ # If this flag is set to true images will be compressed in the document. Compression level is specified with ImageQuality property.
32
32
  attr_accessor :compress_images
33
33
 
34
- # Specifie slevel of image compression when CompressIamges flag is used.
34
+ # Specifies level of image compression when CompressImages flag is used.
35
35
  attr_accessor :image_quality
36
36
 
37
- # If this flag is set to true, Resource streams will be analyzed. If duplicate streams are found (i.e. if stream contents is equal), then thes streams will be stored as one object. This allows to decrease document size in some cases (for example, when same document was concatenedted multiple times).
37
+ # If this flag is set to true, Resource streams will be analyzed. If duplicate streams are found (i.e. if stream contents is equal), then thees streams will be stored as one object. This allows to decrease document size in some cases (for example, when same document was concatenated multiple times).
38
38
  attr_accessor :link_duplcate_streams
39
39
 
40
40
  # If this flag is set to true, all document objects will be checked and unused objects (i.e. objects which does not have any reference) are removed from document.
@@ -46,6 +46,24 @@ module AsposePdfCloud
46
46
  # Make fonts not embedded if set to true.
47
47
  attr_accessor :unembed_fonts
48
48
 
49
+ # If this flag set to true and CompressImages is true images will be resized if image resolution is greater then specified MaxResolution parameter.
50
+ attr_accessor :resize_images
51
+
52
+ # Specifies maximum resolution of images. If image has higher resolution it will be scaled.
53
+ attr_accessor :max_resolution
54
+
55
+ # Fonts will be converted into subsets if set to true.
56
+ attr_accessor :subset_fonts
57
+
58
+ # Remove private information (page piece info).
59
+ attr_accessor :remove_private_info
60
+
61
+ # Image encode which will be used.
62
+ attr_accessor :image_encoding
63
+
64
+ # Version of compression algorithm. Possible values are: \"Standard\" - standard compression, \"Fast\" - fast (improved compression which is faster then standard but may be applicable not for all images), \"Mixed\" - mixed (standard compression is applied to images which can not be compressed by faster algorithm, this may give best compression but more slow then \"Fast\" algorithm. Version \"Fast\" is not applicable for resizing images (standard method will be used). Default is \"Standard\".
65
+ attr_accessor :image_compression_version
66
+
49
67
 
50
68
  # Attribute mapping from ruby-style variable name to JSON key.
51
69
  def self.attribute_map
@@ -56,7 +74,13 @@ module AsposePdfCloud
56
74
  :'link_duplcate_streams' => :'LinkDuplcateStreams',
57
75
  :'remove_unused_objects' => :'RemoveUnusedObjects',
58
76
  :'remove_unused_streams' => :'RemoveUnusedStreams',
59
- :'unembed_fonts' => :'UnembedFonts'
77
+ :'unembed_fonts' => :'UnembedFonts',
78
+ :'resize_images' => :'ResizeImages',
79
+ :'max_resolution' => :'MaxResolution',
80
+ :'subset_fonts' => :'SubsetFonts',
81
+ :'remove_private_info' => :'RemovePrivateInfo',
82
+ :'image_encoding' => :'ImageEncoding',
83
+ :'image_compression_version' => :'ImageCompressionVersion'
60
84
  }
61
85
  end
62
86
 
@@ -69,7 +93,13 @@ module AsposePdfCloud
69
93
  :'link_duplcate_streams' => :'BOOLEAN',
70
94
  :'remove_unused_objects' => :'BOOLEAN',
71
95
  :'remove_unused_streams' => :'BOOLEAN',
72
- :'unembed_fonts' => :'BOOLEAN'
96
+ :'unembed_fonts' => :'BOOLEAN',
97
+ :'resize_images' => :'BOOLEAN',
98
+ :'max_resolution' => :'Integer',
99
+ :'subset_fonts' => :'BOOLEAN',
100
+ :'remove_private_info' => :'BOOLEAN',
101
+ :'image_encoding' => :'ImageEncoding',
102
+ :'image_compression_version' => :'ImageCompressionVersion'
73
103
  }
74
104
  end
75
105
 
@@ -109,53 +139,42 @@ module AsposePdfCloud
109
139
  self.unembed_fonts = attributes[:'UnembedFonts']
110
140
  end
111
141
 
112
- end
113
-
114
- # Show invalid properties with the reasons. Usually used together with valid?
115
- # @return Array for valid properies with the reasons
116
- def list_invalid_properties
117
- invalid_properties = Array.new
118
- if @allow_reuse_page_content.nil?
119
- invalid_properties.push("invalid value for 'allow_reuse_page_content', allow_reuse_page_content cannot be nil.")
142
+ if attributes.has_key?(:'ResizeImages')
143
+ self.resize_images = attributes[:'ResizeImages']
120
144
  end
121
145
 
122
- if @compress_images.nil?
123
- invalid_properties.push("invalid value for 'compress_images', compress_images cannot be nil.")
146
+ if attributes.has_key?(:'MaxResolution')
147
+ self.max_resolution = attributes[:'MaxResolution']
124
148
  end
125
149
 
126
- if @image_quality.nil?
127
- invalid_properties.push("invalid value for 'image_quality', image_quality cannot be nil.")
150
+ if attributes.has_key?(:'SubsetFonts')
151
+ self.subset_fonts = attributes[:'SubsetFonts']
128
152
  end
129
153
 
130
- if @link_duplcate_streams.nil?
131
- invalid_properties.push("invalid value for 'link_duplcate_streams', link_duplcate_streams cannot be nil.")
154
+ if attributes.has_key?(:'RemovePrivateInfo')
155
+ self.remove_private_info = attributes[:'RemovePrivateInfo']
132
156
  end
133
157
 
134
- if @remove_unused_objects.nil?
135
- invalid_properties.push("invalid value for 'remove_unused_objects', remove_unused_objects cannot be nil.")
158
+ if attributes.has_key?(:'ImageEncoding')
159
+ self.image_encoding = attributes[:'ImageEncoding']
136
160
  end
137
161
 
138
- if @remove_unused_streams.nil?
139
- invalid_properties.push("invalid value for 'remove_unused_streams', remove_unused_streams cannot be nil.")
162
+ if attributes.has_key?(:'ImageCompressionVersion')
163
+ self.image_compression_version = attributes[:'ImageCompressionVersion']
140
164
  end
141
165
 
142
- if @unembed_fonts.nil?
143
- invalid_properties.push("invalid value for 'unembed_fonts', unembed_fonts cannot be nil.")
144
- end
166
+ end
145
167
 
168
+ # Show invalid properties with the reasons. Usually used together with valid?
169
+ # @return Array for valid properies with the reasons
170
+ def list_invalid_properties
171
+ invalid_properties = Array.new
146
172
  return invalid_properties
147
173
  end
148
174
 
149
175
  # Check to see if the all the properties in the model are valid
150
176
  # @return true if the model is valid
151
177
  def valid?
152
- return false if @allow_reuse_page_content.nil?
153
- return false if @compress_images.nil?
154
- return false if @image_quality.nil?
155
- return false if @link_duplcate_streams.nil?
156
- return false if @remove_unused_objects.nil?
157
- return false if @remove_unused_streams.nil?
158
- return false if @unembed_fonts.nil?
159
178
  return true
160
179
  end
161
180
 
@@ -170,7 +189,13 @@ module AsposePdfCloud
170
189
  link_duplcate_streams == o.link_duplcate_streams &&
171
190
  remove_unused_objects == o.remove_unused_objects &&
172
191
  remove_unused_streams == o.remove_unused_streams &&
173
- unembed_fonts == o.unembed_fonts
192
+ unembed_fonts == o.unembed_fonts &&
193
+ resize_images == o.resize_images &&
194
+ max_resolution == o.max_resolution &&
195
+ subset_fonts == o.subset_fonts &&
196
+ remove_private_info == o.remove_private_info &&
197
+ image_encoding == o.image_encoding &&
198
+ image_compression_version == o.image_compression_version
174
199
  end
175
200
 
176
201
  # @see the `==` method
@@ -182,7 +207,7 @@ module AsposePdfCloud
182
207
  # Calculates hash code according to all attributes.
183
208
  # @return [Fixnum] Hash code
184
209
  def hash
185
- [allow_reuse_page_content, compress_images, image_quality, link_duplcate_streams, remove_unused_objects, remove_unused_streams, unembed_fonts].hash
210
+ [allow_reuse_page_content, compress_images, image_quality, link_duplcate_streams, remove_unused_objects, remove_unused_streams, unembed_fonts, resize_images, max_resolution, subset_fonts, remove_private_info, image_encoding, image_compression_version].hash
186
211
  end
187
212
 
188
213
  # Builds the object from hash
@@ -27,6 +27,7 @@ module AsposePdfCloud
27
27
 
28
28
  PDFA1_A = "PDFA1A".freeze
29
29
  PDFA1_B = "PDFA1B".freeze
30
+ PDFA3_A = "PDFA3A".freeze
30
31
 
31
32
  # Builds the enum from string
32
33
  # @param [String] The enum value in the form of the string
@@ -20,5 +20,5 @@ SOFTWARE.
20
20
  =end
21
21
 
22
22
  module AsposePdfCloud
23
- VERSION = "20.6.0"
23
+ VERSION = "20.7.0"
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_pdf_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 20.6.0
4
+ version: 20.7.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: 2020-06-24 00:00:00.000000000 Z
11
+ date: 2020-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -78,6 +78,7 @@ files:
78
78
  - docs/AnnotationsInfo.md
79
79
  - docs/AnnotationsInfoResponse.md
80
80
  - docs/AntialiasingProcessingType.md
81
+ - docs/ApiInfo.md
81
82
  - docs/AsposeResponse.md
82
83
  - docs/Attachment.md
83
84
  - docs/AttachmentResponse.md
@@ -175,6 +176,8 @@ files:
175
176
  - docs/HtmlDocumentType.md
176
177
  - docs/HtmlMarkupGenerationModes.md
177
178
  - docs/Image.md
179
+ - docs/ImageCompressionVersion.md
180
+ - docs/ImageEncoding.md
178
181
  - docs/ImageFooter.md
179
182
  - docs/ImageFragment.md
180
183
  - docs/ImageHeader.md
@@ -362,6 +365,7 @@ files:
362
365
  - lib/aspose_pdf_cloud/models/annotations_info.rb
363
366
  - lib/aspose_pdf_cloud/models/annotations_info_response.rb
364
367
  - lib/aspose_pdf_cloud/models/antialiasing_processing_type.rb
368
+ - lib/aspose_pdf_cloud/models/api_info.rb
365
369
  - lib/aspose_pdf_cloud/models/aspose_response.rb
366
370
  - lib/aspose_pdf_cloud/models/attachment.rb
367
371
  - lib/aspose_pdf_cloud/models/attachment_response.rb
@@ -459,6 +463,8 @@ files:
459
463
  - lib/aspose_pdf_cloud/models/html_document_type.rb
460
464
  - lib/aspose_pdf_cloud/models/html_markup_generation_modes.rb
461
465
  - lib/aspose_pdf_cloud/models/image.rb
466
+ - lib/aspose_pdf_cloud/models/image_compression_version.rb
467
+ - lib/aspose_pdf_cloud/models/image_encoding.rb
462
468
  - lib/aspose_pdf_cloud/models/image_footer.rb
463
469
  - lib/aspose_pdf_cloud/models/image_fragment.rb
464
470
  - lib/aspose_pdf_cloud/models/image_header.rb