aspose_pdf_cloud 20.1.0 → 20.2.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 +6 -4
- data/docs/PdfApi.md +53 -1
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +157 -2
- data/lib/aspose_pdf_cloud/version.rb +1 -1
- data/test/pdf_tests.rb +22 -0
- data/test_data/4pagesPdfA.pdf +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af58bd7d4aa4e5b0f43ca49cf3b329f1f155ad48d232a49aa1c53ebe504a107f
|
4
|
+
data.tar.gz: dad5e6f25080326035ee6e1ac4839a8503ed7f8937b64564d8e420ab2c6a1994
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7550ab54227bd21daacf5bcbed057e5d150584188a3f9374efff4cd1fda23fdb31615ea8d0c7c956b3a69049ce275acca66be9ab561e31088c3aa9f78ab7b5df
|
7
|
+
data.tar.gz: 2f33e5fc28f212caa69d028706d2fc1b738f5c6ca0866969187cdff2d5224873175ef3d335a21f3d367469bc87486a2d6e497206bafd0c60024463c6f687d9a9
|
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.
|
4
|
+
- Package version: 20.2.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.
|
27
|
+
gem install ./aspose_pdf_cloud-20.2.0.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./aspose_pdf_cloud-20.
|
29
|
+
(for development, run `gem install --dev ./aspose_pdf_cloud-20.2.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.
|
35
|
+
gem 'aspose_pdf_cloud', '~> 20.2.0'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -232,6 +232,7 @@ Class | Method | HTTP request | Description
|
|
232
232
|
*AsposePdfCloud::PdfApi* | [**get_page_underline_annotations**](docs/PdfApi.md#get_page_underline_annotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/underline | Read document page underline annotations.
|
233
233
|
*AsposePdfCloud::PdfApi* | [**get_pages**](docs/PdfApi.md#get_pages) | **GET** /pdf/\{name}/pages | Read document pages info.
|
234
234
|
*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.
|
235
|
+
*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.
|
235
236
|
*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
|
236
237
|
*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
|
237
238
|
*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
|
@@ -385,6 +386,7 @@ Class | Method | HTTP request | Description
|
|
385
386
|
*AsposePdfCloud::PdfApi* | [**put_page_convert_to_png**](docs/PdfApi.md#put_page_convert_to_png) | **PUT** /pdf/\{name}/pages/\{pageNumber}/convert/png | Convert document page to png image and upload resulting file to storage.
|
386
387
|
*AsposePdfCloud::PdfApi* | [**put_page_convert_to_tiff**](docs/PdfApi.md#put_page_convert_to_tiff) | **PUT** /pdf/\{name}/pages/\{pageNumber}/convert/tiff | Convert document page to Tiff image and upload resulting file to storage.
|
387
388
|
*AsposePdfCloud::PdfApi* | [**put_pcl_in_storage_to_pdf**](docs/PdfApi.md#put_pcl_in_storage_to_pdf) | **PUT** /pdf/\{name}/create/pcl | Convert PCL file (located on storage) to PDF format and upload resulting file to storage.
|
389
|
+
*AsposePdfCloud::PdfApi* | [**put_pdf_a_in_storage_to_pdf**](docs/PdfApi.md#put_pdf_a_in_storage_to_pdf) | **PUT** /pdf/\{name}/create/pdfa | Convert PDFA file (located on storage) to PDF format and upload resulting file to storage.
|
388
390
|
*AsposePdfCloud::PdfApi* | [**put_pdf_in_request_to_doc**](docs/PdfApi.md#put_pdf_in_request_to_doc) | **PUT** /pdf/convert/doc | Converts PDF document (in request content) to DOC format and uploads resulting file to storage.
|
389
391
|
*AsposePdfCloud::PdfApi* | [**put_pdf_in_request_to_epub**](docs/PdfApi.md#put_pdf_in_request_to_epub) | **PUT** /pdf/convert/epub | Converts PDF document (in request content) to EPUB format and uploads resulting file to storage.
|
390
392
|
*AsposePdfCloud::PdfApi* | [**put_pdf_in_request_to_html**](docs/PdfApi.md#put_pdf_in_request_to_html) | **PUT** /pdf/convert/html | Converts PDF document (in request content) to Html format and uploads resulting file to storage.
|
data/docs/PdfApi.md
CHANGED
@@ -145,6 +145,7 @@ Method | HTTP request | Description
|
|
145
145
|
[**get_page_underline_annotations**](PdfApi.md#get_page_underline_annotations) | **GET** /pdf/\{name}/pages/\{pageNumber}/annotations/underline | Read document page underline annotations.
|
146
146
|
[**get_pages**](PdfApi.md#get_pages) | **GET** /pdf/\{name}/pages | Read document pages info.
|
147
147
|
[**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.
|
148
|
+
[**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
149
|
[**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
150
|
[**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
151
|
[**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
|
@@ -298,6 +299,7 @@ Method | HTTP request | Description
|
|
298
299
|
[**put_page_convert_to_png**](PdfApi.md#put_page_convert_to_png) | **PUT** /pdf/\{name}/pages/\{pageNumber}/convert/png | Convert document page to png image and upload resulting file to storage.
|
299
300
|
[**put_page_convert_to_tiff**](PdfApi.md#put_page_convert_to_tiff) | **PUT** /pdf/\{name}/pages/\{pageNumber}/convert/tiff | Convert document page to Tiff image and upload resulting file to storage.
|
300
301
|
[**put_pcl_in_storage_to_pdf**](PdfApi.md#put_pcl_in_storage_to_pdf) | **PUT** /pdf/\{name}/create/pcl | Convert PCL file (located on storage) to PDF format and upload resulting file to storage.
|
302
|
+
[**put_pdf_a_in_storage_to_pdf**](PdfApi.md#put_pdf_a_in_storage_to_pdf) | **PUT** /pdf/\{name}/create/pdfa | Convert PDFA file (located on storage) to PDF format and upload resulting file to storage.
|
301
303
|
[**put_pdf_in_request_to_doc**](PdfApi.md#put_pdf_in_request_to_doc) | **PUT** /pdf/convert/doc | Converts PDF document (in request content) to DOC format and uploads resulting file to storage.
|
302
304
|
[**put_pdf_in_request_to_epub**](PdfApi.md#put_pdf_in_request_to_epub) | **PUT** /pdf/convert/epub | Converts PDF document (in request content) to EPUB format and uploads resulting file to storage.
|
303
305
|
[**put_pdf_in_request_to_html**](PdfApi.md#put_pdf_in_request_to_html) | **PUT** /pdf/convert/html | Converts PDF document (in request content) to Html format and uploads resulting file to storage.
|
@@ -3854,6 +3856,30 @@ Name | Type | Description | Notes
|
|
3854
3856
|
|
3855
3857
|
|
3856
3858
|
|
3859
|
+
# **get_pdf_a_in_storage_to_pdf**
|
3860
|
+
> File get_pdf_a_in_storage_to_pdf(src_path, opts)
|
3861
|
+
|
3862
|
+
Convert PDFA file (located on storage) to PDF format and return resulting file in response.
|
3863
|
+
|
3864
|
+
### Parameters
|
3865
|
+
|
3866
|
+
Name | Type | Description | Notes
|
3867
|
+
------------- | ------------- | ------------- | -------------
|
3868
|
+
**src_path** | **String**| Full source filename (ex. /folder1/folder2/template.pdf) |
|
3869
|
+
**dont_optimize** | **BOOLEAN**| If set, document resources will not be optimized. | [optional]
|
3870
|
+
**storage** | **String**| The document storage. | [optional]
|
3871
|
+
|
3872
|
+
### Return type
|
3873
|
+
|
3874
|
+
**File**
|
3875
|
+
|
3876
|
+
### HTTP request headers
|
3877
|
+
|
3878
|
+
- **Content-Type**: application/json
|
3879
|
+
- **Accept**: multipart/form-data
|
3880
|
+
|
3881
|
+
|
3882
|
+
|
3857
3883
|
# **get_pdf_in_storage_to_doc**
|
3858
3884
|
> File get_pdf_in_storage_to_doc(name, opts)
|
3859
3885
|
|
@@ -5077,7 +5103,7 @@ Add document bookmarks.
|
|
5077
5103
|
Name | Type | Description | Notes
|
5078
5104
|
------------- | ------------- | ------------- | -------------
|
5079
5105
|
**name** | **String**| The document name. |
|
5080
|
-
**bookmark_path** | **String**| The bookmark path. |
|
5106
|
+
**bookmark_path** | **String**| The parent bookmark path. Specify an empty string when adding a bookmark to the root. |
|
5081
5107
|
**bookmarks** | [**Array<Bookmark>**](Bookmark.md)| The array of bookmark. |
|
5082
5108
|
**folder** | **String**| The document folder. | [optional]
|
5083
5109
|
**storage** | **String**| The document storage. | [optional]
|
@@ -7871,6 +7897,32 @@ Name | Type | Description | Notes
|
|
7871
7897
|
|
7872
7898
|
|
7873
7899
|
|
7900
|
+
# **put_pdf_a_in_storage_to_pdf**
|
7901
|
+
> AsposeResponse put_pdf_a_in_storage_to_pdf(name, src_path, opts)
|
7902
|
+
|
7903
|
+
Convert PDFA file (located on storage) to PDF format and upload resulting file to storage.
|
7904
|
+
|
7905
|
+
### Parameters
|
7906
|
+
|
7907
|
+
Name | Type | Description | Notes
|
7908
|
+
------------- | ------------- | ------------- | -------------
|
7909
|
+
**name** | **String**| The document name. |
|
7910
|
+
**src_path** | **String**| Full source filename (ex. /folder1/folder2/template.pdf) |
|
7911
|
+
**dst_folder** | **String**| The destination document folder. | [optional]
|
7912
|
+
**dont_optimize** | **BOOLEAN**| If set, document resources will not be optimized. | [optional]
|
7913
|
+
**storage** | **String**| The document storage. | [optional]
|
7914
|
+
|
7915
|
+
### Return type
|
7916
|
+
|
7917
|
+
[**AsposeResponse**](AsposeResponse.md)
|
7918
|
+
|
7919
|
+
### HTTP request headers
|
7920
|
+
|
7921
|
+
- **Content-Type**: application/json
|
7922
|
+
- **Accept**: application/json
|
7923
|
+
|
7924
|
+
|
7925
|
+
|
7874
7926
|
# **put_pdf_in_request_to_doc**
|
7875
7927
|
> AsposeResponse put_pdf_in_request_to_doc(out_path, opts)
|
7876
7928
|
|
@@ -10782,6 +10782,79 @@ module AsposePdfCloud
|
|
10782
10782
|
return data, status_code, headers
|
10783
10783
|
end
|
10784
10784
|
|
10785
|
+
# Convert PDFA file (located on storage) to PDF format and return resulting file in response.
|
10786
|
+
#
|
10787
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.pdf)
|
10788
|
+
# @param [Hash] opts the optional parameters
|
10789
|
+
# @option opts [BOOLEAN] :dont_optimize If set, document resources will not be optimized.
|
10790
|
+
# @option opts [String] :storage The document storage.
|
10791
|
+
# @return [File]
|
10792
|
+
def get_pdf_a_in_storage_to_pdf(src_path, opts = {})
|
10793
|
+
@api_client.request_token_if_needed
|
10794
|
+
data, _status_code, _headers = get_pdf_a_in_storage_to_pdf_with_http_info(src_path, opts)
|
10795
|
+
rescue ApiError => error
|
10796
|
+
if error.code == 401
|
10797
|
+
@api_client.request_token_if_needed
|
10798
|
+
data, _status_code, _headers = get_pdf_a_in_storage_to_pdf_with_http_info(src_path, opts)
|
10799
|
+
else
|
10800
|
+
raise
|
10801
|
+
end
|
10802
|
+
return data
|
10803
|
+
end
|
10804
|
+
|
10805
|
+
# Convert PDFA file (located on storage) to PDF format and return resulting file in response.
|
10806
|
+
#
|
10807
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.pdf)
|
10808
|
+
# @param [Hash] opts the optional parameters
|
10809
|
+
# @option opts [BOOLEAN] :dont_optimize If set, document resources will not be optimized.
|
10810
|
+
# @option opts [String] :storage The document storage.
|
10811
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
10812
|
+
def get_pdf_a_in_storage_to_pdf_with_http_info(src_path, opts = {})
|
10813
|
+
if @api_client.config.debugging
|
10814
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_pdf_a_in_storage_to_pdf ..."
|
10815
|
+
end
|
10816
|
+
# verify the required parameter 'src_path' is set
|
10817
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
10818
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.get_pdf_a_in_storage_to_pdf"
|
10819
|
+
end
|
10820
|
+
# resource path
|
10821
|
+
local_var_path = "/pdf/create/pdfa"
|
10822
|
+
|
10823
|
+
# query parameters
|
10824
|
+
query_params = {}
|
10825
|
+
query_params[:'srcPath'] = src_path
|
10826
|
+
query_params[:'dontOptimize'] = opts[:'dont_optimize'] if !opts[:'dont_optimize'].nil?
|
10827
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
10828
|
+
|
10829
|
+
# header parameters
|
10830
|
+
header_params = {}
|
10831
|
+
# HTTP header 'Accept' (if needed)
|
10832
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
10833
|
+
# HTTP header 'Content-Type'
|
10834
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
10835
|
+
|
10836
|
+
# form parameters
|
10837
|
+
form_params = {}
|
10838
|
+
# Fix header in file
|
10839
|
+
post_body = nil
|
10840
|
+
|
10841
|
+
# http body (model)
|
10842
|
+
# Fix header in file
|
10843
|
+
# post_body = nil
|
10844
|
+
auth_names = ['JWT']
|
10845
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
10846
|
+
:header_params => header_params,
|
10847
|
+
:query_params => query_params,
|
10848
|
+
:form_params => form_params,
|
10849
|
+
:body => post_body,
|
10850
|
+
:auth_names => auth_names,
|
10851
|
+
:return_type => 'File')
|
10852
|
+
if @api_client.config.debugging
|
10853
|
+
@api_client.config.logger.debug "API called: PdfApi#get_pdf_a_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
10854
|
+
end
|
10855
|
+
return data, status_code, headers
|
10856
|
+
end
|
10857
|
+
|
10785
10858
|
# Converts PDF document (located on storage) to DOC format and returns resulting file in response content
|
10786
10859
|
#
|
10787
10860
|
# @param name The document name.
|
@@ -14567,7 +14640,7 @@ module AsposePdfCloud
|
|
14567
14640
|
# Add document bookmarks.
|
14568
14641
|
#
|
14569
14642
|
# @param name The document name.
|
14570
|
-
# @param bookmark_path The bookmark path.
|
14643
|
+
# @param bookmark_path The parent bookmark path. Specify an empty string when adding a bookmark to the root.
|
14571
14644
|
# @param bookmarks The array of bookmark.
|
14572
14645
|
# @param [Hash] opts the optional parameters
|
14573
14646
|
# @option opts [String] :folder The document folder.
|
@@ -14589,7 +14662,7 @@ module AsposePdfCloud
|
|
14589
14662
|
# Add document bookmarks.
|
14590
14663
|
#
|
14591
14664
|
# @param name The document name.
|
14592
|
-
# @param bookmark_path The bookmark path.
|
14665
|
+
# @param bookmark_path The parent bookmark path. Specify an empty string when adding a bookmark to the root.
|
14593
14666
|
# @param bookmarks The array of bookmark.
|
14594
14667
|
# @param [Hash] opts the optional parameters
|
14595
14668
|
# @option opts [String] :folder The document folder.
|
@@ -23463,6 +23536,88 @@ module AsposePdfCloud
|
|
23463
23536
|
return data, status_code, headers
|
23464
23537
|
end
|
23465
23538
|
|
23539
|
+
# Convert PDFA file (located on storage) to PDF format and upload resulting file to storage.
|
23540
|
+
#
|
23541
|
+
# @param name The document name.
|
23542
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.pdf)
|
23543
|
+
# @param [Hash] opts the optional parameters
|
23544
|
+
# @option opts [String] :dst_folder The destination document folder.
|
23545
|
+
# @option opts [BOOLEAN] :dont_optimize If set, document resources will not be optimized.
|
23546
|
+
# @option opts [String] :storage The document storage.
|
23547
|
+
# @return [AsposeResponse]
|
23548
|
+
def put_pdf_a_in_storage_to_pdf(name, src_path, opts = {})
|
23549
|
+
@api_client.request_token_if_needed
|
23550
|
+
data, _status_code, _headers = put_pdf_a_in_storage_to_pdf_with_http_info(name, src_path, opts)
|
23551
|
+
rescue ApiError => error
|
23552
|
+
if error.code == 401
|
23553
|
+
@api_client.request_token_if_needed
|
23554
|
+
data, _status_code, _headers = put_pdf_a_in_storage_to_pdf_with_http_info(name, src_path, opts)
|
23555
|
+
else
|
23556
|
+
raise
|
23557
|
+
end
|
23558
|
+
return data
|
23559
|
+
end
|
23560
|
+
|
23561
|
+
# Convert PDFA file (located on storage) to PDF format and upload resulting file to storage.
|
23562
|
+
#
|
23563
|
+
# @param name The document name.
|
23564
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.pdf)
|
23565
|
+
# @param [Hash] opts the optional parameters
|
23566
|
+
# @option opts [String] :dst_folder The destination document folder.
|
23567
|
+
# @option opts [BOOLEAN] :dont_optimize If set, document resources will not be optimized.
|
23568
|
+
# @option opts [String] :storage The document storage.
|
23569
|
+
# @return [Array<(AsposeResponse, Fixnum, Hash)>] AsposeResponse data, response status code and response headers
|
23570
|
+
def put_pdf_a_in_storage_to_pdf_with_http_info(name, src_path, opts = {})
|
23571
|
+
if @api_client.config.debugging
|
23572
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_a_in_storage_to_pdf ..."
|
23573
|
+
end
|
23574
|
+
# verify the required parameter 'name' is set
|
23575
|
+
if @api_client.config.client_side_validation && name.nil?
|
23576
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_a_in_storage_to_pdf"
|
23577
|
+
end
|
23578
|
+
# verify the required parameter 'src_path' is set
|
23579
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
23580
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.put_pdf_a_in_storage_to_pdf"
|
23581
|
+
end
|
23582
|
+
# resource path
|
23583
|
+
local_var_path = "/pdf/{name}/create/pdfa".sub('{' + 'name' + '}', name.to_s)
|
23584
|
+
|
23585
|
+
# query parameters
|
23586
|
+
query_params = {}
|
23587
|
+
query_params[:'srcPath'] = src_path
|
23588
|
+
query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
|
23589
|
+
query_params[:'dontOptimize'] = opts[:'dont_optimize'] if !opts[:'dont_optimize'].nil?
|
23590
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
23591
|
+
|
23592
|
+
# header parameters
|
23593
|
+
header_params = {}
|
23594
|
+
# HTTP header 'Accept' (if needed)
|
23595
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
23596
|
+
# HTTP header 'Content-Type'
|
23597
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
23598
|
+
|
23599
|
+
# form parameters
|
23600
|
+
form_params = {}
|
23601
|
+
# Fix header in file
|
23602
|
+
post_body = nil
|
23603
|
+
|
23604
|
+
# http body (model)
|
23605
|
+
# Fix header in file
|
23606
|
+
# post_body = nil
|
23607
|
+
auth_names = ['JWT']
|
23608
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
23609
|
+
:header_params => header_params,
|
23610
|
+
:query_params => query_params,
|
23611
|
+
:form_params => form_params,
|
23612
|
+
:body => post_body,
|
23613
|
+
:auth_names => auth_names,
|
23614
|
+
:return_type => 'AsposeResponse')
|
23615
|
+
if @api_client.config.debugging
|
23616
|
+
@api_client.config.logger.debug "API called: PdfApi#put_pdf_a_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
23617
|
+
end
|
23618
|
+
return data, status_code, headers
|
23619
|
+
end
|
23620
|
+
|
23466
23621
|
# Converts PDF document (in request content) to DOC format and uploads resulting file to storage.
|
23467
23622
|
#
|
23468
23623
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
|
data/test/pdf_tests.rb
CHANGED
@@ -3599,6 +3599,28 @@ class PdfTests < Minitest::Test
|
|
3599
3599
|
assert(response, 'Failed to convert markdown to pdf.')
|
3600
3600
|
end
|
3601
3601
|
|
3602
|
+
def test_get_pdf_a_in_storage_to_pdf
|
3603
|
+
file_name = '4pagesPdfA.pdf'
|
3604
|
+
upload_file(file_name)
|
3605
|
+
|
3606
|
+
src_path = @temp_folder + '/' + file_name
|
3607
|
+
response = @pdf_api.get_pdf_a_in_storage_to_pdf(src_path)
|
3608
|
+
assert(response, 'Failed to convert pdfa to pdf.')
|
3609
|
+
end
|
3610
|
+
|
3611
|
+
def test_put_pdf_a_in_storage_to_pdf
|
3612
|
+
file_name = '4pagesPdfA.pdf'
|
3613
|
+
upload_file(file_name)
|
3614
|
+
result_name = 'fromPdfA.pdf'
|
3615
|
+
|
3616
|
+
src_path = @temp_folder + '/' + file_name
|
3617
|
+
opts = {
|
3618
|
+
:dst_folder => @temp_folder
|
3619
|
+
}
|
3620
|
+
response = @pdf_api.put_pdf_a_in_storage_to_pdf(result_name, src_path, opts)
|
3621
|
+
assert(response, 'Failed to convert pdfa to pdf.')
|
3622
|
+
end
|
3623
|
+
|
3602
3624
|
# Document Tests
|
3603
3625
|
|
3604
3626
|
def test_get_document
|
Binary file
|
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.
|
4
|
+
version: 20.2.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-
|
11
|
+
date: 2020-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -637,6 +637,7 @@ files:
|
|
637
637
|
- test_data/4pages.epub
|
638
638
|
- test_data/4pages.pdf
|
639
639
|
- test_data/4pagesEncrypted.pdf
|
640
|
+
- test_data/4pagesPdfA.pdf
|
640
641
|
- test_data/BlankWithSignature.pdf
|
641
642
|
- test_data/FormData.fdf
|
642
643
|
- test_data/FormData.pdf
|