aspose_pdf_cloud 18.4.0 → 18.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/aspose_pdf_cloud.gemspec +0 -1
- data/lib/aspose_pdf_cloud.rb +2 -2
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +1893 -471
- data/lib/aspose_pdf_cloud/api_client.rb +23 -23
- data/lib/aspose_pdf_cloud/configuration.rb +1 -1
- data/lib/aspose_pdf_cloud/models/{recognition_mode.rb → doc_recognition_mode.rb} +4 -4
- data/lib/aspose_pdf_cloud/models/{recognition_mode2.rb → epub_recognition_mode.rb} +4 -4
- data/lib/aspose_pdf_cloud/models/html_document_type.rb +2 -2
- data/lib/aspose_pdf_cloud/version.rb +1 -1
- data/test/pdf_tests.rb +232 -1
- data/test_data/4pages.epub +0 -0
- data/test_data/HtmlWithImage.zip +0 -0
- data/test_data/MhtExample.mht +12752 -0
- data/test_data/Penguins.emf +0 -0
- data/test_data/Simple.svg +12 -0
- data/test_data/Simple.xps +0 -0
- data/test_data/TexExample.tex +305 -0
- data/test_data/XslfoExample.xslfo +246 -0
- data/test_data/template.pcl +0 -0
- data/test_data/template.xml +1 -0
- metadata +14 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f53b946815d928c737a02f24ff8f2f44d5616bd779d66a6fc2e8783d509f1ba
|
4
|
+
data.tar.gz: fcaa48e705c4f38c7d4ea2ebfc7ba43054f8384763168b94317a284046d04f6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03f03473004a8a8c2bde984805ab32e4f915d1d3fccd9057d2c49417c2c9ff8ebab262fd0fc66f25ed96495cd97b50b13ebef08699d39266eb0dd518d5eb8ff0
|
7
|
+
data.tar.gz: 03c158b0999554578f3a98477c4dc0609c0d4077eff95ac9106a260f962014c5deeb7b8a5a40d247d4d73df48e762cc197219760c1a38d63ccc5b1977f4e7ef8
|
data/aspose_pdf_cloud.gemspec
CHANGED
data/lib/aspose_pdf_cloud.rb
CHANGED
@@ -32,7 +32,9 @@ require_relative 'aspose_pdf_cloud/models/color'
|
|
32
32
|
require_relative 'aspose_pdf_cloud/models/color_depth'
|
33
33
|
require_relative 'aspose_pdf_cloud/models/compression_type'
|
34
34
|
require_relative 'aspose_pdf_cloud/models/doc_format'
|
35
|
+
require_relative 'aspose_pdf_cloud/models/doc_recognition_mode'
|
35
36
|
require_relative 'aspose_pdf_cloud/models/document_privilege'
|
37
|
+
require_relative 'aspose_pdf_cloud/models/epub_recognition_mode'
|
36
38
|
require_relative 'aspose_pdf_cloud/models/field_type'
|
37
39
|
require_relative 'aspose_pdf_cloud/models/font_encoding_rules'
|
38
40
|
require_relative 'aspose_pdf_cloud/models/font_saving_modes'
|
@@ -55,8 +57,6 @@ require_relative 'aspose_pdf_cloud/models/paragraph'
|
|
55
57
|
require_relative 'aspose_pdf_cloud/models/parts_embedding_modes'
|
56
58
|
require_relative 'aspose_pdf_cloud/models/pdf_a_type'
|
57
59
|
require_relative 'aspose_pdf_cloud/models/raster_images_saving_modes'
|
58
|
-
require_relative 'aspose_pdf_cloud/models/recognition_mode'
|
59
|
-
require_relative 'aspose_pdf_cloud/models/recognition_mode2'
|
60
60
|
require_relative 'aspose_pdf_cloud/models/rectangle'
|
61
61
|
require_relative 'aspose_pdf_cloud/models/rotation'
|
62
62
|
require_relative 'aspose_pdf_cloud/models/saa_spose_response'
|
@@ -846,6 +846,65 @@ module AsposePdfCloud
|
|
846
846
|
return data, status_code, headers
|
847
847
|
end
|
848
848
|
|
849
|
+
# Convert EPUB file (located on storage) to PDF format and return resulting file in response.
|
850
|
+
#
|
851
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.epub)
|
852
|
+
# @param [Hash] opts the optional parameters
|
853
|
+
# @return [File]
|
854
|
+
def get_epub_in_storage_to_pdf(src_path, opts = {})
|
855
|
+
data, _status_code, _headers = get_epub_in_storage_to_pdf_with_http_info(src_path, opts)
|
856
|
+
return data
|
857
|
+
end
|
858
|
+
|
859
|
+
# Convert EPUB file (located on storage) to PDF format and return resulting file in response.
|
860
|
+
#
|
861
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.epub)
|
862
|
+
# @param [Hash] opts the optional parameters
|
863
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
864
|
+
def get_epub_in_storage_to_pdf_with_http_info(src_path, opts = {})
|
865
|
+
if @api_client.config.debugging
|
866
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_epub_in_storage_to_pdf ..."
|
867
|
+
end
|
868
|
+
# verify the required parameter 'src_path' is set
|
869
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
870
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.get_epub_in_storage_to_pdf"
|
871
|
+
end
|
872
|
+
# resource path
|
873
|
+
local_var_path = "/pdf/create/epub"
|
874
|
+
|
875
|
+
# query parameters
|
876
|
+
query_params = {}
|
877
|
+
query_params[:'srcPath'] = src_path
|
878
|
+
|
879
|
+
# header parameters
|
880
|
+
header_params = {}
|
881
|
+
# HTTP header 'Accept' (if needed)
|
882
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
883
|
+
# HTTP header 'Content-Type'
|
884
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
885
|
+
|
886
|
+
# form parameters
|
887
|
+
form_params = {}
|
888
|
+
# Fix header in file
|
889
|
+
post_body = nil
|
890
|
+
|
891
|
+
# http body (model)
|
892
|
+
# Fix header in file
|
893
|
+
# post_body = nil
|
894
|
+
auth_names = []
|
895
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
896
|
+
:header_params => header_params,
|
897
|
+
:query_params => query_params,
|
898
|
+
:form_params => form_params,
|
899
|
+
:body => post_body,
|
900
|
+
:auth_names => auth_names,
|
901
|
+
:return_type => 'File')
|
902
|
+
if @api_client.config.debugging
|
903
|
+
@api_client.config.logger.debug "API called: PdfApi#get_epub_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
904
|
+
end
|
905
|
+
return data, status_code, headers
|
906
|
+
end
|
907
|
+
|
849
908
|
# Get document field by name.
|
850
909
|
#
|
851
910
|
# @param name The document name.
|
@@ -1208,6 +1267,93 @@ module AsposePdfCloud
|
|
1208
1267
|
return data, status_code, headers
|
1209
1268
|
end
|
1210
1269
|
|
1270
|
+
# Convert HTML file (located on storage) to PDF format and return resulting file in response.
|
1271
|
+
#
|
1272
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.zip)
|
1273
|
+
# @param html_file_name Name of HTML file in ZIP.
|
1274
|
+
# @param [Hash] opts the optional parameters
|
1275
|
+
# @option opts [Float] :height Page height
|
1276
|
+
# @option opts [Float] :width Page width
|
1277
|
+
# @option opts [BOOLEAN] :is_landscape Is page landscaped
|
1278
|
+
# @option opts [Float] :margin_left Page margin left
|
1279
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
1280
|
+
# @option opts [Float] :margin_right Page margin right
|
1281
|
+
# @option opts [Float] :margin_top Page margin top
|
1282
|
+
# @return [File]
|
1283
|
+
def get_html_in_storage_to_pdf(src_path, html_file_name, opts = {})
|
1284
|
+
data, _status_code, _headers = get_html_in_storage_to_pdf_with_http_info(src_path, html_file_name, opts)
|
1285
|
+
return data
|
1286
|
+
end
|
1287
|
+
|
1288
|
+
# Convert HTML file (located on storage) to PDF format and return resulting file in response.
|
1289
|
+
#
|
1290
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.zip)
|
1291
|
+
# @param html_file_name Name of HTML file in ZIP.
|
1292
|
+
# @param [Hash] opts the optional parameters
|
1293
|
+
# @option opts [Float] :height Page height
|
1294
|
+
# @option opts [Float] :width Page width
|
1295
|
+
# @option opts [BOOLEAN] :is_landscape Is page landscaped
|
1296
|
+
# @option opts [Float] :margin_left Page margin left
|
1297
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
1298
|
+
# @option opts [Float] :margin_right Page margin right
|
1299
|
+
# @option opts [Float] :margin_top Page margin top
|
1300
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
1301
|
+
def get_html_in_storage_to_pdf_with_http_info(src_path, html_file_name, opts = {})
|
1302
|
+
if @api_client.config.debugging
|
1303
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_html_in_storage_to_pdf ..."
|
1304
|
+
end
|
1305
|
+
# verify the required parameter 'src_path' is set
|
1306
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
1307
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.get_html_in_storage_to_pdf"
|
1308
|
+
end
|
1309
|
+
# verify the required parameter 'html_file_name' is set
|
1310
|
+
if @api_client.config.client_side_validation && html_file_name.nil?
|
1311
|
+
fail ArgumentError, "Missing the required parameter 'html_file_name' when calling PdfApi.get_html_in_storage_to_pdf"
|
1312
|
+
end
|
1313
|
+
# resource path
|
1314
|
+
local_var_path = "/pdf/create/html"
|
1315
|
+
|
1316
|
+
# query parameters
|
1317
|
+
query_params = {}
|
1318
|
+
query_params[:'srcPath'] = src_path
|
1319
|
+
query_params[:'htmlFileName'] = html_file_name
|
1320
|
+
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
1321
|
+
query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
|
1322
|
+
query_params[:'isLandscape'] = opts[:'is_landscape'] if !opts[:'is_landscape'].nil?
|
1323
|
+
query_params[:'marginLeft'] = opts[:'margin_left'] if !opts[:'margin_left'].nil?
|
1324
|
+
query_params[:'marginBottom'] = opts[:'margin_bottom'] if !opts[:'margin_bottom'].nil?
|
1325
|
+
query_params[:'marginRight'] = opts[:'margin_right'] if !opts[:'margin_right'].nil?
|
1326
|
+
query_params[:'marginTop'] = opts[:'margin_top'] if !opts[:'margin_top'].nil?
|
1327
|
+
|
1328
|
+
# header parameters
|
1329
|
+
header_params = {}
|
1330
|
+
# HTTP header 'Accept' (if needed)
|
1331
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
1332
|
+
# HTTP header 'Content-Type'
|
1333
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1334
|
+
|
1335
|
+
# form parameters
|
1336
|
+
form_params = {}
|
1337
|
+
# Fix header in file
|
1338
|
+
post_body = nil
|
1339
|
+
|
1340
|
+
# http body (model)
|
1341
|
+
# Fix header in file
|
1342
|
+
# post_body = nil
|
1343
|
+
auth_names = []
|
1344
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1345
|
+
:header_params => header_params,
|
1346
|
+
:query_params => query_params,
|
1347
|
+
:form_params => form_params,
|
1348
|
+
:body => post_body,
|
1349
|
+
:auth_names => auth_names,
|
1350
|
+
:return_type => 'File')
|
1351
|
+
if @api_client.config.debugging
|
1352
|
+
@api_client.config.logger.debug "API called: PdfApi#get_html_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1353
|
+
end
|
1354
|
+
return data, status_code, headers
|
1355
|
+
end
|
1356
|
+
|
1211
1357
|
# Extract document image in format specified.
|
1212
1358
|
#
|
1213
1359
|
# @param name The document name.
|
@@ -1363,6 +1509,124 @@ module AsposePdfCloud
|
|
1363
1509
|
return data, status_code, headers
|
1364
1510
|
end
|
1365
1511
|
|
1512
|
+
# Convert LaTeX file (located on storage) to PDF format and return resulting file in response.
|
1513
|
+
#
|
1514
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.tex)
|
1515
|
+
# @param [Hash] opts the optional parameters
|
1516
|
+
# @return [File]
|
1517
|
+
def get_la_te_x_in_storage_to_pdf(src_path, opts = {})
|
1518
|
+
data, _status_code, _headers = get_la_te_x_in_storage_to_pdf_with_http_info(src_path, opts)
|
1519
|
+
return data
|
1520
|
+
end
|
1521
|
+
|
1522
|
+
# Convert LaTeX file (located on storage) to PDF format and return resulting file in response.
|
1523
|
+
#
|
1524
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.tex)
|
1525
|
+
# @param [Hash] opts the optional parameters
|
1526
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
1527
|
+
def get_la_te_x_in_storage_to_pdf_with_http_info(src_path, opts = {})
|
1528
|
+
if @api_client.config.debugging
|
1529
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_la_te_x_in_storage_to_pdf ..."
|
1530
|
+
end
|
1531
|
+
# verify the required parameter 'src_path' is set
|
1532
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
1533
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.get_la_te_x_in_storage_to_pdf"
|
1534
|
+
end
|
1535
|
+
# resource path
|
1536
|
+
local_var_path = "/pdf/create/latex"
|
1537
|
+
|
1538
|
+
# query parameters
|
1539
|
+
query_params = {}
|
1540
|
+
query_params[:'srcPath'] = src_path
|
1541
|
+
|
1542
|
+
# header parameters
|
1543
|
+
header_params = {}
|
1544
|
+
# HTTP header 'Accept' (if needed)
|
1545
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
1546
|
+
# HTTP header 'Content-Type'
|
1547
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1548
|
+
|
1549
|
+
# form parameters
|
1550
|
+
form_params = {}
|
1551
|
+
# Fix header in file
|
1552
|
+
post_body = nil
|
1553
|
+
|
1554
|
+
# http body (model)
|
1555
|
+
# Fix header in file
|
1556
|
+
# post_body = nil
|
1557
|
+
auth_names = []
|
1558
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1559
|
+
:header_params => header_params,
|
1560
|
+
:query_params => query_params,
|
1561
|
+
:form_params => form_params,
|
1562
|
+
:body => post_body,
|
1563
|
+
:auth_names => auth_names,
|
1564
|
+
:return_type => 'File')
|
1565
|
+
if @api_client.config.debugging
|
1566
|
+
@api_client.config.logger.debug "API called: PdfApi#get_la_te_x_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1567
|
+
end
|
1568
|
+
return data, status_code, headers
|
1569
|
+
end
|
1570
|
+
|
1571
|
+
# Convert MHT file (located on storage) to PDF format and return resulting file in response.
|
1572
|
+
#
|
1573
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.mht)
|
1574
|
+
# @param [Hash] opts the optional parameters
|
1575
|
+
# @return [File]
|
1576
|
+
def get_mht_in_storage_to_pdf(src_path, opts = {})
|
1577
|
+
data, _status_code, _headers = get_mht_in_storage_to_pdf_with_http_info(src_path, opts)
|
1578
|
+
return data
|
1579
|
+
end
|
1580
|
+
|
1581
|
+
# Convert MHT file (located on storage) to PDF format and return resulting file in response.
|
1582
|
+
#
|
1583
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.mht)
|
1584
|
+
# @param [Hash] opts the optional parameters
|
1585
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
1586
|
+
def get_mht_in_storage_to_pdf_with_http_info(src_path, opts = {})
|
1587
|
+
if @api_client.config.debugging
|
1588
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_mht_in_storage_to_pdf ..."
|
1589
|
+
end
|
1590
|
+
# verify the required parameter 'src_path' is set
|
1591
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
1592
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.get_mht_in_storage_to_pdf"
|
1593
|
+
end
|
1594
|
+
# resource path
|
1595
|
+
local_var_path = "/pdf/create/mht"
|
1596
|
+
|
1597
|
+
# query parameters
|
1598
|
+
query_params = {}
|
1599
|
+
query_params[:'srcPath'] = src_path
|
1600
|
+
|
1601
|
+
# header parameters
|
1602
|
+
header_params = {}
|
1603
|
+
# HTTP header 'Accept' (if needed)
|
1604
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
1605
|
+
# HTTP header 'Content-Type'
|
1606
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1607
|
+
|
1608
|
+
# form parameters
|
1609
|
+
form_params = {}
|
1610
|
+
# Fix header in file
|
1611
|
+
post_body = nil
|
1612
|
+
|
1613
|
+
# http body (model)
|
1614
|
+
# Fix header in file
|
1615
|
+
# post_body = nil
|
1616
|
+
auth_names = []
|
1617
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1618
|
+
:header_params => header_params,
|
1619
|
+
:query_params => query_params,
|
1620
|
+
:form_params => form_params,
|
1621
|
+
:body => post_body,
|
1622
|
+
:auth_names => auth_names,
|
1623
|
+
:return_type => 'File')
|
1624
|
+
if @api_client.config.debugging
|
1625
|
+
@api_client.config.logger.debug "API called: PdfApi#get_mht_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1626
|
+
end
|
1627
|
+
return data, status_code, headers
|
1628
|
+
end
|
1629
|
+
|
1366
1630
|
# Convert document page to format specified.
|
1367
1631
|
#
|
1368
1632
|
# @param name The document name.
|
@@ -1975,6 +2239,65 @@ module AsposePdfCloud
|
|
1975
2239
|
return data, status_code, headers
|
1976
2240
|
end
|
1977
2241
|
|
2242
|
+
# Convert PCL file (located on storage) to PDF format and return resulting file in response.
|
2243
|
+
#
|
2244
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.pcl)
|
2245
|
+
# @param [Hash] opts the optional parameters
|
2246
|
+
# @return [File]
|
2247
|
+
def get_pcl_in_storage_to_pdf(src_path, opts = {})
|
2248
|
+
data, _status_code, _headers = get_pcl_in_storage_to_pdf_with_http_info(src_path, opts)
|
2249
|
+
return data
|
2250
|
+
end
|
2251
|
+
|
2252
|
+
# Convert PCL file (located on storage) to PDF format and return resulting file in response.
|
2253
|
+
#
|
2254
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.pcl)
|
2255
|
+
# @param [Hash] opts the optional parameters
|
2256
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
2257
|
+
def get_pcl_in_storage_to_pdf_with_http_info(src_path, opts = {})
|
2258
|
+
if @api_client.config.debugging
|
2259
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_pcl_in_storage_to_pdf ..."
|
2260
|
+
end
|
2261
|
+
# verify the required parameter 'src_path' is set
|
2262
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
2263
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.get_pcl_in_storage_to_pdf"
|
2264
|
+
end
|
2265
|
+
# resource path
|
2266
|
+
local_var_path = "/pdf/create/pcl"
|
2267
|
+
|
2268
|
+
# query parameters
|
2269
|
+
query_params = {}
|
2270
|
+
query_params[:'srcPath'] = src_path
|
2271
|
+
|
2272
|
+
# header parameters
|
2273
|
+
header_params = {}
|
2274
|
+
# HTTP header 'Accept' (if needed)
|
2275
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
2276
|
+
# HTTP header 'Content-Type'
|
2277
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2278
|
+
|
2279
|
+
# form parameters
|
2280
|
+
form_params = {}
|
2281
|
+
# Fix header in file
|
2282
|
+
post_body = nil
|
2283
|
+
|
2284
|
+
# http body (model)
|
2285
|
+
# Fix header in file
|
2286
|
+
# post_body = nil
|
2287
|
+
auth_names = []
|
2288
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2289
|
+
:header_params => header_params,
|
2290
|
+
:query_params => query_params,
|
2291
|
+
:form_params => form_params,
|
2292
|
+
:body => post_body,
|
2293
|
+
:auth_names => auth_names,
|
2294
|
+
:return_type => 'File')
|
2295
|
+
if @api_client.config.debugging
|
2296
|
+
@api_client.config.logger.debug "API called: PdfApi#get_pcl_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2297
|
+
end
|
2298
|
+
return data, status_code, headers
|
2299
|
+
end
|
2300
|
+
|
1978
2301
|
# Converts PDF document (located on storage) to DOC format and returns resulting file in response content
|
1979
2302
|
#
|
1980
2303
|
# @param name The document name.
|
@@ -2064,7 +2387,7 @@ module AsposePdfCloud
|
|
2064
2387
|
#
|
2065
2388
|
# @param name The document name.
|
2066
2389
|
# @param [Hash] opts the optional parameters
|
2067
|
-
# @option opts [String] :content_recognition_mode
|
2390
|
+
# @option opts [String] :content_recognition_mode Рroperty tunes conversion for this or that desirable method of recognition of content.
|
2068
2391
|
# @option opts [String] :folder The document folder.
|
2069
2392
|
# @return [File]
|
2070
2393
|
def get_pdf_in_storage_to_epub(name, opts = {})
|
@@ -2076,7 +2399,7 @@ module AsposePdfCloud
|
|
2076
2399
|
#
|
2077
2400
|
# @param name The document name.
|
2078
2401
|
# @param [Hash] opts the optional parameters
|
2079
|
-
# @option opts [String] :content_recognition_mode
|
2402
|
+
# @option opts [String] :content_recognition_mode Рroperty tunes conversion for this or that desirable method of recognition of content.
|
2080
2403
|
# @option opts [String] :folder The document folder.
|
2081
2404
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
2082
2405
|
def get_pdf_in_storage_to_epub_with_http_info(name, opts = {})
|
@@ -2132,7 +2455,7 @@ module AsposePdfCloud
|
|
2132
2455
|
# @option opts [BOOLEAN] :compress_svg_graphics_if_any The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving.
|
2133
2456
|
# @option opts [BOOLEAN] :convert_marked_content_to_layers If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with \"data-pdflayer\" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content.
|
2134
2457
|
# @option opts [String] :default_font_name Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used.
|
2135
|
-
# @option opts [
|
2458
|
+
# @option opts [String] :document_type Result document type.
|
2136
2459
|
# @option opts [BOOLEAN] :fixed_layout The value indicating whether that HTML is created as fixed layout.
|
2137
2460
|
# @option opts [Integer] :image_resolution Resolution for image rendering.
|
2138
2461
|
# @option opts [Integer] :minimal_line_width This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers.
|
@@ -2171,7 +2494,7 @@ module AsposePdfCloud
|
|
2171
2494
|
# @option opts [BOOLEAN] :compress_svg_graphics_if_any The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving.
|
2172
2495
|
# @option opts [BOOLEAN] :convert_marked_content_to_layers If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with \"data-pdflayer\" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content.
|
2173
2496
|
# @option opts [String] :default_font_name Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used.
|
2174
|
-
# @option opts [
|
2497
|
+
# @option opts [String] :document_type Result document type.
|
2175
2498
|
# @option opts [BOOLEAN] :fixed_layout The value indicating whether that HTML is created as fixed layout.
|
2176
2499
|
# @option opts [Integer] :image_resolution Resolution for image rendering.
|
2177
2500
|
# @option opts [Integer] :minimal_line_width This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers.
|
@@ -3137,40 +3460,123 @@ module AsposePdfCloud
|
|
3137
3460
|
return data, status_code, headers
|
3138
3461
|
end
|
3139
3462
|
|
3140
|
-
#
|
3463
|
+
# Convert SVG file (located on storage) to PDF format and return resulting file in response.
|
3141
3464
|
#
|
3142
|
-
# @param
|
3143
|
-
# @param x
|
3144
|
-
# @param y
|
3145
|
-
# @param width
|
3146
|
-
# @param height
|
3465
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.svg)
|
3147
3466
|
# @param [Hash] opts the optional parameters
|
3148
|
-
# @option opts [
|
3149
|
-
# @option opts [
|
3150
|
-
# @option opts [
|
3151
|
-
# @option opts [
|
3152
|
-
# @
|
3153
|
-
|
3154
|
-
|
3467
|
+
# @option opts [BOOLEAN] :adjust_page_size Adjust page size
|
3468
|
+
# @option opts [Float] :height Page height
|
3469
|
+
# @option opts [Float] :width Page width
|
3470
|
+
# @option opts [BOOLEAN] :is_landscape Is page landscaped
|
3471
|
+
# @option opts [Float] :margin_left Page margin left
|
3472
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
3473
|
+
# @option opts [Float] :margin_right Page margin right
|
3474
|
+
# @option opts [Float] :margin_top Page margin top
|
3475
|
+
# @return [File]
|
3476
|
+
def get_svg_in_storage_to_pdf(src_path, opts = {})
|
3477
|
+
data, _status_code, _headers = get_svg_in_storage_to_pdf_with_http_info(src_path, opts)
|
3155
3478
|
return data
|
3156
3479
|
end
|
3157
3480
|
|
3158
|
-
#
|
3481
|
+
# Convert SVG file (located on storage) to PDF format and return resulting file in response.
|
3159
3482
|
#
|
3160
|
-
# @param
|
3161
|
-
# @param x
|
3162
|
-
# @param y
|
3163
|
-
# @param width
|
3164
|
-
# @param height
|
3483
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.svg)
|
3165
3484
|
# @param [Hash] opts the optional parameters
|
3166
|
-
# @option opts [
|
3167
|
-
# @option opts [
|
3168
|
-
# @option opts [
|
3169
|
-
# @option opts [
|
3170
|
-
# @
|
3171
|
-
|
3485
|
+
# @option opts [BOOLEAN] :adjust_page_size Adjust page size
|
3486
|
+
# @option opts [Float] :height Page height
|
3487
|
+
# @option opts [Float] :width Page width
|
3488
|
+
# @option opts [BOOLEAN] :is_landscape Is page landscaped
|
3489
|
+
# @option opts [Float] :margin_left Page margin left
|
3490
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
3491
|
+
# @option opts [Float] :margin_right Page margin right
|
3492
|
+
# @option opts [Float] :margin_top Page margin top
|
3493
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
3494
|
+
def get_svg_in_storage_to_pdf_with_http_info(src_path, opts = {})
|
3172
3495
|
if @api_client.config.debugging
|
3173
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
3496
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_svg_in_storage_to_pdf ..."
|
3497
|
+
end
|
3498
|
+
# verify the required parameter 'src_path' is set
|
3499
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
3500
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.get_svg_in_storage_to_pdf"
|
3501
|
+
end
|
3502
|
+
# resource path
|
3503
|
+
local_var_path = "/pdf/create/svg"
|
3504
|
+
|
3505
|
+
# query parameters
|
3506
|
+
query_params = {}
|
3507
|
+
query_params[:'srcPath'] = src_path
|
3508
|
+
query_params[:'adjustPageSize'] = opts[:'adjust_page_size'] if !opts[:'adjust_page_size'].nil?
|
3509
|
+
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
3510
|
+
query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
|
3511
|
+
query_params[:'isLandscape'] = opts[:'is_landscape'] if !opts[:'is_landscape'].nil?
|
3512
|
+
query_params[:'marginLeft'] = opts[:'margin_left'] if !opts[:'margin_left'].nil?
|
3513
|
+
query_params[:'marginBottom'] = opts[:'margin_bottom'] if !opts[:'margin_bottom'].nil?
|
3514
|
+
query_params[:'marginRight'] = opts[:'margin_right'] if !opts[:'margin_right'].nil?
|
3515
|
+
query_params[:'marginTop'] = opts[:'margin_top'] if !opts[:'margin_top'].nil?
|
3516
|
+
|
3517
|
+
# header parameters
|
3518
|
+
header_params = {}
|
3519
|
+
# HTTP header 'Accept' (if needed)
|
3520
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
3521
|
+
# HTTP header 'Content-Type'
|
3522
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3523
|
+
|
3524
|
+
# form parameters
|
3525
|
+
form_params = {}
|
3526
|
+
# Fix header in file
|
3527
|
+
post_body = nil
|
3528
|
+
|
3529
|
+
# http body (model)
|
3530
|
+
# Fix header in file
|
3531
|
+
# post_body = nil
|
3532
|
+
auth_names = []
|
3533
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
3534
|
+
:header_params => header_params,
|
3535
|
+
:query_params => query_params,
|
3536
|
+
:form_params => form_params,
|
3537
|
+
:body => post_body,
|
3538
|
+
:auth_names => auth_names,
|
3539
|
+
:return_type => 'File')
|
3540
|
+
if @api_client.config.debugging
|
3541
|
+
@api_client.config.logger.debug "API called: PdfApi#get_svg_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3542
|
+
end
|
3543
|
+
return data, status_code, headers
|
3544
|
+
end
|
3545
|
+
|
3546
|
+
# Read document text.
|
3547
|
+
#
|
3548
|
+
# @param name The document name.
|
3549
|
+
# @param x
|
3550
|
+
# @param y
|
3551
|
+
# @param width
|
3552
|
+
# @param height
|
3553
|
+
# @param [Hash] opts the optional parameters
|
3554
|
+
# @option opts [Array<String>] :format List of formats for search.
|
3555
|
+
# @option opts [String] :regex Formats are specified as a regular expression.
|
3556
|
+
# @option opts [BOOLEAN] :split_rects Split result fragments (default is true).
|
3557
|
+
# @option opts [String] :folder The document folder.
|
3558
|
+
# @return [TextRectsResponse]
|
3559
|
+
def get_text(name, x, y, width, height, opts = {})
|
3560
|
+
data, _status_code, _headers = get_text_with_http_info(name, x, y, width, height, opts)
|
3561
|
+
return data
|
3562
|
+
end
|
3563
|
+
|
3564
|
+
# Read document text.
|
3565
|
+
#
|
3566
|
+
# @param name The document name.
|
3567
|
+
# @param x
|
3568
|
+
# @param y
|
3569
|
+
# @param width
|
3570
|
+
# @param height
|
3571
|
+
# @param [Hash] opts the optional parameters
|
3572
|
+
# @option opts [Array<String>] :format List of formats for search.
|
3573
|
+
# @option opts [String] :regex Formats are specified as a regular expression.
|
3574
|
+
# @option opts [BOOLEAN] :split_rects Split result fragments (default is true).
|
3575
|
+
# @option opts [String] :folder The document folder.
|
3576
|
+
# @return [Array<(TextRectsResponse, Fixnum, Hash)>] TextRectsResponse data, response status code and response headers
|
3577
|
+
def get_text_with_http_info(name, x, y, width, height, opts = {})
|
3578
|
+
if @api_client.config.debugging
|
3579
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_text ..."
|
3174
3580
|
end
|
3175
3581
|
# verify the required parameter 'name' is set
|
3176
3582
|
if @api_client.config.client_side_validation && name.nil?
|
@@ -3370,6 +3776,86 @@ module AsposePdfCloud
|
|
3370
3776
|
return data, status_code, headers
|
3371
3777
|
end
|
3372
3778
|
|
3779
|
+
# Convert web page to PDF format and return resulting file in response.
|
3780
|
+
#
|
3781
|
+
# @param url Source url
|
3782
|
+
# @param [Hash] opts the optional parameters
|
3783
|
+
# @option opts [Float] :height Page height
|
3784
|
+
# @option opts [Float] :width Page width
|
3785
|
+
# @option opts [BOOLEAN] :is_landscape Is page landscaped
|
3786
|
+
# @option opts [Float] :margin_left Page margin left
|
3787
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
3788
|
+
# @option opts [Float] :margin_right Page margin right
|
3789
|
+
# @option opts [Float] :margin_top Page margin top
|
3790
|
+
# @return [File]
|
3791
|
+
def get_web_in_storage_to_pdf(url, opts = {})
|
3792
|
+
data, _status_code, _headers = get_web_in_storage_to_pdf_with_http_info(url, opts)
|
3793
|
+
return data
|
3794
|
+
end
|
3795
|
+
|
3796
|
+
# Convert web page to PDF format and return resulting file in response.
|
3797
|
+
#
|
3798
|
+
# @param url Source url
|
3799
|
+
# @param [Hash] opts the optional parameters
|
3800
|
+
# @option opts [Float] :height Page height
|
3801
|
+
# @option opts [Float] :width Page width
|
3802
|
+
# @option opts [BOOLEAN] :is_landscape Is page landscaped
|
3803
|
+
# @option opts [Float] :margin_left Page margin left
|
3804
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
3805
|
+
# @option opts [Float] :margin_right Page margin right
|
3806
|
+
# @option opts [Float] :margin_top Page margin top
|
3807
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
3808
|
+
def get_web_in_storage_to_pdf_with_http_info(url, opts = {})
|
3809
|
+
if @api_client.config.debugging
|
3810
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_web_in_storage_to_pdf ..."
|
3811
|
+
end
|
3812
|
+
# verify the required parameter 'url' is set
|
3813
|
+
if @api_client.config.client_side_validation && url.nil?
|
3814
|
+
fail ArgumentError, "Missing the required parameter 'url' when calling PdfApi.get_web_in_storage_to_pdf"
|
3815
|
+
end
|
3816
|
+
# resource path
|
3817
|
+
local_var_path = "/pdf/create/web"
|
3818
|
+
|
3819
|
+
# query parameters
|
3820
|
+
query_params = {}
|
3821
|
+
query_params[:'url'] = url
|
3822
|
+
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
3823
|
+
query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
|
3824
|
+
query_params[:'isLandscape'] = opts[:'is_landscape'] if !opts[:'is_landscape'].nil?
|
3825
|
+
query_params[:'marginLeft'] = opts[:'margin_left'] if !opts[:'margin_left'].nil?
|
3826
|
+
query_params[:'marginBottom'] = opts[:'margin_bottom'] if !opts[:'margin_bottom'].nil?
|
3827
|
+
query_params[:'marginRight'] = opts[:'margin_right'] if !opts[:'margin_right'].nil?
|
3828
|
+
query_params[:'marginTop'] = opts[:'margin_top'] if !opts[:'margin_top'].nil?
|
3829
|
+
|
3830
|
+
# header parameters
|
3831
|
+
header_params = {}
|
3832
|
+
# HTTP header 'Accept' (if needed)
|
3833
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
3834
|
+
# HTTP header 'Content-Type'
|
3835
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3836
|
+
|
3837
|
+
# form parameters
|
3838
|
+
form_params = {}
|
3839
|
+
# Fix header in file
|
3840
|
+
post_body = nil
|
3841
|
+
|
3842
|
+
# http body (model)
|
3843
|
+
# Fix header in file
|
3844
|
+
# post_body = nil
|
3845
|
+
auth_names = []
|
3846
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
3847
|
+
:header_params => header_params,
|
3848
|
+
:query_params => query_params,
|
3849
|
+
:form_params => form_params,
|
3850
|
+
:body => post_body,
|
3851
|
+
:auth_names => auth_names,
|
3852
|
+
:return_type => 'File')
|
3853
|
+
if @api_client.config.debugging
|
3854
|
+
@api_client.config.logger.debug "API called: PdfApi#get_web_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3855
|
+
end
|
3856
|
+
return data, status_code, headers
|
3857
|
+
end
|
3858
|
+
|
3373
3859
|
# Get number of words per document page.
|
3374
3860
|
#
|
3375
3861
|
# @param name The document name.
|
@@ -3495,6 +3981,186 @@ module AsposePdfCloud
|
|
3495
3981
|
return data, status_code, headers
|
3496
3982
|
end
|
3497
3983
|
|
3984
|
+
# Convert XML file (located on storage) to PDF format and return resulting file in response.
|
3985
|
+
#
|
3986
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.xml)
|
3987
|
+
# @param [Hash] opts the optional parameters
|
3988
|
+
# @option opts [String] :xsl_file_path Full XSL source filename (ex. /folder1/folder2/template.xsl)
|
3989
|
+
# @return [File]
|
3990
|
+
def get_xml_in_storage_to_pdf(src_path, opts = {})
|
3991
|
+
data, _status_code, _headers = get_xml_in_storage_to_pdf_with_http_info(src_path, opts)
|
3992
|
+
return data
|
3993
|
+
end
|
3994
|
+
|
3995
|
+
# Convert XML file (located on storage) to PDF format and return resulting file in response.
|
3996
|
+
#
|
3997
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.xml)
|
3998
|
+
# @param [Hash] opts the optional parameters
|
3999
|
+
# @option opts [String] :xsl_file_path Full XSL source filename (ex. /folder1/folder2/template.xsl)
|
4000
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
4001
|
+
def get_xml_in_storage_to_pdf_with_http_info(src_path, opts = {})
|
4002
|
+
if @api_client.config.debugging
|
4003
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_xml_in_storage_to_pdf ..."
|
4004
|
+
end
|
4005
|
+
# verify the required parameter 'src_path' is set
|
4006
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
4007
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.get_xml_in_storage_to_pdf"
|
4008
|
+
end
|
4009
|
+
# resource path
|
4010
|
+
local_var_path = "/pdf/create/xml"
|
4011
|
+
|
4012
|
+
# query parameters
|
4013
|
+
query_params = {}
|
4014
|
+
query_params[:'srcPath'] = src_path
|
4015
|
+
query_params[:'xslFilePath'] = opts[:'xsl_file_path'] if !opts[:'xsl_file_path'].nil?
|
4016
|
+
|
4017
|
+
# header parameters
|
4018
|
+
header_params = {}
|
4019
|
+
# HTTP header 'Accept' (if needed)
|
4020
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
4021
|
+
# HTTP header 'Content-Type'
|
4022
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
4023
|
+
|
4024
|
+
# form parameters
|
4025
|
+
form_params = {}
|
4026
|
+
# Fix header in file
|
4027
|
+
post_body = nil
|
4028
|
+
|
4029
|
+
# http body (model)
|
4030
|
+
# Fix header in file
|
4031
|
+
# post_body = nil
|
4032
|
+
auth_names = []
|
4033
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
4034
|
+
:header_params => header_params,
|
4035
|
+
:query_params => query_params,
|
4036
|
+
:form_params => form_params,
|
4037
|
+
:body => post_body,
|
4038
|
+
:auth_names => auth_names,
|
4039
|
+
:return_type => 'File')
|
4040
|
+
if @api_client.config.debugging
|
4041
|
+
@api_client.config.logger.debug "API called: PdfApi#get_xml_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4042
|
+
end
|
4043
|
+
return data, status_code, headers
|
4044
|
+
end
|
4045
|
+
|
4046
|
+
# Convert XPS file (located on storage) to PDF format and return resulting file in response.
|
4047
|
+
#
|
4048
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.xps)
|
4049
|
+
# @param [Hash] opts the optional parameters
|
4050
|
+
# @return [File]
|
4051
|
+
def get_xps_in_storage_to_pdf(src_path, opts = {})
|
4052
|
+
data, _status_code, _headers = get_xps_in_storage_to_pdf_with_http_info(src_path, opts)
|
4053
|
+
return data
|
4054
|
+
end
|
4055
|
+
|
4056
|
+
# Convert XPS file (located on storage) to PDF format and return resulting file in response.
|
4057
|
+
#
|
4058
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.xps)
|
4059
|
+
# @param [Hash] opts the optional parameters
|
4060
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
4061
|
+
def get_xps_in_storage_to_pdf_with_http_info(src_path, opts = {})
|
4062
|
+
if @api_client.config.debugging
|
4063
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_xps_in_storage_to_pdf ..."
|
4064
|
+
end
|
4065
|
+
# verify the required parameter 'src_path' is set
|
4066
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
4067
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.get_xps_in_storage_to_pdf"
|
4068
|
+
end
|
4069
|
+
# resource path
|
4070
|
+
local_var_path = "/pdf/create/xps"
|
4071
|
+
|
4072
|
+
# query parameters
|
4073
|
+
query_params = {}
|
4074
|
+
query_params[:'srcPath'] = src_path
|
4075
|
+
|
4076
|
+
# header parameters
|
4077
|
+
header_params = {}
|
4078
|
+
# HTTP header 'Accept' (if needed)
|
4079
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
4080
|
+
# HTTP header 'Content-Type'
|
4081
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
4082
|
+
|
4083
|
+
# form parameters
|
4084
|
+
form_params = {}
|
4085
|
+
# Fix header in file
|
4086
|
+
post_body = nil
|
4087
|
+
|
4088
|
+
# http body (model)
|
4089
|
+
# Fix header in file
|
4090
|
+
# post_body = nil
|
4091
|
+
auth_names = []
|
4092
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
4093
|
+
:header_params => header_params,
|
4094
|
+
:query_params => query_params,
|
4095
|
+
:form_params => form_params,
|
4096
|
+
:body => post_body,
|
4097
|
+
:auth_names => auth_names,
|
4098
|
+
:return_type => 'File')
|
4099
|
+
if @api_client.config.debugging
|
4100
|
+
@api_client.config.logger.debug "API called: PdfApi#get_xps_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4101
|
+
end
|
4102
|
+
return data, status_code, headers
|
4103
|
+
end
|
4104
|
+
|
4105
|
+
# Convert XslFo file (located on storage) to PDF format and return resulting file in response.
|
4106
|
+
#
|
4107
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.xslfo)
|
4108
|
+
# @param [Hash] opts the optional parameters
|
4109
|
+
# @return [File]
|
4110
|
+
def get_xsl_fo_in_storage_to_pdf(src_path, opts = {})
|
4111
|
+
data, _status_code, _headers = get_xsl_fo_in_storage_to_pdf_with_http_info(src_path, opts)
|
4112
|
+
return data
|
4113
|
+
end
|
4114
|
+
|
4115
|
+
# Convert XslFo file (located on storage) to PDF format and return resulting file in response.
|
4116
|
+
#
|
4117
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.xslfo)
|
4118
|
+
# @param [Hash] opts the optional parameters
|
4119
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
4120
|
+
def get_xsl_fo_in_storage_to_pdf_with_http_info(src_path, opts = {})
|
4121
|
+
if @api_client.config.debugging
|
4122
|
+
@api_client.config.logger.debug "Calling API: PdfApi.get_xsl_fo_in_storage_to_pdf ..."
|
4123
|
+
end
|
4124
|
+
# verify the required parameter 'src_path' is set
|
4125
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
4126
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.get_xsl_fo_in_storage_to_pdf"
|
4127
|
+
end
|
4128
|
+
# resource path
|
4129
|
+
local_var_path = "/pdf/create/xslfo"
|
4130
|
+
|
4131
|
+
# query parameters
|
4132
|
+
query_params = {}
|
4133
|
+
query_params[:'srcPath'] = src_path
|
4134
|
+
|
4135
|
+
# header parameters
|
4136
|
+
header_params = {}
|
4137
|
+
# HTTP header 'Accept' (if needed)
|
4138
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
4139
|
+
# HTTP header 'Content-Type'
|
4140
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
4141
|
+
|
4142
|
+
# form parameters
|
4143
|
+
form_params = {}
|
4144
|
+
# Fix header in file
|
4145
|
+
post_body = nil
|
4146
|
+
|
4147
|
+
# http body (model)
|
4148
|
+
# Fix header in file
|
4149
|
+
# post_body = nil
|
4150
|
+
auth_names = []
|
4151
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
4152
|
+
:header_params => header_params,
|
4153
|
+
:query_params => query_params,
|
4154
|
+
:form_params => form_params,
|
4155
|
+
:body => post_body,
|
4156
|
+
:auth_names => auth_names,
|
4157
|
+
:return_type => 'File')
|
4158
|
+
if @api_client.config.debugging
|
4159
|
+
@api_client.config.logger.debug "API called: PdfApi#get_xsl_fo_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4160
|
+
end
|
4161
|
+
return data, status_code, headers
|
4162
|
+
end
|
4163
|
+
|
3498
4164
|
# Append document to existing one.
|
3499
4165
|
#
|
3500
4166
|
# @param name The original document name.
|
@@ -5112,12 +5778,80 @@ module AsposePdfCloud
|
|
5112
5778
|
return data, status_code, headers
|
5113
5779
|
end
|
5114
5780
|
|
5115
|
-
#
|
5781
|
+
# Convert EPUB file (located on storage) to PDF format and upload resulting file to storage.
|
5116
5782
|
#
|
5117
5783
|
# @param name The document name.
|
5784
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.epub)
|
5118
5785
|
# @param [Hash] opts the optional parameters
|
5119
|
-
# @option opts [String] :
|
5120
|
-
# @
|
5786
|
+
# @option opts [String] :dst_folder The destination document folder.
|
5787
|
+
# @return [SaaSposeResponse]
|
5788
|
+
def put_epub_in_storage_to_pdf(name, src_path, opts = {})
|
5789
|
+
data, _status_code, _headers = put_epub_in_storage_to_pdf_with_http_info(name, src_path, opts)
|
5790
|
+
return data
|
5791
|
+
end
|
5792
|
+
|
5793
|
+
# Convert EPUB file (located on storage) to PDF format and upload resulting file to storage.
|
5794
|
+
#
|
5795
|
+
# @param name The document name.
|
5796
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.epub)
|
5797
|
+
# @param [Hash] opts the optional parameters
|
5798
|
+
# @option opts [String] :dst_folder The destination document folder.
|
5799
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
5800
|
+
def put_epub_in_storage_to_pdf_with_http_info(name, src_path, opts = {})
|
5801
|
+
if @api_client.config.debugging
|
5802
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_epub_in_storage_to_pdf ..."
|
5803
|
+
end
|
5804
|
+
# verify the required parameter 'name' is set
|
5805
|
+
if @api_client.config.client_side_validation && name.nil?
|
5806
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_epub_in_storage_to_pdf"
|
5807
|
+
end
|
5808
|
+
# verify the required parameter 'src_path' is set
|
5809
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
5810
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.put_epub_in_storage_to_pdf"
|
5811
|
+
end
|
5812
|
+
# resource path
|
5813
|
+
local_var_path = "/pdf/{name}/create/epub".sub('{' + 'name' + '}', name.to_s)
|
5814
|
+
|
5815
|
+
# query parameters
|
5816
|
+
query_params = {}
|
5817
|
+
query_params[:'srcPath'] = src_path
|
5818
|
+
query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
|
5819
|
+
|
5820
|
+
# header parameters
|
5821
|
+
header_params = {}
|
5822
|
+
# HTTP header 'Accept' (if needed)
|
5823
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
5824
|
+
# HTTP header 'Content-Type'
|
5825
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
5826
|
+
|
5827
|
+
# form parameters
|
5828
|
+
form_params = {}
|
5829
|
+
# Fix header in file
|
5830
|
+
post_body = nil
|
5831
|
+
|
5832
|
+
# http body (model)
|
5833
|
+
# Fix header in file
|
5834
|
+
# post_body = nil
|
5835
|
+
auth_names = []
|
5836
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
5837
|
+
:header_params => header_params,
|
5838
|
+
:query_params => query_params,
|
5839
|
+
:form_params => form_params,
|
5840
|
+
:body => post_body,
|
5841
|
+
:auth_names => auth_names,
|
5842
|
+
:return_type => 'SaaSposeResponse')
|
5843
|
+
if @api_client.config.debugging
|
5844
|
+
@api_client.config.logger.debug "API called: PdfApi#put_epub_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5845
|
+
end
|
5846
|
+
return data, status_code, headers
|
5847
|
+
end
|
5848
|
+
|
5849
|
+
# Flatten form fields in document.
|
5850
|
+
#
|
5851
|
+
# @param name The document name.
|
5852
|
+
# @param [Hash] opts the optional parameters
|
5853
|
+
# @option opts [String] :storage The document storage.
|
5854
|
+
# @option opts [String] :folder The document folder.
|
5121
5855
|
# @return [SaaSposeResponse]
|
5122
5856
|
def put_fields_flatten(name, opts = {})
|
5123
5857
|
data, _status_code, _headers = put_fields_flatten_with_http_info(name, opts)
|
@@ -5176,6 +5910,170 @@ module AsposePdfCloud
|
|
5176
5910
|
return data, status_code, headers
|
5177
5911
|
end
|
5178
5912
|
|
5913
|
+
# Convert HTML file (located on storage) to PDF format and upload resulting file to storage.
|
5914
|
+
#
|
5915
|
+
# @param name The document name.
|
5916
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.zip)
|
5917
|
+
# @param html_file_name Name of HTML file in ZIP.
|
5918
|
+
# @param [Hash] opts the optional parameters
|
5919
|
+
# @option opts [Float] :height Page height
|
5920
|
+
# @option opts [Float] :width Page width
|
5921
|
+
# @option opts [BOOLEAN] :is_landscape Is page landscaped
|
5922
|
+
# @option opts [Float] :margin_left Page margin left
|
5923
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
5924
|
+
# @option opts [Float] :margin_right Page margin right
|
5925
|
+
# @option opts [Float] :margin_top Page margin top
|
5926
|
+
# @option opts [String] :dst_folder The destination document folder.
|
5927
|
+
# @return [SaaSposeResponse]
|
5928
|
+
def put_html_in_storage_to_pdf(name, src_path, html_file_name, opts = {})
|
5929
|
+
data, _status_code, _headers = put_html_in_storage_to_pdf_with_http_info(name, src_path, html_file_name, opts)
|
5930
|
+
return data
|
5931
|
+
end
|
5932
|
+
|
5933
|
+
# Convert HTML file (located on storage) to PDF format and upload resulting file to storage.
|
5934
|
+
#
|
5935
|
+
# @param name The document name.
|
5936
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.zip)
|
5937
|
+
# @param html_file_name Name of HTML file in ZIP.
|
5938
|
+
# @param [Hash] opts the optional parameters
|
5939
|
+
# @option opts [Float] :height Page height
|
5940
|
+
# @option opts [Float] :width Page width
|
5941
|
+
# @option opts [BOOLEAN] :is_landscape Is page landscaped
|
5942
|
+
# @option opts [Float] :margin_left Page margin left
|
5943
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
5944
|
+
# @option opts [Float] :margin_right Page margin right
|
5945
|
+
# @option opts [Float] :margin_top Page margin top
|
5946
|
+
# @option opts [String] :dst_folder The destination document folder.
|
5947
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
5948
|
+
def put_html_in_storage_to_pdf_with_http_info(name, src_path, html_file_name, opts = {})
|
5949
|
+
if @api_client.config.debugging
|
5950
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_html_in_storage_to_pdf ..."
|
5951
|
+
end
|
5952
|
+
# verify the required parameter 'name' is set
|
5953
|
+
if @api_client.config.client_side_validation && name.nil?
|
5954
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_html_in_storage_to_pdf"
|
5955
|
+
end
|
5956
|
+
# verify the required parameter 'src_path' is set
|
5957
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
5958
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.put_html_in_storage_to_pdf"
|
5959
|
+
end
|
5960
|
+
# verify the required parameter 'html_file_name' is set
|
5961
|
+
if @api_client.config.client_side_validation && html_file_name.nil?
|
5962
|
+
fail ArgumentError, "Missing the required parameter 'html_file_name' when calling PdfApi.put_html_in_storage_to_pdf"
|
5963
|
+
end
|
5964
|
+
# resource path
|
5965
|
+
local_var_path = "/pdf/{name}/create/html".sub('{' + 'name' + '}', name.to_s)
|
5966
|
+
|
5967
|
+
# query parameters
|
5968
|
+
query_params = {}
|
5969
|
+
query_params[:'srcPath'] = src_path
|
5970
|
+
query_params[:'htmlFileName'] = html_file_name
|
5971
|
+
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
5972
|
+
query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
|
5973
|
+
query_params[:'isLandscape'] = opts[:'is_landscape'] if !opts[:'is_landscape'].nil?
|
5974
|
+
query_params[:'marginLeft'] = opts[:'margin_left'] if !opts[:'margin_left'].nil?
|
5975
|
+
query_params[:'marginBottom'] = opts[:'margin_bottom'] if !opts[:'margin_bottom'].nil?
|
5976
|
+
query_params[:'marginRight'] = opts[:'margin_right'] if !opts[:'margin_right'].nil?
|
5977
|
+
query_params[:'marginTop'] = opts[:'margin_top'] if !opts[:'margin_top'].nil?
|
5978
|
+
query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
|
5979
|
+
|
5980
|
+
# header parameters
|
5981
|
+
header_params = {}
|
5982
|
+
# HTTP header 'Accept' (if needed)
|
5983
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
5984
|
+
# HTTP header 'Content-Type'
|
5985
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
5986
|
+
|
5987
|
+
# form parameters
|
5988
|
+
form_params = {}
|
5989
|
+
# Fix header in file
|
5990
|
+
post_body = nil
|
5991
|
+
|
5992
|
+
# http body (model)
|
5993
|
+
# Fix header in file
|
5994
|
+
# post_body = nil
|
5995
|
+
auth_names = []
|
5996
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
5997
|
+
:header_params => header_params,
|
5998
|
+
:query_params => query_params,
|
5999
|
+
:form_params => form_params,
|
6000
|
+
:body => post_body,
|
6001
|
+
:auth_names => auth_names,
|
6002
|
+
:return_type => 'SaaSposeResponse')
|
6003
|
+
if @api_client.config.debugging
|
6004
|
+
@api_client.config.logger.debug "API called: PdfApi#put_html_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6005
|
+
end
|
6006
|
+
return data, status_code, headers
|
6007
|
+
end
|
6008
|
+
|
6009
|
+
# Convert LaTeX file (located on storage) to PDF format and upload resulting file to storage.
|
6010
|
+
#
|
6011
|
+
# @param name The document name.
|
6012
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.tex)
|
6013
|
+
# @param [Hash] opts the optional parameters
|
6014
|
+
# @option opts [String] :dst_folder The destination document folder.
|
6015
|
+
# @return [SaaSposeResponse]
|
6016
|
+
def put_la_te_x_in_storage_to_pdf(name, src_path, opts = {})
|
6017
|
+
data, _status_code, _headers = put_la_te_x_in_storage_to_pdf_with_http_info(name, src_path, opts)
|
6018
|
+
return data
|
6019
|
+
end
|
6020
|
+
|
6021
|
+
# Convert LaTeX file (located on storage) to PDF format and upload resulting file to storage.
|
6022
|
+
#
|
6023
|
+
# @param name The document name.
|
6024
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.tex)
|
6025
|
+
# @param [Hash] opts the optional parameters
|
6026
|
+
# @option opts [String] :dst_folder The destination document folder.
|
6027
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
6028
|
+
def put_la_te_x_in_storage_to_pdf_with_http_info(name, src_path, opts = {})
|
6029
|
+
if @api_client.config.debugging
|
6030
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_la_te_x_in_storage_to_pdf ..."
|
6031
|
+
end
|
6032
|
+
# verify the required parameter 'name' is set
|
6033
|
+
if @api_client.config.client_side_validation && name.nil?
|
6034
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_la_te_x_in_storage_to_pdf"
|
6035
|
+
end
|
6036
|
+
# verify the required parameter 'src_path' is set
|
6037
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
6038
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.put_la_te_x_in_storage_to_pdf"
|
6039
|
+
end
|
6040
|
+
# resource path
|
6041
|
+
local_var_path = "/pdf/{name}/create/latex".sub('{' + 'name' + '}', name.to_s)
|
6042
|
+
|
6043
|
+
# query parameters
|
6044
|
+
query_params = {}
|
6045
|
+
query_params[:'srcPath'] = src_path
|
6046
|
+
query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
|
6047
|
+
|
6048
|
+
# header parameters
|
6049
|
+
header_params = {}
|
6050
|
+
# HTTP header 'Accept' (if needed)
|
6051
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
6052
|
+
# HTTP header 'Content-Type'
|
6053
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
6054
|
+
|
6055
|
+
# form parameters
|
6056
|
+
form_params = {}
|
6057
|
+
# Fix header in file
|
6058
|
+
post_body = nil
|
6059
|
+
|
6060
|
+
# http body (model)
|
6061
|
+
# Fix header in file
|
6062
|
+
# post_body = nil
|
6063
|
+
auth_names = []
|
6064
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
6065
|
+
:header_params => header_params,
|
6066
|
+
:query_params => query_params,
|
6067
|
+
:form_params => form_params,
|
6068
|
+
:body => post_body,
|
6069
|
+
:auth_names => auth_names,
|
6070
|
+
:return_type => 'SaaSposeResponse')
|
6071
|
+
if @api_client.config.debugging
|
6072
|
+
@api_client.config.logger.debug "API called: PdfApi#put_la_te_x_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6073
|
+
end
|
6074
|
+
return data, status_code, headers
|
6075
|
+
end
|
6076
|
+
|
5179
6077
|
# Merge a list of documents.
|
5180
6078
|
#
|
5181
6079
|
# @param name Resulting documen name.
|
@@ -5241,6 +6139,74 @@ module AsposePdfCloud
|
|
5241
6139
|
return data, status_code, headers
|
5242
6140
|
end
|
5243
6141
|
|
6142
|
+
# Convert MHT file (located on storage) to PDF format and upload resulting file to storage.
|
6143
|
+
#
|
6144
|
+
# @param name The document name.
|
6145
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.mht)
|
6146
|
+
# @param [Hash] opts the optional parameters
|
6147
|
+
# @option opts [String] :dst_folder The destination document folder.
|
6148
|
+
# @return [SaaSposeResponse]
|
6149
|
+
def put_mht_in_storage_to_pdf(name, src_path, opts = {})
|
6150
|
+
data, _status_code, _headers = put_mht_in_storage_to_pdf_with_http_info(name, src_path, opts)
|
6151
|
+
return data
|
6152
|
+
end
|
6153
|
+
|
6154
|
+
# Convert MHT file (located on storage) to PDF format and upload resulting file to storage.
|
6155
|
+
#
|
6156
|
+
# @param name The document name.
|
6157
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.mht)
|
6158
|
+
# @param [Hash] opts the optional parameters
|
6159
|
+
# @option opts [String] :dst_folder The destination document folder.
|
6160
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
6161
|
+
def put_mht_in_storage_to_pdf_with_http_info(name, src_path, opts = {})
|
6162
|
+
if @api_client.config.debugging
|
6163
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_mht_in_storage_to_pdf ..."
|
6164
|
+
end
|
6165
|
+
# verify the required parameter 'name' is set
|
6166
|
+
if @api_client.config.client_side_validation && name.nil?
|
6167
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_mht_in_storage_to_pdf"
|
6168
|
+
end
|
6169
|
+
# verify the required parameter 'src_path' is set
|
6170
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
6171
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.put_mht_in_storage_to_pdf"
|
6172
|
+
end
|
6173
|
+
# resource path
|
6174
|
+
local_var_path = "/pdf/{name}/create/mht".sub('{' + 'name' + '}', name.to_s)
|
6175
|
+
|
6176
|
+
# query parameters
|
6177
|
+
query_params = {}
|
6178
|
+
query_params[:'srcPath'] = src_path
|
6179
|
+
query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
|
6180
|
+
|
6181
|
+
# header parameters
|
6182
|
+
header_params = {}
|
6183
|
+
# HTTP header 'Accept' (if needed)
|
6184
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
6185
|
+
# HTTP header 'Content-Type'
|
6186
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
6187
|
+
|
6188
|
+
# form parameters
|
6189
|
+
form_params = {}
|
6190
|
+
# Fix header in file
|
6191
|
+
post_body = nil
|
6192
|
+
|
6193
|
+
# http body (model)
|
6194
|
+
# Fix header in file
|
6195
|
+
# post_body = nil
|
6196
|
+
auth_names = []
|
6197
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
6198
|
+
:header_params => header_params,
|
6199
|
+
:query_params => query_params,
|
6200
|
+
:form_params => form_params,
|
6201
|
+
:body => post_body,
|
6202
|
+
:auth_names => auth_names,
|
6203
|
+
:return_type => 'SaaSposeResponse')
|
6204
|
+
if @api_client.config.debugging
|
6205
|
+
@api_client.config.logger.debug "API called: PdfApi#put_mht_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6206
|
+
end
|
6207
|
+
return data, status_code, headers
|
6208
|
+
end
|
6209
|
+
|
5244
6210
|
# Add page stamp.
|
5245
6211
|
#
|
5246
6212
|
# @param name The document name.
|
@@ -5316,75 +6282,56 @@ module AsposePdfCloud
|
|
5316
6282
|
return data, status_code, headers
|
5317
6283
|
end
|
5318
6284
|
|
5319
|
-
#
|
6285
|
+
# Convert PCL file (located on storage) to PDF format and upload resulting file to storage.
|
5320
6286
|
#
|
5321
|
-
# @param
|
6287
|
+
# @param name The document name.
|
6288
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.pcl)
|
5322
6289
|
# @param [Hash] opts the optional parameters
|
5323
|
-
# @option opts [
|
5324
|
-
# @
|
5325
|
-
|
5326
|
-
|
5327
|
-
# @option opts [Integer] :max_distance_between_text_lines Max distance between text lines.
|
5328
|
-
# @option opts [String] :mode Allows to control how a PDF document is converted into a word processing document.
|
5329
|
-
# @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
|
5330
|
-
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
5331
|
-
# @option opts [File] :file A file to be converted.
|
5332
|
-
# @return [File]
|
5333
|
-
def put_pdf_in_request_to_doc(out_path, opts = {})
|
5334
|
-
data, _status_code, _headers = put_pdf_in_request_to_doc_with_http_info(out_path, opts)
|
6290
|
+
# @option opts [String] :dst_folder The destination document folder.
|
6291
|
+
# @return [SaaSposeResponse]
|
6292
|
+
def put_pcl_in_storage_to_pdf(name, src_path, opts = {})
|
6293
|
+
data, _status_code, _headers = put_pcl_in_storage_to_pdf_with_http_info(name, src_path, opts)
|
5335
6294
|
return data
|
5336
6295
|
end
|
5337
6296
|
|
5338
|
-
#
|
6297
|
+
# Convert PCL file (located on storage) to PDF format and upload resulting file to storage.
|
5339
6298
|
#
|
5340
|
-
# @param
|
6299
|
+
# @param name The document name.
|
6300
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.pcl)
|
5341
6301
|
# @param [Hash] opts the optional parameters
|
5342
|
-
# @option opts [
|
5343
|
-
# @
|
5344
|
-
|
5345
|
-
# @option opts [Integer] :image_resolution_y Image resolution Y.
|
5346
|
-
# @option opts [Integer] :max_distance_between_text_lines Max distance between text lines.
|
5347
|
-
# @option opts [String] :mode Allows to control how a PDF document is converted into a word processing document.
|
5348
|
-
# @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
|
5349
|
-
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
5350
|
-
# @option opts [File] :file A file to be converted.
|
5351
|
-
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
5352
|
-
def put_pdf_in_request_to_doc_with_http_info(out_path, opts = {})
|
6302
|
+
# @option opts [String] :dst_folder The destination document folder.
|
6303
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
6304
|
+
def put_pcl_in_storage_to_pdf_with_http_info(name, src_path, opts = {})
|
5353
6305
|
if @api_client.config.debugging
|
5354
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
6306
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_pcl_in_storage_to_pdf ..."
|
5355
6307
|
end
|
5356
|
-
# verify the required parameter '
|
5357
|
-
if @api_client.config.client_side_validation &&
|
5358
|
-
fail ArgumentError, "Missing the required parameter '
|
6308
|
+
# verify the required parameter 'name' is set
|
6309
|
+
if @api_client.config.client_side_validation && name.nil?
|
6310
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pcl_in_storage_to_pdf"
|
6311
|
+
end
|
6312
|
+
# verify the required parameter 'src_path' is set
|
6313
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
6314
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.put_pcl_in_storage_to_pdf"
|
5359
6315
|
end
|
5360
6316
|
# resource path
|
5361
|
-
local_var_path = "/pdf/
|
6317
|
+
local_var_path = "/pdf/{name}/create/pcl".sub('{' + 'name' + '}', name.to_s)
|
5362
6318
|
|
5363
6319
|
# query parameters
|
5364
6320
|
query_params = {}
|
5365
|
-
query_params[:'
|
5366
|
-
query_params[:'
|
5367
|
-
query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
|
5368
|
-
query_params[:'imageResolutionX'] = opts[:'image_resolution_x'] if !opts[:'image_resolution_x'].nil?
|
5369
|
-
query_params[:'imageResolutionY'] = opts[:'image_resolution_y'] if !opts[:'image_resolution_y'].nil?
|
5370
|
-
query_params[:'maxDistanceBetweenTextLines'] = opts[:'max_distance_between_text_lines'] if !opts[:'max_distance_between_text_lines'].nil?
|
5371
|
-
query_params[:'mode'] = opts[:'mode'] if !opts[:'mode'].nil?
|
5372
|
-
query_params[:'recognizeBullets'] = opts[:'recognize_bullets'] if !opts[:'recognize_bullets'].nil?
|
5373
|
-
query_params[:'relativeHorizontalProximity'] = opts[:'relative_horizontal_proximity'] if !opts[:'relative_horizontal_proximity'].nil?
|
6321
|
+
query_params[:'srcPath'] = src_path
|
6322
|
+
query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
|
5374
6323
|
|
5375
6324
|
# header parameters
|
5376
6325
|
header_params = {}
|
5377
6326
|
# HTTP header 'Accept' (if needed)
|
5378
6327
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
5379
6328
|
# HTTP header 'Content-Type'
|
5380
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
6329
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
5381
6330
|
|
5382
6331
|
# form parameters
|
5383
6332
|
form_params = {}
|
5384
6333
|
# Fix header in file
|
5385
6334
|
post_body = nil
|
5386
|
-
post_body = opts[:'file'] if !opts[:'file'].nil?
|
5387
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
5388
6335
|
|
5389
6336
|
# http body (model)
|
5390
6337
|
# Fix header in file
|
@@ -5396,7 +6343,94 @@ module AsposePdfCloud
|
|
5396
6343
|
:form_params => form_params,
|
5397
6344
|
:body => post_body,
|
5398
6345
|
:auth_names => auth_names,
|
5399
|
-
:return_type => '
|
6346
|
+
:return_type => 'SaaSposeResponse')
|
6347
|
+
if @api_client.config.debugging
|
6348
|
+
@api_client.config.logger.debug "API called: PdfApi#put_pcl_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6349
|
+
end
|
6350
|
+
return data, status_code, headers
|
6351
|
+
end
|
6352
|
+
|
6353
|
+
# Converts PDF document (in request content) to DOC format and uploads resulting file to storage.
|
6354
|
+
#
|
6355
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
|
6356
|
+
# @param [Hash] opts the optional parameters
|
6357
|
+
# @option opts [BOOLEAN] :add_return_to_line_end Add return to line end.
|
6358
|
+
# @option opts [String] :format Allows to specify .doc or .docx file format.
|
6359
|
+
# @option opts [Integer] :image_resolution_x Image resolution X.
|
6360
|
+
# @option opts [Integer] :image_resolution_y Image resolution Y.
|
6361
|
+
# @option opts [Integer] :max_distance_between_text_lines Max distance between text lines.
|
6362
|
+
# @option opts [String] :mode Allows to control how a PDF document is converted into a word processing document.
|
6363
|
+
# @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
|
6364
|
+
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
6365
|
+
# @option opts [File] :file A file to be converted.
|
6366
|
+
# @return [SaaSposeResponse]
|
6367
|
+
def put_pdf_in_request_to_doc(out_path, opts = {})
|
6368
|
+
data, _status_code, _headers = put_pdf_in_request_to_doc_with_http_info(out_path, opts)
|
6369
|
+
return data
|
6370
|
+
end
|
6371
|
+
|
6372
|
+
# Converts PDF document (in request content) to DOC format and uploads resulting file to storage.
|
6373
|
+
#
|
6374
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
|
6375
|
+
# @param [Hash] opts the optional parameters
|
6376
|
+
# @option opts [BOOLEAN] :add_return_to_line_end Add return to line end.
|
6377
|
+
# @option opts [String] :format Allows to specify .doc or .docx file format.
|
6378
|
+
# @option opts [Integer] :image_resolution_x Image resolution X.
|
6379
|
+
# @option opts [Integer] :image_resolution_y Image resolution Y.
|
6380
|
+
# @option opts [Integer] :max_distance_between_text_lines Max distance between text lines.
|
6381
|
+
# @option opts [String] :mode Allows to control how a PDF document is converted into a word processing document.
|
6382
|
+
# @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
|
6383
|
+
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
6384
|
+
# @option opts [File] :file A file to be converted.
|
6385
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
6386
|
+
def put_pdf_in_request_to_doc_with_http_info(out_path, opts = {})
|
6387
|
+
if @api_client.config.debugging
|
6388
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_doc ..."
|
6389
|
+
end
|
6390
|
+
# verify the required parameter 'out_path' is set
|
6391
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
6392
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_request_to_doc"
|
6393
|
+
end
|
6394
|
+
# resource path
|
6395
|
+
local_var_path = "/pdf/convert/doc"
|
6396
|
+
|
6397
|
+
# query parameters
|
6398
|
+
query_params = {}
|
6399
|
+
query_params[:'outPath'] = out_path
|
6400
|
+
query_params[:'addReturnToLineEnd'] = opts[:'add_return_to_line_end'] if !opts[:'add_return_to_line_end'].nil?
|
6401
|
+
query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
|
6402
|
+
query_params[:'imageResolutionX'] = opts[:'image_resolution_x'] if !opts[:'image_resolution_x'].nil?
|
6403
|
+
query_params[:'imageResolutionY'] = opts[:'image_resolution_y'] if !opts[:'image_resolution_y'].nil?
|
6404
|
+
query_params[:'maxDistanceBetweenTextLines'] = opts[:'max_distance_between_text_lines'] if !opts[:'max_distance_between_text_lines'].nil?
|
6405
|
+
query_params[:'mode'] = opts[:'mode'] if !opts[:'mode'].nil?
|
6406
|
+
query_params[:'recognizeBullets'] = opts[:'recognize_bullets'] if !opts[:'recognize_bullets'].nil?
|
6407
|
+
query_params[:'relativeHorizontalProximity'] = opts[:'relative_horizontal_proximity'] if !opts[:'relative_horizontal_proximity'].nil?
|
6408
|
+
|
6409
|
+
# header parameters
|
6410
|
+
header_params = {}
|
6411
|
+
# HTTP header 'Accept' (if needed)
|
6412
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
6413
|
+
# HTTP header 'Content-Type'
|
6414
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
6415
|
+
|
6416
|
+
# form parameters
|
6417
|
+
form_params = {}
|
6418
|
+
# Fix header in file
|
6419
|
+
post_body = nil
|
6420
|
+
post_body = opts[:'file'] if !opts[:'file'].nil?
|
6421
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
6422
|
+
|
6423
|
+
# http body (model)
|
6424
|
+
# Fix header in file
|
6425
|
+
# post_body = nil
|
6426
|
+
auth_names = []
|
6427
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
6428
|
+
:header_params => header_params,
|
6429
|
+
:query_params => query_params,
|
6430
|
+
:form_params => form_params,
|
6431
|
+
:body => post_body,
|
6432
|
+
:auth_names => auth_names,
|
6433
|
+
:return_type => 'SaaSposeResponse')
|
5400
6434
|
if @api_client.config.debugging
|
5401
6435
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_doc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5402
6436
|
end
|
@@ -5407,9 +6441,9 @@ module AsposePdfCloud
|
|
5407
6441
|
#
|
5408
6442
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.epub)
|
5409
6443
|
# @param [Hash] opts the optional parameters
|
5410
|
-
# @option opts [String] :content_recognition_mode
|
6444
|
+
# @option opts [String] :content_recognition_mode Рroperty tunes conversion for this or that desirable method of recognition of content.
|
5411
6445
|
# @option opts [File] :file A file to be converted.
|
5412
|
-
# @return [
|
6446
|
+
# @return [SaaSposeResponse]
|
5413
6447
|
def put_pdf_in_request_to_epub(out_path, opts = {})
|
5414
6448
|
data, _status_code, _headers = put_pdf_in_request_to_epub_with_http_info(out_path, opts)
|
5415
6449
|
return data
|
@@ -5419,9 +6453,9 @@ module AsposePdfCloud
|
|
5419
6453
|
#
|
5420
6454
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.epub)
|
5421
6455
|
# @param [Hash] opts the optional parameters
|
5422
|
-
# @option opts [String] :content_recognition_mode
|
6456
|
+
# @option opts [String] :content_recognition_mode Рroperty tunes conversion for this or that desirable method of recognition of content.
|
5423
6457
|
# @option opts [File] :file A file to be converted.
|
5424
|
-
# @return [Array<(
|
6458
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
5425
6459
|
def put_pdf_in_request_to_epub_with_http_info(out_path, opts = {})
|
5426
6460
|
if @api_client.config.debugging
|
5427
6461
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_epub ..."
|
@@ -5462,7 +6496,7 @@ module AsposePdfCloud
|
|
5462
6496
|
:form_params => form_params,
|
5463
6497
|
:body => post_body,
|
5464
6498
|
:auth_names => auth_names,
|
5465
|
-
:return_type => '
|
6499
|
+
:return_type => 'SaaSposeResponse')
|
5466
6500
|
if @api_client.config.debugging
|
5467
6501
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_epub\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5468
6502
|
end
|
@@ -5477,7 +6511,7 @@ module AsposePdfCloud
|
|
5477
6511
|
# @option opts [BOOLEAN] :compress_svg_graphics_if_any The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving.
|
5478
6512
|
# @option opts [BOOLEAN] :convert_marked_content_to_layers If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with \"data-pdflayer\" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content.
|
5479
6513
|
# @option opts [String] :default_font_name Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used.
|
5480
|
-
# @option opts [
|
6514
|
+
# @option opts [String] :document_type Result document type.
|
5481
6515
|
# @option opts [BOOLEAN] :fixed_layout The value indicating whether that HTML is created as fixed layout.
|
5482
6516
|
# @option opts [Integer] :image_resolution Resolution for image rendering.
|
5483
6517
|
# @option opts [Integer] :minimal_line_width This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers.
|
@@ -5502,7 +6536,7 @@ module AsposePdfCloud
|
|
5502
6536
|
# @option opts [String] :special_folder_for_svg_images The path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML. If parameter is empty or null then SVG files(if any) wil be saved together with other image-files (near to output file) or in special folder for images (if it specified in SpecialImagesFolderIfAny option). It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file.
|
5503
6537
|
# @option opts [BOOLEAN] :try_save_text_underlining_and_strikeouting_in_css PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically.
|
5504
6538
|
# @option opts [File] :file A file to be converted.
|
5505
|
-
# @return [
|
6539
|
+
# @return [SaaSposeResponse]
|
5506
6540
|
def put_pdf_in_request_to_html(out_path, opts = {})
|
5507
6541
|
data, _status_code, _headers = put_pdf_in_request_to_html_with_http_info(out_path, opts)
|
5508
6542
|
return data
|
@@ -5516,7 +6550,7 @@ module AsposePdfCloud
|
|
5516
6550
|
# @option opts [BOOLEAN] :compress_svg_graphics_if_any The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving.
|
5517
6551
|
# @option opts [BOOLEAN] :convert_marked_content_to_layers If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with \"data-pdflayer\" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content.
|
5518
6552
|
# @option opts [String] :default_font_name Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used.
|
5519
|
-
# @option opts [
|
6553
|
+
# @option opts [String] :document_type Result document type.
|
5520
6554
|
# @option opts [BOOLEAN] :fixed_layout The value indicating whether that HTML is created as fixed layout.
|
5521
6555
|
# @option opts [Integer] :image_resolution Resolution for image rendering.
|
5522
6556
|
# @option opts [Integer] :minimal_line_width This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers.
|
@@ -5541,7 +6575,7 @@ module AsposePdfCloud
|
|
5541
6575
|
# @option opts [String] :special_folder_for_svg_images The path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML. If parameter is empty or null then SVG files(if any) wil be saved together with other image-files (near to output file) or in special folder for images (if it specified in SpecialImagesFolderIfAny option). It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file.
|
5542
6576
|
# @option opts [BOOLEAN] :try_save_text_underlining_and_strikeouting_in_css PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically.
|
5543
6577
|
# @option opts [File] :file A file to be converted.
|
5544
|
-
# @return [Array<(
|
6578
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
5545
6579
|
def put_pdf_in_request_to_html_with_http_info(out_path, opts = {})
|
5546
6580
|
if @api_client.config.debugging
|
5547
6581
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_html ..."
|
@@ -5609,7 +6643,7 @@ module AsposePdfCloud
|
|
5609
6643
|
:form_params => form_params,
|
5610
6644
|
:body => post_body,
|
5611
6645
|
:auth_names => auth_names,
|
5612
|
-
:return_type => '
|
6646
|
+
:return_type => 'SaaSposeResponse')
|
5613
6647
|
if @api_client.config.debugging
|
5614
6648
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5615
6649
|
end
|
@@ -5622,7 +6656,7 @@ module AsposePdfCloud
|
|
5622
6656
|
# @param [Hash] opts the optional parameters
|
5623
6657
|
# @option opts [Integer] :pages_count Pages count.
|
5624
6658
|
# @option opts [File] :file A file to be converted.
|
5625
|
-
# @return [
|
6659
|
+
# @return [SaaSposeResponse]
|
5626
6660
|
def put_pdf_in_request_to_la_te_x(out_path, opts = {})
|
5627
6661
|
data, _status_code, _headers = put_pdf_in_request_to_la_te_x_with_http_info(out_path, opts)
|
5628
6662
|
return data
|
@@ -5634,7 +6668,7 @@ module AsposePdfCloud
|
|
5634
6668
|
# @param [Hash] opts the optional parameters
|
5635
6669
|
# @option opts [Integer] :pages_count Pages count.
|
5636
6670
|
# @option opts [File] :file A file to be converted.
|
5637
|
-
# @return [Array<(
|
6671
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
5638
6672
|
def put_pdf_in_request_to_la_te_x_with_http_info(out_path, opts = {})
|
5639
6673
|
if @api_client.config.debugging
|
5640
6674
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_la_te_x ..."
|
@@ -5675,7 +6709,7 @@ module AsposePdfCloud
|
|
5675
6709
|
:form_params => form_params,
|
5676
6710
|
:body => post_body,
|
5677
6711
|
:auth_names => auth_names,
|
5678
|
-
:return_type => '
|
6712
|
+
:return_type => 'SaaSposeResponse')
|
5679
6713
|
if @api_client.config.debugging
|
5680
6714
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_la_te_x\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5681
6715
|
end
|
@@ -5687,7 +6721,7 @@ module AsposePdfCloud
|
|
5687
6721
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.mobixml)
|
5688
6722
|
# @param [Hash] opts the optional parameters
|
5689
6723
|
# @option opts [File] :file A file to be converted.
|
5690
|
-
# @return [
|
6724
|
+
# @return [SaaSposeResponse]
|
5691
6725
|
def put_pdf_in_request_to_mobi_xml(out_path, opts = {})
|
5692
6726
|
data, _status_code, _headers = put_pdf_in_request_to_mobi_xml_with_http_info(out_path, opts)
|
5693
6727
|
return data
|
@@ -5698,7 +6732,7 @@ module AsposePdfCloud
|
|
5698
6732
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.mobixml)
|
5699
6733
|
# @param [Hash] opts the optional parameters
|
5700
6734
|
# @option opts [File] :file A file to be converted.
|
5701
|
-
# @return [Array<(
|
6735
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
5702
6736
|
def put_pdf_in_request_to_mobi_xml_with_http_info(out_path, opts = {})
|
5703
6737
|
if @api_client.config.debugging
|
5704
6738
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_mobi_xml ..."
|
@@ -5738,7 +6772,7 @@ module AsposePdfCloud
|
|
5738
6772
|
:form_params => form_params,
|
5739
6773
|
:body => post_body,
|
5740
6774
|
:auth_names => auth_names,
|
5741
|
-
:return_type => '
|
6775
|
+
:return_type => 'SaaSposeResponse')
|
5742
6776
|
if @api_client.config.debugging
|
5743
6777
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_mobi_xml\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5744
6778
|
end
|
@@ -5751,7 +6785,7 @@ module AsposePdfCloud
|
|
5751
6785
|
# @param type Type of PdfA format.
|
5752
6786
|
# @param [Hash] opts the optional parameters
|
5753
6787
|
# @option opts [File] :file A file to be converted.
|
5754
|
-
# @return [
|
6788
|
+
# @return [SaaSposeResponse]
|
5755
6789
|
def put_pdf_in_request_to_pdf_a(out_path, type, opts = {})
|
5756
6790
|
data, _status_code, _headers = put_pdf_in_request_to_pdf_a_with_http_info(out_path, type, opts)
|
5757
6791
|
return data
|
@@ -5763,7 +6797,7 @@ module AsposePdfCloud
|
|
5763
6797
|
# @param type Type of PdfA format.
|
5764
6798
|
# @param [Hash] opts the optional parameters
|
5765
6799
|
# @option opts [File] :file A file to be converted.
|
5766
|
-
# @return [Array<(
|
6800
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
5767
6801
|
def put_pdf_in_request_to_pdf_a_with_http_info(out_path, type, opts = {})
|
5768
6802
|
if @api_client.config.debugging
|
5769
6803
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_pdf_a ..."
|
@@ -5808,7 +6842,7 @@ module AsposePdfCloud
|
|
5808
6842
|
:form_params => form_params,
|
5809
6843
|
:body => post_body,
|
5810
6844
|
:auth_names => auth_names,
|
5811
|
-
:return_type => '
|
6845
|
+
:return_type => 'SaaSposeResponse')
|
5812
6846
|
if @api_client.config.debugging
|
5813
6847
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_pdf_a\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5814
6848
|
end
|
@@ -5822,7 +6856,7 @@ module AsposePdfCloud
|
|
5822
6856
|
# @option opts [BOOLEAN] :separate_images Separate images.
|
5823
6857
|
# @option opts [BOOLEAN] :slides_as_images Slides as images.
|
5824
6858
|
# @option opts [File] :file A file to be converted.
|
5825
|
-
# @return [
|
6859
|
+
# @return [SaaSposeResponse]
|
5826
6860
|
def put_pdf_in_request_to_pptx(out_path, opts = {})
|
5827
6861
|
data, _status_code, _headers = put_pdf_in_request_to_pptx_with_http_info(out_path, opts)
|
5828
6862
|
return data
|
@@ -5835,7 +6869,7 @@ module AsposePdfCloud
|
|
5835
6869
|
# @option opts [BOOLEAN] :separate_images Separate images.
|
5836
6870
|
# @option opts [BOOLEAN] :slides_as_images Slides as images.
|
5837
6871
|
# @option opts [File] :file A file to be converted.
|
5838
|
-
# @return [Array<(
|
6872
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
5839
6873
|
def put_pdf_in_request_to_pptx_with_http_info(out_path, opts = {})
|
5840
6874
|
if @api_client.config.debugging
|
5841
6875
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_pptx ..."
|
@@ -5877,7 +6911,7 @@ module AsposePdfCloud
|
|
5877
6911
|
:form_params => form_params,
|
5878
6912
|
:body => post_body,
|
5879
6913
|
:auth_names => auth_names,
|
5880
|
-
:return_type => '
|
6914
|
+
:return_type => 'SaaSposeResponse')
|
5881
6915
|
if @api_client.config.debugging
|
5882
6916
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5883
6917
|
end
|
@@ -5890,7 +6924,7 @@ module AsposePdfCloud
|
|
5890
6924
|
# @param [Hash] opts the optional parameters
|
5891
6925
|
# @option opts [BOOLEAN] :compress_output_to_zip_archive Specifies whether output will be created as one zip-archive.
|
5892
6926
|
# @option opts [File] :file A file to be converted.
|
5893
|
-
# @return [
|
6927
|
+
# @return [SaaSposeResponse]
|
5894
6928
|
def put_pdf_in_request_to_svg(out_path, opts = {})
|
5895
6929
|
data, _status_code, _headers = put_pdf_in_request_to_svg_with_http_info(out_path, opts)
|
5896
6930
|
return data
|
@@ -5902,7 +6936,7 @@ module AsposePdfCloud
|
|
5902
6936
|
# @param [Hash] opts the optional parameters
|
5903
6937
|
# @option opts [BOOLEAN] :compress_output_to_zip_archive Specifies whether output will be created as one zip-archive.
|
5904
6938
|
# @option opts [File] :file A file to be converted.
|
5905
|
-
# @return [Array<(
|
6939
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
5906
6940
|
def put_pdf_in_request_to_svg_with_http_info(out_path, opts = {})
|
5907
6941
|
if @api_client.config.debugging
|
5908
6942
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_svg ..."
|
@@ -5943,7 +6977,7 @@ module AsposePdfCloud
|
|
5943
6977
|
:form_params => form_params,
|
5944
6978
|
:body => post_body,
|
5945
6979
|
:auth_names => auth_names,
|
5946
|
-
:return_type => '
|
6980
|
+
:return_type => 'SaaSposeResponse')
|
5947
6981
|
if @api_client.config.debugging
|
5948
6982
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_svg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
5949
6983
|
end
|
@@ -5970,7 +7004,7 @@ module AsposePdfCloud
|
|
5970
7004
|
# @option opts [Integer] :page_index Start page to export.
|
5971
7005
|
# @option opts [Integer] :page_count Number of pages to export.
|
5972
7006
|
# @option opts [File] :file A file to be converted.
|
5973
|
-
# @return [
|
7007
|
+
# @return [SaaSposeResponse]
|
5974
7008
|
def put_pdf_in_request_to_tiff(out_path, opts = {})
|
5975
7009
|
data, _status_code, _headers = put_pdf_in_request_to_tiff_with_http_info(out_path, opts)
|
5976
7010
|
return data
|
@@ -5996,7 +7030,7 @@ module AsposePdfCloud
|
|
5996
7030
|
# @option opts [Integer] :page_index Start page to export.
|
5997
7031
|
# @option opts [Integer] :page_count Number of pages to export.
|
5998
7032
|
# @option opts [File] :file A file to be converted.
|
5999
|
-
# @return [Array<(
|
7033
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
6000
7034
|
def put_pdf_in_request_to_tiff_with_http_info(out_path, opts = {})
|
6001
7035
|
if @api_client.config.debugging
|
6002
7036
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_tiff ..."
|
@@ -6051,7 +7085,7 @@ module AsposePdfCloud
|
|
6051
7085
|
:form_params => form_params,
|
6052
7086
|
:body => post_body,
|
6053
7087
|
:auth_names => auth_names,
|
6054
|
-
:return_type => '
|
7088
|
+
:return_type => 'SaaSposeResponse')
|
6055
7089
|
if @api_client.config.debugging
|
6056
7090
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6057
7091
|
end
|
@@ -6067,7 +7101,7 @@ module AsposePdfCloud
|
|
6067
7101
|
# @option opts [Float] :scale_factor Scale factor
|
6068
7102
|
# @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
|
6069
7103
|
# @option opts [File] :file A file to be converted.
|
6070
|
-
# @return [
|
7104
|
+
# @return [SaaSposeResponse]
|
6071
7105
|
def put_pdf_in_request_to_xls(out_path, opts = {})
|
6072
7106
|
data, _status_code, _headers = put_pdf_in_request_to_xls_with_http_info(out_path, opts)
|
6073
7107
|
return data
|
@@ -6082,7 +7116,7 @@ module AsposePdfCloud
|
|
6082
7116
|
# @option opts [Float] :scale_factor Scale factor
|
6083
7117
|
# @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
|
6084
7118
|
# @option opts [File] :file A file to be converted.
|
6085
|
-
# @return [Array<(
|
7119
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
6086
7120
|
def put_pdf_in_request_to_xls_with_http_info(out_path, opts = {})
|
6087
7121
|
if @api_client.config.debugging
|
6088
7122
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_xls ..."
|
@@ -6126,7 +7160,7 @@ module AsposePdfCloud
|
|
6126
7160
|
:form_params => form_params,
|
6127
7161
|
:body => post_body,
|
6128
7162
|
:auth_names => auth_names,
|
6129
|
-
:return_type => '
|
7163
|
+
:return_type => 'SaaSposeResponse')
|
6130
7164
|
if @api_client.config.debugging
|
6131
7165
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_xls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6132
7166
|
end
|
@@ -6138,7 +7172,7 @@ module AsposePdfCloud
|
|
6138
7172
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.xml)
|
6139
7173
|
# @param [Hash] opts the optional parameters
|
6140
7174
|
# @option opts [File] :file A file to be converted.
|
6141
|
-
# @return [
|
7175
|
+
# @return [SaaSposeResponse]
|
6142
7176
|
def put_pdf_in_request_to_xml(out_path, opts = {})
|
6143
7177
|
data, _status_code, _headers = put_pdf_in_request_to_xml_with_http_info(out_path, opts)
|
6144
7178
|
return data
|
@@ -6149,7 +7183,7 @@ module AsposePdfCloud
|
|
6149
7183
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.xml)
|
6150
7184
|
# @param [Hash] opts the optional parameters
|
6151
7185
|
# @option opts [File] :file A file to be converted.
|
6152
|
-
# @return [Array<(
|
7186
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
6153
7187
|
def put_pdf_in_request_to_xml_with_http_info(out_path, opts = {})
|
6154
7188
|
if @api_client.config.debugging
|
6155
7189
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_xml ..."
|
@@ -6189,7 +7223,7 @@ module AsposePdfCloud
|
|
6189
7223
|
:form_params => form_params,
|
6190
7224
|
:body => post_body,
|
6191
7225
|
:auth_names => auth_names,
|
6192
|
-
:return_type => '
|
7226
|
+
:return_type => 'SaaSposeResponse')
|
6193
7227
|
if @api_client.config.debugging
|
6194
7228
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_xml\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6195
7229
|
end
|
@@ -6201,7 +7235,7 @@ module AsposePdfCloud
|
|
6201
7235
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.xps)
|
6202
7236
|
# @param [Hash] opts the optional parameters
|
6203
7237
|
# @option opts [File] :file A file to be converted.
|
6204
|
-
# @return [
|
7238
|
+
# @return [SaaSposeResponse]
|
6205
7239
|
def put_pdf_in_request_to_xps(out_path, opts = {})
|
6206
7240
|
data, _status_code, _headers = put_pdf_in_request_to_xps_with_http_info(out_path, opts)
|
6207
7241
|
return data
|
@@ -6212,7 +7246,7 @@ module AsposePdfCloud
|
|
6212
7246
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.xps)
|
6213
7247
|
# @param [Hash] opts the optional parameters
|
6214
7248
|
# @option opts [File] :file A file to be converted.
|
6215
|
-
# @return [Array<(
|
7249
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
6216
7250
|
def put_pdf_in_request_to_xps_with_http_info(out_path, opts = {})
|
6217
7251
|
if @api_client.config.debugging
|
6218
7252
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_xps ..."
|
@@ -6252,7 +7286,7 @@ module AsposePdfCloud
|
|
6252
7286
|
:form_params => form_params,
|
6253
7287
|
:body => post_body,
|
6254
7288
|
:auth_names => auth_names,
|
6255
|
-
:return_type => '
|
7289
|
+
:return_type => 'SaaSposeResponse')
|
6256
7290
|
if @api_client.config.debugging
|
6257
7291
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_xps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6258
7292
|
end
|
@@ -6273,7 +7307,7 @@ module AsposePdfCloud
|
|
6273
7307
|
# @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
|
6274
7308
|
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
6275
7309
|
# @option opts [String] :folder The document folder.
|
6276
|
-
# @return [
|
7310
|
+
# @return [SaaSposeResponse]
|
6277
7311
|
def put_pdf_in_storage_to_doc(name, out_path, opts = {})
|
6278
7312
|
data, _status_code, _headers = put_pdf_in_storage_to_doc_with_http_info(name, out_path, opts)
|
6279
7313
|
return data
|
@@ -6293,7 +7327,7 @@ module AsposePdfCloud
|
|
6293
7327
|
# @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
|
6294
7328
|
# @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
|
6295
7329
|
# @option opts [String] :folder The document folder.
|
6296
|
-
# @return [Array<(
|
7330
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
6297
7331
|
def put_pdf_in_storage_to_doc_with_http_info(name, out_path, opts = {})
|
6298
7332
|
if @api_client.config.debugging
|
6299
7333
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_doc ..."
|
@@ -6344,7 +7378,7 @@ module AsposePdfCloud
|
|
6344
7378
|
:form_params => form_params,
|
6345
7379
|
:body => post_body,
|
6346
7380
|
:auth_names => auth_names,
|
6347
|
-
:return_type => '
|
7381
|
+
:return_type => 'SaaSposeResponse')
|
6348
7382
|
if @api_client.config.debugging
|
6349
7383
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_doc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6350
7384
|
end
|
@@ -6356,9 +7390,9 @@ module AsposePdfCloud
|
|
6356
7390
|
# @param name The document name.
|
6357
7391
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.epub)
|
6358
7392
|
# @param [Hash] opts the optional parameters
|
6359
|
-
# @option opts [String] :content_recognition_mode
|
7393
|
+
# @option opts [String] :content_recognition_mode Рroperty tunes conversion for this or that desirable method of recognition of content.
|
6360
7394
|
# @option opts [String] :folder The document folder.
|
6361
|
-
# @return [
|
7395
|
+
# @return [SaaSposeResponse]
|
6362
7396
|
def put_pdf_in_storage_to_epub(name, out_path, opts = {})
|
6363
7397
|
data, _status_code, _headers = put_pdf_in_storage_to_epub_with_http_info(name, out_path, opts)
|
6364
7398
|
return data
|
@@ -6369,9 +7403,9 @@ module AsposePdfCloud
|
|
6369
7403
|
# @param name The document name.
|
6370
7404
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.epub)
|
6371
7405
|
# @param [Hash] opts the optional parameters
|
6372
|
-
# @option opts [String] :content_recognition_mode
|
7406
|
+
# @option opts [String] :content_recognition_mode Рroperty tunes conversion for this or that desirable method of recognition of content.
|
6373
7407
|
# @option opts [String] :folder The document folder.
|
6374
|
-
# @return [Array<(
|
7408
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
6375
7409
|
def put_pdf_in_storage_to_epub_with_http_info(name, out_path, opts = {})
|
6376
7410
|
if @api_client.config.debugging
|
6377
7411
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_epub ..."
|
@@ -6415,7 +7449,7 @@ module AsposePdfCloud
|
|
6415
7449
|
:form_params => form_params,
|
6416
7450
|
:body => post_body,
|
6417
7451
|
:auth_names => auth_names,
|
6418
|
-
:return_type => '
|
7452
|
+
:return_type => 'SaaSposeResponse')
|
6419
7453
|
if @api_client.config.debugging
|
6420
7454
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_epub\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6421
7455
|
end
|
@@ -6431,7 +7465,7 @@ module AsposePdfCloud
|
|
6431
7465
|
# @option opts [BOOLEAN] :compress_svg_graphics_if_any The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving.
|
6432
7466
|
# @option opts [BOOLEAN] :convert_marked_content_to_layers If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with \"data-pdflayer\" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content.
|
6433
7467
|
# @option opts [String] :default_font_name Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used.
|
6434
|
-
# @option opts [
|
7468
|
+
# @option opts [String] :document_type Result document type.
|
6435
7469
|
# @option opts [BOOLEAN] :fixed_layout The value indicating whether that HTML is created as fixed layout.
|
6436
7470
|
# @option opts [Integer] :image_resolution Resolution for image rendering.
|
6437
7471
|
# @option opts [Integer] :minimal_line_width This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers.
|
@@ -6456,7 +7490,7 @@ module AsposePdfCloud
|
|
6456
7490
|
# @option opts [String] :special_folder_for_svg_images The path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML. If parameter is empty or null then SVG files(if any) wil be saved together with other image-files (near to output file) or in special folder for images (if it specified in SpecialImagesFolderIfAny option). It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file.
|
6457
7491
|
# @option opts [BOOLEAN] :try_save_text_underlining_and_strikeouting_in_css PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically.
|
6458
7492
|
# @option opts [String] :folder The document folder.
|
6459
|
-
# @return [
|
7493
|
+
# @return [SaaSposeResponse]
|
6460
7494
|
def put_pdf_in_storage_to_html(name, out_path, opts = {})
|
6461
7495
|
data, _status_code, _headers = put_pdf_in_storage_to_html_with_http_info(name, out_path, opts)
|
6462
7496
|
return data
|
@@ -6471,7 +7505,7 @@ module AsposePdfCloud
|
|
6471
7505
|
# @option opts [BOOLEAN] :compress_svg_graphics_if_any The flag that indicates whether found SVG graphics(if any) will be compressed(zipped) into SVGZ format during saving.
|
6472
7506
|
# @option opts [BOOLEAN] :convert_marked_content_to_layers If attribute ConvertMarkedContentToLayers set to true then an all elements inside a PDF marked content (layer) will be put into an HTML div with \"data-pdflayer\" attribute specifying a layer name. This layer name will be extracted from optional properties of PDF marked content. If this attribute is false (by default) then no any layers will be created from PDF marked content.
|
6473
7507
|
# @option opts [String] :default_font_name Specifies the name of an installed font which is used to substitute any document font that is not embedded and not installed in the system. If null then default substitution font is used.
|
6474
|
-
# @option opts [
|
7508
|
+
# @option opts [String] :document_type Result document type.
|
6475
7509
|
# @option opts [BOOLEAN] :fixed_layout The value indicating whether that HTML is created as fixed layout.
|
6476
7510
|
# @option opts [Integer] :image_resolution Resolution for image rendering.
|
6477
7511
|
# @option opts [Integer] :minimal_line_width This attribute sets minimal width of graphic path line. If thickness of line is less than 1px Adobe Acrobat rounds it to this value. So this attribute can be used to emulate this behavior for HTML browsers.
|
@@ -6496,7 +7530,7 @@ module AsposePdfCloud
|
|
6496
7530
|
# @option opts [String] :special_folder_for_svg_images The path to directory to which must be saved only SVG-images if they are encountered during saving of document as HTML. If parameter is empty or null then SVG files(if any) wil be saved together with other image-files (near to output file) or in special folder for images (if it specified in SpecialImagesFolderIfAny option). It does not affect anything if CustomImageSavingStrategy property was successfully used to process relevant image file.
|
6497
7531
|
# @option opts [BOOLEAN] :try_save_text_underlining_and_strikeouting_in_css PDF itself does not contain underlining markers for texts. It emulated with line situated under text. This option allows converter try guess that this or that line is a text's underlining and put this info into CSS instead of drawing of underlining graphically.
|
6498
7532
|
# @option opts [String] :folder The document folder.
|
6499
|
-
# @return [Array<(
|
7533
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
6500
7534
|
def put_pdf_in_storage_to_html_with_http_info(name, out_path, opts = {})
|
6501
7535
|
if @api_client.config.debugging
|
6502
7536
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_html ..."
|
@@ -6567,7 +7601,7 @@ module AsposePdfCloud
|
|
6567
7601
|
:form_params => form_params,
|
6568
7602
|
:body => post_body,
|
6569
7603
|
:auth_names => auth_names,
|
6570
|
-
:return_type => '
|
7604
|
+
:return_type => 'SaaSposeResponse')
|
6571
7605
|
if @api_client.config.debugging
|
6572
7606
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6573
7607
|
end
|
@@ -6581,7 +7615,7 @@ module AsposePdfCloud
|
|
6581
7615
|
# @param [Hash] opts the optional parameters
|
6582
7616
|
# @option opts [Integer] :pages_count Pages count.
|
6583
7617
|
# @option opts [String] :folder The document folder.
|
6584
|
-
# @return [
|
7618
|
+
# @return [SaaSposeResponse]
|
6585
7619
|
def put_pdf_in_storage_to_la_te_x(name, out_path, opts = {})
|
6586
7620
|
data, _status_code, _headers = put_pdf_in_storage_to_la_te_x_with_http_info(name, out_path, opts)
|
6587
7621
|
return data
|
@@ -6594,7 +7628,7 @@ module AsposePdfCloud
|
|
6594
7628
|
# @param [Hash] opts the optional parameters
|
6595
7629
|
# @option opts [Integer] :pages_count Pages count.
|
6596
7630
|
# @option opts [String] :folder The document folder.
|
6597
|
-
# @return [Array<(
|
7631
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
6598
7632
|
def put_pdf_in_storage_to_la_te_x_with_http_info(name, out_path, opts = {})
|
6599
7633
|
if @api_client.config.debugging
|
6600
7634
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_la_te_x ..."
|
@@ -6638,7 +7672,7 @@ module AsposePdfCloud
|
|
6638
7672
|
:form_params => form_params,
|
6639
7673
|
:body => post_body,
|
6640
7674
|
:auth_names => auth_names,
|
6641
|
-
:return_type => '
|
7675
|
+
:return_type => 'SaaSposeResponse')
|
6642
7676
|
if @api_client.config.debugging
|
6643
7677
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_la_te_x\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6644
7678
|
end
|
@@ -6651,7 +7685,7 @@ module AsposePdfCloud
|
|
6651
7685
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.mobixml)
|
6652
7686
|
# @param [Hash] opts the optional parameters
|
6653
7687
|
# @option opts [String] :folder The document folder.
|
6654
|
-
# @return [
|
7688
|
+
# @return [SaaSposeResponse]
|
6655
7689
|
def put_pdf_in_storage_to_mobi_xml(name, out_path, opts = {})
|
6656
7690
|
data, _status_code, _headers = put_pdf_in_storage_to_mobi_xml_with_http_info(name, out_path, opts)
|
6657
7691
|
return data
|
@@ -6663,7 +7697,7 @@ module AsposePdfCloud
|
|
6663
7697
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.mobixml)
|
6664
7698
|
# @param [Hash] opts the optional parameters
|
6665
7699
|
# @option opts [String] :folder The document folder.
|
6666
|
-
# @return [Array<(
|
7700
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
6667
7701
|
def put_pdf_in_storage_to_mobi_xml_with_http_info(name, out_path, opts = {})
|
6668
7702
|
if @api_client.config.debugging
|
6669
7703
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_mobi_xml ..."
|
@@ -6706,7 +7740,7 @@ module AsposePdfCloud
|
|
6706
7740
|
:form_params => form_params,
|
6707
7741
|
:body => post_body,
|
6708
7742
|
:auth_names => auth_names,
|
6709
|
-
:return_type => '
|
7743
|
+
:return_type => 'SaaSposeResponse')
|
6710
7744
|
if @api_client.config.debugging
|
6711
7745
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_mobi_xml\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6712
7746
|
end
|
@@ -6720,7 +7754,7 @@ module AsposePdfCloud
|
|
6720
7754
|
# @param type Type of PdfA format.
|
6721
7755
|
# @param [Hash] opts the optional parameters
|
6722
7756
|
# @option opts [String] :folder The document folder.
|
6723
|
-
# @return [
|
7757
|
+
# @return [SaaSposeResponse]
|
6724
7758
|
def put_pdf_in_storage_to_pdf_a(name, out_path, type, opts = {})
|
6725
7759
|
data, _status_code, _headers = put_pdf_in_storage_to_pdf_a_with_http_info(name, out_path, type, opts)
|
6726
7760
|
return data
|
@@ -6733,7 +7767,7 @@ module AsposePdfCloud
|
|
6733
7767
|
# @param type Type of PdfA format.
|
6734
7768
|
# @param [Hash] opts the optional parameters
|
6735
7769
|
# @option opts [String] :folder The document folder.
|
6736
|
-
# @return [Array<(
|
7770
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
6737
7771
|
def put_pdf_in_storage_to_pdf_a_with_http_info(name, out_path, type, opts = {})
|
6738
7772
|
if @api_client.config.debugging
|
6739
7773
|
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_pdf_a ..."
|
@@ -6781,7 +7815,7 @@ module AsposePdfCloud
|
|
6781
7815
|
:form_params => form_params,
|
6782
7816
|
:body => post_body,
|
6783
7817
|
:auth_names => auth_names,
|
6784
|
-
:return_type => '
|
7818
|
+
:return_type => 'SaaSposeResponse')
|
6785
7819
|
if @api_client.config.debugging
|
6786
7820
|
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_pdf_a\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6787
7821
|
end
|
@@ -6796,7 +7830,7 @@ module AsposePdfCloud
|
|
6796
7830
|
# @option opts [BOOLEAN] :separate_images Separate images.
|
6797
7831
|
# @option opts [BOOLEAN] :slides_as_images Slides as images.
|
6798
7832
|
# @option opts [String] :folder The document folder.
|
6799
|
-
# @return [
|
7833
|
+
# @return [SaaSposeResponse]
|
6800
7834
|
def put_pdf_in_storage_to_pptx(name, out_path, opts = {})
|
6801
7835
|
data, _status_code, _headers = put_pdf_in_storage_to_pptx_with_http_info(name, out_path, opts)
|
6802
7836
|
return data
|
@@ -6807,30 +7841,430 @@ module AsposePdfCloud
|
|
6807
7841
|
# @param name The document name.
|
6808
7842
|
# @param out_path Full resulting filename (ex. /folder1/folder2/result.pptx)
|
6809
7843
|
# @param [Hash] opts the optional parameters
|
6810
|
-
# @option opts [BOOLEAN] :separate_images Separate images.
|
6811
|
-
# @option opts [BOOLEAN] :slides_as_images Slides as images.
|
7844
|
+
# @option opts [BOOLEAN] :separate_images Separate images.
|
7845
|
+
# @option opts [BOOLEAN] :slides_as_images Slides as images.
|
7846
|
+
# @option opts [String] :folder The document folder.
|
7847
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
7848
|
+
def put_pdf_in_storage_to_pptx_with_http_info(name, out_path, opts = {})
|
7849
|
+
if @api_client.config.debugging
|
7850
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_pptx ..."
|
7851
|
+
end
|
7852
|
+
# verify the required parameter 'name' is set
|
7853
|
+
if @api_client.config.client_side_validation && name.nil?
|
7854
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_pptx"
|
7855
|
+
end
|
7856
|
+
# verify the required parameter 'out_path' is set
|
7857
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
7858
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_pptx"
|
7859
|
+
end
|
7860
|
+
# resource path
|
7861
|
+
local_var_path = "/pdf/{name}/convert/pptx".sub('{' + 'name' + '}', name.to_s)
|
7862
|
+
|
7863
|
+
# query parameters
|
7864
|
+
query_params = {}
|
7865
|
+
query_params[:'outPath'] = out_path
|
7866
|
+
query_params[:'separateImages'] = opts[:'separate_images'] if !opts[:'separate_images'].nil?
|
7867
|
+
query_params[:'slidesAsImages'] = opts[:'slides_as_images'] if !opts[:'slides_as_images'].nil?
|
7868
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
7869
|
+
|
7870
|
+
# header parameters
|
7871
|
+
header_params = {}
|
7872
|
+
# HTTP header 'Accept' (if needed)
|
7873
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
7874
|
+
# HTTP header 'Content-Type'
|
7875
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
7876
|
+
|
7877
|
+
# form parameters
|
7878
|
+
form_params = {}
|
7879
|
+
# Fix header in file
|
7880
|
+
post_body = nil
|
7881
|
+
|
7882
|
+
# http body (model)
|
7883
|
+
# Fix header in file
|
7884
|
+
# post_body = nil
|
7885
|
+
auth_names = []
|
7886
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
7887
|
+
:header_params => header_params,
|
7888
|
+
:query_params => query_params,
|
7889
|
+
:form_params => form_params,
|
7890
|
+
:body => post_body,
|
7891
|
+
:auth_names => auth_names,
|
7892
|
+
:return_type => 'SaaSposeResponse')
|
7893
|
+
if @api_client.config.debugging
|
7894
|
+
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7895
|
+
end
|
7896
|
+
return data, status_code, headers
|
7897
|
+
end
|
7898
|
+
|
7899
|
+
# Converts PDF document (located on storage) to SVG format and uploads resulting file to storage
|
7900
|
+
#
|
7901
|
+
# @param name The document name.
|
7902
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.svg)
|
7903
|
+
# @param [Hash] opts the optional parameters
|
7904
|
+
# @option opts [BOOLEAN] :compress_output_to_zip_archive Specifies whether output will be created as one zip-archive.
|
7905
|
+
# @option opts [String] :folder The document folder.
|
7906
|
+
# @return [SaaSposeResponse]
|
7907
|
+
def put_pdf_in_storage_to_svg(name, out_path, opts = {})
|
7908
|
+
data, _status_code, _headers = put_pdf_in_storage_to_svg_with_http_info(name, out_path, opts)
|
7909
|
+
return data
|
7910
|
+
end
|
7911
|
+
|
7912
|
+
# Converts PDF document (located on storage) to SVG format and uploads resulting file to storage
|
7913
|
+
#
|
7914
|
+
# @param name The document name.
|
7915
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.svg)
|
7916
|
+
# @param [Hash] opts the optional parameters
|
7917
|
+
# @option opts [BOOLEAN] :compress_output_to_zip_archive Specifies whether output will be created as one zip-archive.
|
7918
|
+
# @option opts [String] :folder The document folder.
|
7919
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
7920
|
+
def put_pdf_in_storage_to_svg_with_http_info(name, out_path, opts = {})
|
7921
|
+
if @api_client.config.debugging
|
7922
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_svg ..."
|
7923
|
+
end
|
7924
|
+
# verify the required parameter 'name' is set
|
7925
|
+
if @api_client.config.client_side_validation && name.nil?
|
7926
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_svg"
|
7927
|
+
end
|
7928
|
+
# verify the required parameter 'out_path' is set
|
7929
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
7930
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_svg"
|
7931
|
+
end
|
7932
|
+
# resource path
|
7933
|
+
local_var_path = "/pdf/{name}/convert/svg".sub('{' + 'name' + '}', name.to_s)
|
7934
|
+
|
7935
|
+
# query parameters
|
7936
|
+
query_params = {}
|
7937
|
+
query_params[:'outPath'] = out_path
|
7938
|
+
query_params[:'compressOutputToZipArchive'] = opts[:'compress_output_to_zip_archive'] if !opts[:'compress_output_to_zip_archive'].nil?
|
7939
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
7940
|
+
|
7941
|
+
# header parameters
|
7942
|
+
header_params = {}
|
7943
|
+
# HTTP header 'Accept' (if needed)
|
7944
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
7945
|
+
# HTTP header 'Content-Type'
|
7946
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
7947
|
+
|
7948
|
+
# form parameters
|
7949
|
+
form_params = {}
|
7950
|
+
# Fix header in file
|
7951
|
+
post_body = nil
|
7952
|
+
|
7953
|
+
# http body (model)
|
7954
|
+
# Fix header in file
|
7955
|
+
# post_body = nil
|
7956
|
+
auth_names = []
|
7957
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
7958
|
+
:header_params => header_params,
|
7959
|
+
:query_params => query_params,
|
7960
|
+
:form_params => form_params,
|
7961
|
+
:body => post_body,
|
7962
|
+
:auth_names => auth_names,
|
7963
|
+
:return_type => 'SaaSposeResponse')
|
7964
|
+
if @api_client.config.debugging
|
7965
|
+
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_svg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7966
|
+
end
|
7967
|
+
return data, status_code, headers
|
7968
|
+
end
|
7969
|
+
|
7970
|
+
# Converts PDF document (located on storage) to TIFF format and uploads resulting file to storage
|
7971
|
+
#
|
7972
|
+
# @param name The document name.
|
7973
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.tiff)
|
7974
|
+
# @param [Hash] opts the optional parameters
|
7975
|
+
# @option opts [Float] :brightness Image brightness.
|
7976
|
+
# @option opts [String] :compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
|
7977
|
+
# @option opts [String] :color_depth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
|
7978
|
+
# @option opts [Integer] :left_margin Left image margin.
|
7979
|
+
# @option opts [Integer] :right_margin Right image margin.
|
7980
|
+
# @option opts [Integer] :top_margin Top image margin.
|
7981
|
+
# @option opts [Integer] :bottom_margin Bottom image margin.
|
7982
|
+
# @option opts [String] :orientation Image orientation. Possible values are: None, Landscape, Portait.
|
7983
|
+
# @option opts [BOOLEAN] :skip_blank_pages Skip blank pages flag.
|
7984
|
+
# @option opts [Integer] :width Image width.
|
7985
|
+
# @option opts [Integer] :height Image height.
|
7986
|
+
# @option opts [Integer] :x_resolution Horizontal resolution.
|
7987
|
+
# @option opts [Integer] :y_resolution Vertical resolution.
|
7988
|
+
# @option opts [Integer] :page_index Start page to export.
|
7989
|
+
# @option opts [Integer] :page_count Number of pages to export.
|
7990
|
+
# @option opts [String] :folder The document folder.
|
7991
|
+
# @return [SaaSposeResponse]
|
7992
|
+
def put_pdf_in_storage_to_tiff(name, out_path, opts = {})
|
7993
|
+
data, _status_code, _headers = put_pdf_in_storage_to_tiff_with_http_info(name, out_path, opts)
|
7994
|
+
return data
|
7995
|
+
end
|
7996
|
+
|
7997
|
+
# Converts PDF document (located on storage) to TIFF format and uploads resulting file to storage
|
7998
|
+
#
|
7999
|
+
# @param name The document name.
|
8000
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.tiff)
|
8001
|
+
# @param [Hash] opts the optional parameters
|
8002
|
+
# @option opts [Float] :brightness Image brightness.
|
8003
|
+
# @option opts [String] :compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
|
8004
|
+
# @option opts [String] :color_depth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
|
8005
|
+
# @option opts [Integer] :left_margin Left image margin.
|
8006
|
+
# @option opts [Integer] :right_margin Right image margin.
|
8007
|
+
# @option opts [Integer] :top_margin Top image margin.
|
8008
|
+
# @option opts [Integer] :bottom_margin Bottom image margin.
|
8009
|
+
# @option opts [String] :orientation Image orientation. Possible values are: None, Landscape, Portait.
|
8010
|
+
# @option opts [BOOLEAN] :skip_blank_pages Skip blank pages flag.
|
8011
|
+
# @option opts [Integer] :width Image width.
|
8012
|
+
# @option opts [Integer] :height Image height.
|
8013
|
+
# @option opts [Integer] :x_resolution Horizontal resolution.
|
8014
|
+
# @option opts [Integer] :y_resolution Vertical resolution.
|
8015
|
+
# @option opts [Integer] :page_index Start page to export.
|
8016
|
+
# @option opts [Integer] :page_count Number of pages to export.
|
8017
|
+
# @option opts [String] :folder The document folder.
|
8018
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
8019
|
+
def put_pdf_in_storage_to_tiff_with_http_info(name, out_path, opts = {})
|
8020
|
+
if @api_client.config.debugging
|
8021
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_tiff ..."
|
8022
|
+
end
|
8023
|
+
# verify the required parameter 'name' is set
|
8024
|
+
if @api_client.config.client_side_validation && name.nil?
|
8025
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_tiff"
|
8026
|
+
end
|
8027
|
+
# verify the required parameter 'out_path' is set
|
8028
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
8029
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_tiff"
|
8030
|
+
end
|
8031
|
+
# resource path
|
8032
|
+
local_var_path = "/pdf/{name}/convert/tiff".sub('{' + 'name' + '}', name.to_s)
|
8033
|
+
|
8034
|
+
# query parameters
|
8035
|
+
query_params = {}
|
8036
|
+
query_params[:'outPath'] = out_path
|
8037
|
+
query_params[:'brightness'] = opts[:'brightness'] if !opts[:'brightness'].nil?
|
8038
|
+
query_params[:'compression'] = opts[:'compression'] if !opts[:'compression'].nil?
|
8039
|
+
query_params[:'colorDepth'] = opts[:'color_depth'] if !opts[:'color_depth'].nil?
|
8040
|
+
query_params[:'leftMargin'] = opts[:'left_margin'] if !opts[:'left_margin'].nil?
|
8041
|
+
query_params[:'rightMargin'] = opts[:'right_margin'] if !opts[:'right_margin'].nil?
|
8042
|
+
query_params[:'topMargin'] = opts[:'top_margin'] if !opts[:'top_margin'].nil?
|
8043
|
+
query_params[:'bottomMargin'] = opts[:'bottom_margin'] if !opts[:'bottom_margin'].nil?
|
8044
|
+
query_params[:'orientation'] = opts[:'orientation'] if !opts[:'orientation'].nil?
|
8045
|
+
query_params[:'skipBlankPages'] = opts[:'skip_blank_pages'] if !opts[:'skip_blank_pages'].nil?
|
8046
|
+
query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
|
8047
|
+
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
8048
|
+
query_params[:'xResolution'] = opts[:'x_resolution'] if !opts[:'x_resolution'].nil?
|
8049
|
+
query_params[:'yResolution'] = opts[:'y_resolution'] if !opts[:'y_resolution'].nil?
|
8050
|
+
query_params[:'pageIndex'] = opts[:'page_index'] if !opts[:'page_index'].nil?
|
8051
|
+
query_params[:'pageCount'] = opts[:'page_count'] if !opts[:'page_count'].nil?
|
8052
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8053
|
+
|
8054
|
+
# header parameters
|
8055
|
+
header_params = {}
|
8056
|
+
# HTTP header 'Accept' (if needed)
|
8057
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
8058
|
+
# HTTP header 'Content-Type'
|
8059
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
8060
|
+
|
8061
|
+
# form parameters
|
8062
|
+
form_params = {}
|
8063
|
+
# Fix header in file
|
8064
|
+
post_body = nil
|
8065
|
+
|
8066
|
+
# http body (model)
|
8067
|
+
# Fix header in file
|
8068
|
+
# post_body = nil
|
8069
|
+
auth_names = []
|
8070
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
8071
|
+
:header_params => header_params,
|
8072
|
+
:query_params => query_params,
|
8073
|
+
:form_params => form_params,
|
8074
|
+
:body => post_body,
|
8075
|
+
:auth_names => auth_names,
|
8076
|
+
:return_type => 'SaaSposeResponse')
|
8077
|
+
if @api_client.config.debugging
|
8078
|
+
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
8079
|
+
end
|
8080
|
+
return data, status_code, headers
|
8081
|
+
end
|
8082
|
+
|
8083
|
+
# Converts PDF document (located on storage) to XLS format and uploads resulting file to storage
|
8084
|
+
#
|
8085
|
+
# @param name The document name.
|
8086
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.xls)
|
8087
|
+
# @param [Hash] opts the optional parameters
|
8088
|
+
# @option opts [BOOLEAN] :insert_blank_column_at_first Insert blank column at first
|
8089
|
+
# @option opts [BOOLEAN] :minimize_the_number_of_worksheets Minimize the number of worksheets
|
8090
|
+
# @option opts [Float] :scale_factor Scale factor
|
8091
|
+
# @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
|
8092
|
+
# @option opts [String] :folder The document folder.
|
8093
|
+
# @return [SaaSposeResponse]
|
8094
|
+
def put_pdf_in_storage_to_xls(name, out_path, opts = {})
|
8095
|
+
data, _status_code, _headers = put_pdf_in_storage_to_xls_with_http_info(name, out_path, opts)
|
8096
|
+
return data
|
8097
|
+
end
|
8098
|
+
|
8099
|
+
# Converts PDF document (located on storage) to XLS format and uploads resulting file to storage
|
8100
|
+
#
|
8101
|
+
# @param name The document name.
|
8102
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.xls)
|
8103
|
+
# @param [Hash] opts the optional parameters
|
8104
|
+
# @option opts [BOOLEAN] :insert_blank_column_at_first Insert blank column at first
|
8105
|
+
# @option opts [BOOLEAN] :minimize_the_number_of_worksheets Minimize the number of worksheets
|
8106
|
+
# @option opts [Float] :scale_factor Scale factor
|
8107
|
+
# @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
|
8108
|
+
# @option opts [String] :folder The document folder.
|
8109
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
8110
|
+
def put_pdf_in_storage_to_xls_with_http_info(name, out_path, opts = {})
|
8111
|
+
if @api_client.config.debugging
|
8112
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_xls ..."
|
8113
|
+
end
|
8114
|
+
# verify the required parameter 'name' is set
|
8115
|
+
if @api_client.config.client_side_validation && name.nil?
|
8116
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_xls"
|
8117
|
+
end
|
8118
|
+
# verify the required parameter 'out_path' is set
|
8119
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
8120
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_xls"
|
8121
|
+
end
|
8122
|
+
# resource path
|
8123
|
+
local_var_path = "/pdf/{name}/convert/xls".sub('{' + 'name' + '}', name.to_s)
|
8124
|
+
|
8125
|
+
# query parameters
|
8126
|
+
query_params = {}
|
8127
|
+
query_params[:'outPath'] = out_path
|
8128
|
+
query_params[:'insertBlankColumnAtFirst'] = opts[:'insert_blank_column_at_first'] if !opts[:'insert_blank_column_at_first'].nil?
|
8129
|
+
query_params[:'minimizeTheNumberOfWorksheets'] = opts[:'minimize_the_number_of_worksheets'] if !opts[:'minimize_the_number_of_worksheets'].nil?
|
8130
|
+
query_params[:'scaleFactor'] = opts[:'scale_factor'] if !opts[:'scale_factor'].nil?
|
8131
|
+
query_params[:'uniformWorksheets'] = opts[:'uniform_worksheets'] if !opts[:'uniform_worksheets'].nil?
|
8132
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8133
|
+
|
8134
|
+
# header parameters
|
8135
|
+
header_params = {}
|
8136
|
+
# HTTP header 'Accept' (if needed)
|
8137
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
8138
|
+
# HTTP header 'Content-Type'
|
8139
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
8140
|
+
|
8141
|
+
# form parameters
|
8142
|
+
form_params = {}
|
8143
|
+
# Fix header in file
|
8144
|
+
post_body = nil
|
8145
|
+
|
8146
|
+
# http body (model)
|
8147
|
+
# Fix header in file
|
8148
|
+
# post_body = nil
|
8149
|
+
auth_names = []
|
8150
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
8151
|
+
:header_params => header_params,
|
8152
|
+
:query_params => query_params,
|
8153
|
+
:form_params => form_params,
|
8154
|
+
:body => post_body,
|
8155
|
+
:auth_names => auth_names,
|
8156
|
+
:return_type => 'SaaSposeResponse')
|
8157
|
+
if @api_client.config.debugging
|
8158
|
+
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_xls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
8159
|
+
end
|
8160
|
+
return data, status_code, headers
|
8161
|
+
end
|
8162
|
+
|
8163
|
+
# Converts PDF document (located on storage) to XML format and uploads resulting file to storage
|
8164
|
+
#
|
8165
|
+
# @param name The document name.
|
8166
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.xml)
|
8167
|
+
# @param [Hash] opts the optional parameters
|
8168
|
+
# @option opts [String] :folder The document folder.
|
8169
|
+
# @return [SaaSposeResponse]
|
8170
|
+
def put_pdf_in_storage_to_xml(name, out_path, opts = {})
|
8171
|
+
data, _status_code, _headers = put_pdf_in_storage_to_xml_with_http_info(name, out_path, opts)
|
8172
|
+
return data
|
8173
|
+
end
|
8174
|
+
|
8175
|
+
# Converts PDF document (located on storage) to XML format and uploads resulting file to storage
|
8176
|
+
#
|
8177
|
+
# @param name The document name.
|
8178
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.xml)
|
8179
|
+
# @param [Hash] opts the optional parameters
|
8180
|
+
# @option opts [String] :folder The document folder.
|
8181
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
8182
|
+
def put_pdf_in_storage_to_xml_with_http_info(name, out_path, opts = {})
|
8183
|
+
if @api_client.config.debugging
|
8184
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_xml ..."
|
8185
|
+
end
|
8186
|
+
# verify the required parameter 'name' is set
|
8187
|
+
if @api_client.config.client_side_validation && name.nil?
|
8188
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_xml"
|
8189
|
+
end
|
8190
|
+
# verify the required parameter 'out_path' is set
|
8191
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
8192
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_xml"
|
8193
|
+
end
|
8194
|
+
# resource path
|
8195
|
+
local_var_path = "/pdf/{name}/convert/xml".sub('{' + 'name' + '}', name.to_s)
|
8196
|
+
|
8197
|
+
# query parameters
|
8198
|
+
query_params = {}
|
8199
|
+
query_params[:'outPath'] = out_path
|
8200
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8201
|
+
|
8202
|
+
# header parameters
|
8203
|
+
header_params = {}
|
8204
|
+
# HTTP header 'Accept' (if needed)
|
8205
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
8206
|
+
# HTTP header 'Content-Type'
|
8207
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
8208
|
+
|
8209
|
+
# form parameters
|
8210
|
+
form_params = {}
|
8211
|
+
# Fix header in file
|
8212
|
+
post_body = nil
|
8213
|
+
|
8214
|
+
# http body (model)
|
8215
|
+
# Fix header in file
|
8216
|
+
# post_body = nil
|
8217
|
+
auth_names = []
|
8218
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
8219
|
+
:header_params => header_params,
|
8220
|
+
:query_params => query_params,
|
8221
|
+
:form_params => form_params,
|
8222
|
+
:body => post_body,
|
8223
|
+
:auth_names => auth_names,
|
8224
|
+
:return_type => 'SaaSposeResponse')
|
8225
|
+
if @api_client.config.debugging
|
8226
|
+
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_xml\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
8227
|
+
end
|
8228
|
+
return data, status_code, headers
|
8229
|
+
end
|
8230
|
+
|
8231
|
+
# Converts PDF document (located on storage) to XPS format and uploads resulting file to storage
|
8232
|
+
#
|
8233
|
+
# @param name The document name.
|
8234
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.xps)
|
8235
|
+
# @param [Hash] opts the optional parameters
|
8236
|
+
# @option opts [String] :folder The document folder.
|
8237
|
+
# @return [SaaSposeResponse]
|
8238
|
+
def put_pdf_in_storage_to_xps(name, out_path, opts = {})
|
8239
|
+
data, _status_code, _headers = put_pdf_in_storage_to_xps_with_http_info(name, out_path, opts)
|
8240
|
+
return data
|
8241
|
+
end
|
8242
|
+
|
8243
|
+
# Converts PDF document (located on storage) to XPS format and uploads resulting file to storage
|
8244
|
+
#
|
8245
|
+
# @param name The document name.
|
8246
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.xps)
|
8247
|
+
# @param [Hash] opts the optional parameters
|
6812
8248
|
# @option opts [String] :folder The document folder.
|
6813
|
-
# @return [Array<(
|
6814
|
-
def
|
8249
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
8250
|
+
def put_pdf_in_storage_to_xps_with_http_info(name, out_path, opts = {})
|
6815
8251
|
if @api_client.config.debugging
|
6816
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
8252
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_xps ..."
|
6817
8253
|
end
|
6818
8254
|
# verify the required parameter 'name' is set
|
6819
8255
|
if @api_client.config.client_side_validation && name.nil?
|
6820
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
8256
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_xps"
|
6821
8257
|
end
|
6822
8258
|
# verify the required parameter 'out_path' is set
|
6823
8259
|
if @api_client.config.client_side_validation && out_path.nil?
|
6824
|
-
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.
|
8260
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_xps"
|
6825
8261
|
end
|
6826
8262
|
# resource path
|
6827
|
-
local_var_path = "/pdf/{name}/convert/
|
8263
|
+
local_var_path = "/pdf/{name}/convert/xps".sub('{' + 'name' + '}', name.to_s)
|
6828
8264
|
|
6829
8265
|
# query parameters
|
6830
8266
|
query_params = {}
|
6831
8267
|
query_params[:'outPath'] = out_path
|
6832
|
-
query_params[:'separateImages'] = opts[:'separate_images'] if !opts[:'separate_images'].nil?
|
6833
|
-
query_params[:'slidesAsImages'] = opts[:'slides_as_images'] if !opts[:'slides_as_images'].nil?
|
6834
8268
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
6835
8269
|
|
6836
8270
|
# header parameters
|
@@ -6855,53 +8289,45 @@ module AsposePdfCloud
|
|
6855
8289
|
:form_params => form_params,
|
6856
8290
|
:body => post_body,
|
6857
8291
|
:auth_names => auth_names,
|
6858
|
-
:return_type => '
|
8292
|
+
:return_type => 'SaaSposeResponse')
|
6859
8293
|
if @api_client.config.debugging
|
6860
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
8294
|
+
@api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_xps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6861
8295
|
end
|
6862
8296
|
return data, status_code, headers
|
6863
8297
|
end
|
6864
8298
|
|
6865
|
-
#
|
8299
|
+
# Update privilege document.
|
6866
8300
|
#
|
6867
8301
|
# @param name The document name.
|
6868
|
-
# @param out_path Full resulting filename (ex. /folder1/folder2/result.svg)
|
6869
8302
|
# @param [Hash] opts the optional parameters
|
6870
|
-
# @option opts [
|
8303
|
+
# @option opts [DocumentPrivilege] :privileges Document privileges.
|
6871
8304
|
# @option opts [String] :folder The document folder.
|
6872
|
-
# @return [
|
6873
|
-
def
|
6874
|
-
data, _status_code, _headers =
|
8305
|
+
# @return [SaaSposeResponse]
|
8306
|
+
def put_privileges(name, opts = {})
|
8307
|
+
data, _status_code, _headers = put_privileges_with_http_info(name, opts)
|
6875
8308
|
return data
|
6876
8309
|
end
|
6877
8310
|
|
6878
|
-
#
|
8311
|
+
# Update privilege document.
|
6879
8312
|
#
|
6880
8313
|
# @param name The document name.
|
6881
|
-
# @param out_path Full resulting filename (ex. /folder1/folder2/result.svg)
|
6882
8314
|
# @param [Hash] opts the optional parameters
|
6883
|
-
# @option opts [
|
8315
|
+
# @option opts [DocumentPrivilege] :privileges Document privileges.
|
6884
8316
|
# @option opts [String] :folder The document folder.
|
6885
|
-
# @return [Array<(
|
6886
|
-
def
|
8317
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
8318
|
+
def put_privileges_with_http_info(name, opts = {})
|
6887
8319
|
if @api_client.config.debugging
|
6888
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
8320
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_privileges ..."
|
6889
8321
|
end
|
6890
8322
|
# verify the required parameter 'name' is set
|
6891
8323
|
if @api_client.config.client_side_validation && name.nil?
|
6892
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
6893
|
-
end
|
6894
|
-
# verify the required parameter 'out_path' is set
|
6895
|
-
if @api_client.config.client_side_validation && out_path.nil?
|
6896
|
-
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_svg"
|
8324
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_privileges"
|
6897
8325
|
end
|
6898
8326
|
# resource path
|
6899
|
-
local_var_path = "/pdf/{name}/
|
8327
|
+
local_var_path = "/pdf/{name}/privileges".sub('{' + 'name' + '}', name.to_s)
|
6900
8328
|
|
6901
8329
|
# query parameters
|
6902
8330
|
query_params = {}
|
6903
|
-
query_params[:'outPath'] = out_path
|
6904
|
-
query_params[:'compressOutputToZipArchive'] = opts[:'compress_output_to_zip_archive'] if !opts[:'compress_output_to_zip_archive'].nil?
|
6905
8331
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
6906
8332
|
|
6907
8333
|
# header parameters
|
@@ -6917,8 +8343,7 @@ module AsposePdfCloud
|
|
6917
8343
|
post_body = nil
|
6918
8344
|
|
6919
8345
|
# http body (model)
|
6920
|
-
|
6921
|
-
# post_body = nil
|
8346
|
+
post_body = @api_client.object_to_http_body(opts[:'privileges'])
|
6922
8347
|
auth_names = []
|
6923
8348
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
6924
8349
|
:header_params => header_params,
|
@@ -6926,96 +8351,50 @@ module AsposePdfCloud
|
|
6926
8351
|
:form_params => form_params,
|
6927
8352
|
:body => post_body,
|
6928
8353
|
:auth_names => auth_names,
|
6929
|
-
:return_type => '
|
8354
|
+
:return_type => 'SaaSposeResponse')
|
6930
8355
|
if @api_client.config.debugging
|
6931
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
8356
|
+
@api_client.config.logger.debug "API called: PdfApi#put_privileges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
6932
8357
|
end
|
6933
8358
|
return data, status_code, headers
|
6934
8359
|
end
|
6935
8360
|
|
6936
|
-
#
|
8361
|
+
# Create searchable PDF document. Generate OCR layer for images in input PDF document.
|
6937
8362
|
#
|
6938
8363
|
# @param name The document name.
|
6939
|
-
# @param out_path Full resulting filename (ex. /folder1/folder2/result.tiff)
|
6940
8364
|
# @param [Hash] opts the optional parameters
|
6941
|
-
# @option opts [
|
6942
|
-
# @option opts [String] :compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
|
6943
|
-
# @option opts [String] :color_depth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
|
6944
|
-
# @option opts [Integer] :left_margin Left image margin.
|
6945
|
-
# @option opts [Integer] :right_margin Right image margin.
|
6946
|
-
# @option opts [Integer] :top_margin Top image margin.
|
6947
|
-
# @option opts [Integer] :bottom_margin Bottom image margin.
|
6948
|
-
# @option opts [String] :orientation Image orientation. Possible values are: None, Landscape, Portait.
|
6949
|
-
# @option opts [BOOLEAN] :skip_blank_pages Skip blank pages flag.
|
6950
|
-
# @option opts [Integer] :width Image width.
|
6951
|
-
# @option opts [Integer] :height Image height.
|
6952
|
-
# @option opts [Integer] :x_resolution Horizontal resolution.
|
6953
|
-
# @option opts [Integer] :y_resolution Vertical resolution.
|
6954
|
-
# @option opts [Integer] :page_index Start page to export.
|
6955
|
-
# @option opts [Integer] :page_count Number of pages to export.
|
8365
|
+
# @option opts [String] :storage The document storage.
|
6956
8366
|
# @option opts [String] :folder The document folder.
|
6957
|
-
# @
|
6958
|
-
|
6959
|
-
|
8367
|
+
# @option opts [String] :lang language for OCR engine. Possible values: eng, ara, bel, ben, bul, ces, dan, deu, ell, fin, fra, heb, hin, ind, isl, ita, jpn, kor, nld, nor, pol, por, ron, rus, spa, swe, tha, tur, ukr, vie, chi_sim, chi_tra or thier combination e.g. eng,rus
|
8368
|
+
# @return [SaaSposeResponse]
|
8369
|
+
def put_searchable_document(name, opts = {})
|
8370
|
+
data, _status_code, _headers = put_searchable_document_with_http_info(name, opts)
|
6960
8371
|
return data
|
6961
8372
|
end
|
6962
8373
|
|
6963
|
-
#
|
8374
|
+
# Create searchable PDF document. Generate OCR layer for images in input PDF document.
|
6964
8375
|
#
|
6965
8376
|
# @param name The document name.
|
6966
|
-
# @param out_path Full resulting filename (ex. /folder1/folder2/result.tiff)
|
6967
8377
|
# @param [Hash] opts the optional parameters
|
6968
|
-
# @option opts [
|
6969
|
-
# @option opts [String] :compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
|
6970
|
-
# @option opts [String] :color_depth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
|
6971
|
-
# @option opts [Integer] :left_margin Left image margin.
|
6972
|
-
# @option opts [Integer] :right_margin Right image margin.
|
6973
|
-
# @option opts [Integer] :top_margin Top image margin.
|
6974
|
-
# @option opts [Integer] :bottom_margin Bottom image margin.
|
6975
|
-
# @option opts [String] :orientation Image orientation. Possible values are: None, Landscape, Portait.
|
6976
|
-
# @option opts [BOOLEAN] :skip_blank_pages Skip blank pages flag.
|
6977
|
-
# @option opts [Integer] :width Image width.
|
6978
|
-
# @option opts [Integer] :height Image height.
|
6979
|
-
# @option opts [Integer] :x_resolution Horizontal resolution.
|
6980
|
-
# @option opts [Integer] :y_resolution Vertical resolution.
|
6981
|
-
# @option opts [Integer] :page_index Start page to export.
|
6982
|
-
# @option opts [Integer] :page_count Number of pages to export.
|
8378
|
+
# @option opts [String] :storage The document storage.
|
6983
8379
|
# @option opts [String] :folder The document folder.
|
6984
|
-
# @
|
6985
|
-
|
8380
|
+
# @option opts [String] :lang language for OCR engine. Possible values: eng, ara, bel, ben, bul, ces, dan, deu, ell, fin, fra, heb, hin, ind, isl, ita, jpn, kor, nld, nor, pol, por, ron, rus, spa, swe, tha, tur, ukr, vie, chi_sim, chi_tra or thier combination e.g. eng,rus
|
8381
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
8382
|
+
def put_searchable_document_with_http_info(name, opts = {})
|
6986
8383
|
if @api_client.config.debugging
|
6987
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
8384
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_searchable_document ..."
|
6988
8385
|
end
|
6989
8386
|
# verify the required parameter 'name' is set
|
6990
8387
|
if @api_client.config.client_side_validation && name.nil?
|
6991
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
6992
|
-
end
|
6993
|
-
# verify the required parameter 'out_path' is set
|
6994
|
-
if @api_client.config.client_side_validation && out_path.nil?
|
6995
|
-
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_tiff"
|
8388
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_searchable_document"
|
6996
8389
|
end
|
6997
8390
|
# resource path
|
6998
|
-
local_var_path = "/pdf/{name}/
|
8391
|
+
local_var_path = "/pdf/{name}/ocr".sub('{' + 'name' + '}', name.to_s)
|
6999
8392
|
|
7000
8393
|
# query parameters
|
7001
8394
|
query_params = {}
|
7002
|
-
query_params[:'
|
7003
|
-
query_params[:'brightness'] = opts[:'brightness'] if !opts[:'brightness'].nil?
|
7004
|
-
query_params[:'compression'] = opts[:'compression'] if !opts[:'compression'].nil?
|
7005
|
-
query_params[:'colorDepth'] = opts[:'color_depth'] if !opts[:'color_depth'].nil?
|
7006
|
-
query_params[:'leftMargin'] = opts[:'left_margin'] if !opts[:'left_margin'].nil?
|
7007
|
-
query_params[:'rightMargin'] = opts[:'right_margin'] if !opts[:'right_margin'].nil?
|
7008
|
-
query_params[:'topMargin'] = opts[:'top_margin'] if !opts[:'top_margin'].nil?
|
7009
|
-
query_params[:'bottomMargin'] = opts[:'bottom_margin'] if !opts[:'bottom_margin'].nil?
|
7010
|
-
query_params[:'orientation'] = opts[:'orientation'] if !opts[:'orientation'].nil?
|
7011
|
-
query_params[:'skipBlankPages'] = opts[:'skip_blank_pages'] if !opts[:'skip_blank_pages'].nil?
|
7012
|
-
query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
|
7013
|
-
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
7014
|
-
query_params[:'xResolution'] = opts[:'x_resolution'] if !opts[:'x_resolution'].nil?
|
7015
|
-
query_params[:'yResolution'] = opts[:'y_resolution'] if !opts[:'y_resolution'].nil?
|
7016
|
-
query_params[:'pageIndex'] = opts[:'page_index'] if !opts[:'page_index'].nil?
|
7017
|
-
query_params[:'pageCount'] = opts[:'page_count'] if !opts[:'page_count'].nil?
|
8395
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
7018
8396
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8397
|
+
query_params[:'lang'] = opts[:'lang'] if !opts[:'lang'].nil?
|
7019
8398
|
|
7020
8399
|
# header parameters
|
7021
8400
|
header_params = {}
|
@@ -7039,62 +8418,54 @@ module AsposePdfCloud
|
|
7039
8418
|
:form_params => form_params,
|
7040
8419
|
:body => post_body,
|
7041
8420
|
:auth_names => auth_names,
|
7042
|
-
:return_type => '
|
8421
|
+
:return_type => 'SaaSposeResponse')
|
7043
8422
|
if @api_client.config.debugging
|
7044
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
8423
|
+
@api_client.config.logger.debug "API called: PdfApi#put_searchable_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7045
8424
|
end
|
7046
8425
|
return data, status_code, headers
|
7047
8426
|
end
|
7048
8427
|
|
7049
|
-
#
|
8428
|
+
# Add/update document property.
|
7050
8429
|
#
|
7051
|
-
# @param name
|
7052
|
-
# @param
|
8430
|
+
# @param name
|
8431
|
+
# @param property_name
|
7053
8432
|
# @param [Hash] opts the optional parameters
|
7054
|
-
# @option opts [
|
7055
|
-
# @option opts [
|
7056
|
-
# @option opts [
|
7057
|
-
# @
|
7058
|
-
|
7059
|
-
|
7060
|
-
def put_pdf_in_storage_to_xls(name, out_path, opts = {})
|
7061
|
-
data, _status_code, _headers = put_pdf_in_storage_to_xls_with_http_info(name, out_path, opts)
|
8433
|
+
# @option opts [DocumentProperty] :property
|
8434
|
+
# @option opts [String] :storage
|
8435
|
+
# @option opts [String] :folder
|
8436
|
+
# @return [DocumentPropertyResponse]
|
8437
|
+
def put_set_property(name, property_name, opts = {})
|
8438
|
+
data, _status_code, _headers = put_set_property_with_http_info(name, property_name, opts)
|
7062
8439
|
return data
|
7063
8440
|
end
|
7064
8441
|
|
7065
|
-
#
|
8442
|
+
# Add/update document property.
|
7066
8443
|
#
|
7067
|
-
# @param name
|
7068
|
-
# @param
|
8444
|
+
# @param name
|
8445
|
+
# @param property_name
|
7069
8446
|
# @param [Hash] opts the optional parameters
|
7070
|
-
# @option opts [
|
7071
|
-
# @option opts [
|
7072
|
-
# @option opts [
|
7073
|
-
# @
|
7074
|
-
|
7075
|
-
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
7076
|
-
def put_pdf_in_storage_to_xls_with_http_info(name, out_path, opts = {})
|
8447
|
+
# @option opts [DocumentProperty] :property
|
8448
|
+
# @option opts [String] :storage
|
8449
|
+
# @option opts [String] :folder
|
8450
|
+
# @return [Array<(DocumentPropertyResponse, Fixnum, Hash)>] DocumentPropertyResponse data, response status code and response headers
|
8451
|
+
def put_set_property_with_http_info(name, property_name, opts = {})
|
7077
8452
|
if @api_client.config.debugging
|
7078
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
8453
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_set_property ..."
|
7079
8454
|
end
|
7080
8455
|
# verify the required parameter 'name' is set
|
7081
8456
|
if @api_client.config.client_side_validation && name.nil?
|
7082
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
8457
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_set_property"
|
7083
8458
|
end
|
7084
|
-
# verify the required parameter '
|
7085
|
-
if @api_client.config.client_side_validation &&
|
7086
|
-
fail ArgumentError, "Missing the required parameter '
|
8459
|
+
# verify the required parameter 'property_name' is set
|
8460
|
+
if @api_client.config.client_side_validation && property_name.nil?
|
8461
|
+
fail ArgumentError, "Missing the required parameter 'property_name' when calling PdfApi.put_set_property"
|
7087
8462
|
end
|
7088
8463
|
# resource path
|
7089
|
-
local_var_path = "/pdf/{name}/
|
8464
|
+
local_var_path = "/pdf/{name}/documentproperties/{propertyName}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'propertyName' + '}', property_name.to_s)
|
7090
8465
|
|
7091
8466
|
# query parameters
|
7092
8467
|
query_params = {}
|
7093
|
-
query_params[:'
|
7094
|
-
query_params[:'insertBlankColumnAtFirst'] = opts[:'insert_blank_column_at_first'] if !opts[:'insert_blank_column_at_first'].nil?
|
7095
|
-
query_params[:'minimizeTheNumberOfWorksheets'] = opts[:'minimize_the_number_of_worksheets'] if !opts[:'minimize_the_number_of_worksheets'].nil?
|
7096
|
-
query_params[:'scaleFactor'] = opts[:'scale_factor'] if !opts[:'scale_factor'].nil?
|
7097
|
-
query_params[:'uniformWorksheets'] = opts[:'uniform_worksheets'] if !opts[:'uniform_worksheets'].nil?
|
8468
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
7098
8469
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
7099
8470
|
|
7100
8471
|
# header parameters
|
@@ -7110,8 +8481,7 @@ module AsposePdfCloud
|
|
7110
8481
|
post_body = nil
|
7111
8482
|
|
7112
8483
|
# http body (model)
|
7113
|
-
|
7114
|
-
# post_body = nil
|
8484
|
+
post_body = @api_client.object_to_http_body(opts[:'property'])
|
7115
8485
|
auth_names = []
|
7116
8486
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
7117
8487
|
:header_params => header_params,
|
@@ -7119,51 +8489,75 @@ module AsposePdfCloud
|
|
7119
8489
|
:form_params => form_params,
|
7120
8490
|
:body => post_body,
|
7121
8491
|
:auth_names => auth_names,
|
7122
|
-
:return_type => '
|
8492
|
+
:return_type => 'DocumentPropertyResponse')
|
7123
8493
|
if @api_client.config.debugging
|
7124
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
8494
|
+
@api_client.config.logger.debug "API called: PdfApi#put_set_property\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7125
8495
|
end
|
7126
8496
|
return data, status_code, headers
|
7127
8497
|
end
|
7128
8498
|
|
7129
|
-
#
|
8499
|
+
# Convert SVG file (located on storage) to PDF format and upload resulting file to storage.
|
7130
8500
|
#
|
7131
8501
|
# @param name The document name.
|
7132
|
-
# @param
|
7133
|
-
# @param [Hash] opts the optional parameters
|
7134
|
-
# @option opts [
|
7135
|
-
# @
|
7136
|
-
|
7137
|
-
|
8502
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.svg)
|
8503
|
+
# @param [Hash] opts the optional parameters
|
8504
|
+
# @option opts [BOOLEAN] :adjust_page_size Adjust page size
|
8505
|
+
# @option opts [Float] :height Page height
|
8506
|
+
# @option opts [Float] :width Page width
|
8507
|
+
# @option opts [BOOLEAN] :is_landscape Is page landscaped
|
8508
|
+
# @option opts [Float] :margin_left Page margin left
|
8509
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
8510
|
+
# @option opts [Float] :margin_right Page margin right
|
8511
|
+
# @option opts [Float] :margin_top Page margin top
|
8512
|
+
# @option opts [String] :dst_folder The destination document folder.
|
8513
|
+
# @return [SaaSposeResponse]
|
8514
|
+
def put_svg_in_storage_to_pdf(name, src_path, opts = {})
|
8515
|
+
data, _status_code, _headers = put_svg_in_storage_to_pdf_with_http_info(name, src_path, opts)
|
7138
8516
|
return data
|
7139
8517
|
end
|
7140
8518
|
|
7141
|
-
#
|
8519
|
+
# Convert SVG file (located on storage) to PDF format and upload resulting file to storage.
|
7142
8520
|
#
|
7143
8521
|
# @param name The document name.
|
7144
|
-
# @param
|
7145
|
-
# @param [Hash] opts the optional parameters
|
7146
|
-
# @option opts [
|
7147
|
-
# @
|
7148
|
-
|
8522
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.svg)
|
8523
|
+
# @param [Hash] opts the optional parameters
|
8524
|
+
# @option opts [BOOLEAN] :adjust_page_size Adjust page size
|
8525
|
+
# @option opts [Float] :height Page height
|
8526
|
+
# @option opts [Float] :width Page width
|
8527
|
+
# @option opts [BOOLEAN] :is_landscape Is page landscaped
|
8528
|
+
# @option opts [Float] :margin_left Page margin left
|
8529
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
8530
|
+
# @option opts [Float] :margin_right Page margin right
|
8531
|
+
# @option opts [Float] :margin_top Page margin top
|
8532
|
+
# @option opts [String] :dst_folder The destination document folder.
|
8533
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
8534
|
+
def put_svg_in_storage_to_pdf_with_http_info(name, src_path, opts = {})
|
7149
8535
|
if @api_client.config.debugging
|
7150
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
8536
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_svg_in_storage_to_pdf ..."
|
7151
8537
|
end
|
7152
8538
|
# verify the required parameter 'name' is set
|
7153
8539
|
if @api_client.config.client_side_validation && name.nil?
|
7154
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
8540
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_svg_in_storage_to_pdf"
|
7155
8541
|
end
|
7156
|
-
# verify the required parameter '
|
7157
|
-
if @api_client.config.client_side_validation &&
|
7158
|
-
fail ArgumentError, "Missing the required parameter '
|
8542
|
+
# verify the required parameter 'src_path' is set
|
8543
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
8544
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.put_svg_in_storage_to_pdf"
|
7159
8545
|
end
|
7160
8546
|
# resource path
|
7161
|
-
local_var_path = "/pdf/{name}/
|
8547
|
+
local_var_path = "/pdf/{name}/create/svg".sub('{' + 'name' + '}', name.to_s)
|
7162
8548
|
|
7163
8549
|
# query parameters
|
7164
8550
|
query_params = {}
|
7165
|
-
query_params[:'
|
7166
|
-
query_params[:'
|
8551
|
+
query_params[:'srcPath'] = src_path
|
8552
|
+
query_params[:'adjustPageSize'] = opts[:'adjust_page_size'] if !opts[:'adjust_page_size'].nil?
|
8553
|
+
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
8554
|
+
query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
|
8555
|
+
query_params[:'isLandscape'] = opts[:'is_landscape'] if !opts[:'is_landscape'].nil?
|
8556
|
+
query_params[:'marginLeft'] = opts[:'margin_left'] if !opts[:'margin_left'].nil?
|
8557
|
+
query_params[:'marginBottom'] = opts[:'margin_bottom'] if !opts[:'margin_bottom'].nil?
|
8558
|
+
query_params[:'marginRight'] = opts[:'margin_right'] if !opts[:'margin_right'].nil?
|
8559
|
+
query_params[:'marginTop'] = opts[:'margin_top'] if !opts[:'margin_top'].nil?
|
8560
|
+
query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
|
7167
8561
|
|
7168
8562
|
# header parameters
|
7169
8563
|
header_params = {}
|
@@ -7187,50 +8581,54 @@ module AsposePdfCloud
|
|
7187
8581
|
:form_params => form_params,
|
7188
8582
|
:body => post_body,
|
7189
8583
|
:auth_names => auth_names,
|
7190
|
-
:return_type => '
|
8584
|
+
:return_type => 'SaaSposeResponse')
|
7191
8585
|
if @api_client.config.debugging
|
7192
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
8586
|
+
@api_client.config.logger.debug "API called: PdfApi#put_svg_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7193
8587
|
end
|
7194
8588
|
return data, status_code, headers
|
7195
8589
|
end
|
7196
8590
|
|
7197
|
-
#
|
8591
|
+
# Update field.
|
7198
8592
|
#
|
7199
8593
|
# @param name The document name.
|
7200
|
-
# @param
|
8594
|
+
# @param field_name The name of a field to be updated.
|
7201
8595
|
# @param [Hash] opts the optional parameters
|
8596
|
+
# @option opts [Field] :field with the field data.
|
8597
|
+
# @option opts [String] :storage The document storage.
|
7202
8598
|
# @option opts [String] :folder The document folder.
|
7203
|
-
# @return [
|
7204
|
-
def
|
7205
|
-
data, _status_code, _headers =
|
8599
|
+
# @return [FieldResponse]
|
8600
|
+
def put_update_field(name, field_name, opts = {})
|
8601
|
+
data, _status_code, _headers = put_update_field_with_http_info(name, field_name, opts)
|
7206
8602
|
return data
|
7207
8603
|
end
|
7208
8604
|
|
7209
|
-
#
|
8605
|
+
# Update field.
|
7210
8606
|
#
|
7211
8607
|
# @param name The document name.
|
7212
|
-
# @param
|
8608
|
+
# @param field_name The name of a field to be updated.
|
7213
8609
|
# @param [Hash] opts the optional parameters
|
8610
|
+
# @option opts [Field] :field with the field data.
|
8611
|
+
# @option opts [String] :storage The document storage.
|
7214
8612
|
# @option opts [String] :folder The document folder.
|
7215
|
-
# @return [Array<(
|
7216
|
-
def
|
8613
|
+
# @return [Array<(FieldResponse, Fixnum, Hash)>] FieldResponse data, response status code and response headers
|
8614
|
+
def put_update_field_with_http_info(name, field_name, opts = {})
|
7217
8615
|
if @api_client.config.debugging
|
7218
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
8616
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_update_field ..."
|
7219
8617
|
end
|
7220
8618
|
# verify the required parameter 'name' is set
|
7221
8619
|
if @api_client.config.client_side_validation && name.nil?
|
7222
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
8620
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_update_field"
|
7223
8621
|
end
|
7224
|
-
# verify the required parameter '
|
7225
|
-
if @api_client.config.client_side_validation &&
|
7226
|
-
fail ArgumentError, "Missing the required parameter '
|
8622
|
+
# verify the required parameter 'field_name' is set
|
8623
|
+
if @api_client.config.client_side_validation && field_name.nil?
|
8624
|
+
fail ArgumentError, "Missing the required parameter 'field_name' when calling PdfApi.put_update_field"
|
7227
8625
|
end
|
7228
8626
|
# resource path
|
7229
|
-
local_var_path = "/pdf/{name}/
|
8627
|
+
local_var_path = "/pdf/{name}/fields/{fieldName}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'fieldName' + '}', field_name.to_s)
|
7230
8628
|
|
7231
8629
|
# query parameters
|
7232
8630
|
query_params = {}
|
7233
|
-
query_params[:'
|
8631
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
7234
8632
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
7235
8633
|
|
7236
8634
|
# header parameters
|
@@ -7246,8 +8644,7 @@ module AsposePdfCloud
|
|
7246
8644
|
post_body = nil
|
7247
8645
|
|
7248
8646
|
# http body (model)
|
7249
|
-
|
7250
|
-
# post_body = nil
|
8647
|
+
post_body = @api_client.object_to_http_body(opts[:'field'])
|
7251
8648
|
auth_names = []
|
7252
8649
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
7253
8650
|
:header_params => header_params,
|
@@ -7255,45 +8652,48 @@ module AsposePdfCloud
|
|
7255
8652
|
:form_params => form_params,
|
7256
8653
|
:body => post_body,
|
7257
8654
|
:auth_names => auth_names,
|
7258
|
-
:return_type => '
|
8655
|
+
:return_type => 'FieldResponse')
|
7259
8656
|
if @api_client.config.debugging
|
7260
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
8657
|
+
@api_client.config.logger.debug "API called: PdfApi#put_update_field\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7261
8658
|
end
|
7262
8659
|
return data, status_code, headers
|
7263
8660
|
end
|
7264
8661
|
|
7265
|
-
# Update
|
8662
|
+
# Update fields.
|
7266
8663
|
#
|
7267
8664
|
# @param name The document name.
|
7268
8665
|
# @param [Hash] opts the optional parameters
|
7269
|
-
# @option opts [
|
8666
|
+
# @option opts [Fields] :fields with the fields data.
|
8667
|
+
# @option opts [String] :storage The document storage.
|
7270
8668
|
# @option opts [String] :folder The document folder.
|
7271
|
-
# @return [
|
7272
|
-
def
|
7273
|
-
data, _status_code, _headers =
|
8669
|
+
# @return [FieldsResponse]
|
8670
|
+
def put_update_fields(name, opts = {})
|
8671
|
+
data, _status_code, _headers = put_update_fields_with_http_info(name, opts)
|
7274
8672
|
return data
|
7275
8673
|
end
|
7276
8674
|
|
7277
|
-
# Update
|
8675
|
+
# Update fields.
|
7278
8676
|
#
|
7279
8677
|
# @param name The document name.
|
7280
8678
|
# @param [Hash] opts the optional parameters
|
7281
|
-
# @option opts [
|
8679
|
+
# @option opts [Fields] :fields with the fields data.
|
8680
|
+
# @option opts [String] :storage The document storage.
|
7282
8681
|
# @option opts [String] :folder The document folder.
|
7283
|
-
# @return [Array<(
|
7284
|
-
def
|
8682
|
+
# @return [Array<(FieldsResponse, Fixnum, Hash)>] FieldsResponse data, response status code and response headers
|
8683
|
+
def put_update_fields_with_http_info(name, opts = {})
|
7285
8684
|
if @api_client.config.debugging
|
7286
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
8685
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_update_fields ..."
|
7287
8686
|
end
|
7288
8687
|
# verify the required parameter 'name' is set
|
7289
8688
|
if @api_client.config.client_side_validation && name.nil?
|
7290
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
8689
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_update_fields"
|
7291
8690
|
end
|
7292
8691
|
# resource path
|
7293
|
-
local_var_path = "/pdf/{name}/
|
8692
|
+
local_var_path = "/pdf/{name}/fields".sub('{' + 'name' + '}', name.to_s)
|
7294
8693
|
|
7295
8694
|
# query parameters
|
7296
8695
|
query_params = {}
|
8696
|
+
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
|
7297
8697
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
7298
8698
|
|
7299
8699
|
# header parameters
|
@@ -7309,7 +8709,7 @@ module AsposePdfCloud
|
|
7309
8709
|
post_body = nil
|
7310
8710
|
|
7311
8711
|
# http body (model)
|
7312
|
-
post_body = @api_client.object_to_http_body(opts[:'
|
8712
|
+
post_body = @api_client.object_to_http_body(opts[:'fields'])
|
7313
8713
|
auth_names = []
|
7314
8714
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
7315
8715
|
:header_params => header_params,
|
@@ -7317,50 +8717,72 @@ module AsposePdfCloud
|
|
7317
8717
|
:form_params => form_params,
|
7318
8718
|
:body => post_body,
|
7319
8719
|
:auth_names => auth_names,
|
7320
|
-
:return_type => '
|
8720
|
+
:return_type => 'FieldsResponse')
|
7321
8721
|
if @api_client.config.debugging
|
7322
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
8722
|
+
@api_client.config.logger.debug "API called: PdfApi#put_update_fields\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7323
8723
|
end
|
7324
8724
|
return data, status_code, headers
|
7325
8725
|
end
|
7326
8726
|
|
7327
|
-
#
|
8727
|
+
# Convert web page to PDF format and upload resulting file to storage.
|
7328
8728
|
#
|
7329
8729
|
# @param name The document name.
|
7330
|
-
# @param
|
7331
|
-
# @
|
7332
|
-
# @option opts [
|
7333
|
-
# @option opts [
|
8730
|
+
# @param url Source url
|
8731
|
+
# @param [Hash] opts the optional parameters
|
8732
|
+
# @option opts [Float] :height Page height
|
8733
|
+
# @option opts [Float] :width Page width
|
8734
|
+
# @option opts [BOOLEAN] :is_landscape Is page landscaped
|
8735
|
+
# @option opts [Float] :margin_left Page margin left
|
8736
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
8737
|
+
# @option opts [Float] :margin_right Page margin right
|
8738
|
+
# @option opts [Float] :margin_top Page margin top
|
8739
|
+
# @option opts [String] :dst_folder The destination document folder.
|
7334
8740
|
# @return [SaaSposeResponse]
|
7335
|
-
def
|
7336
|
-
data, _status_code, _headers =
|
8741
|
+
def put_web_in_storage_to_pdf(name, url, opts = {})
|
8742
|
+
data, _status_code, _headers = put_web_in_storage_to_pdf_with_http_info(name, url, opts)
|
7337
8743
|
return data
|
7338
8744
|
end
|
7339
8745
|
|
7340
|
-
#
|
8746
|
+
# Convert web page to PDF format and upload resulting file to storage.
|
7341
8747
|
#
|
7342
8748
|
# @param name The document name.
|
7343
|
-
# @param
|
7344
|
-
# @
|
7345
|
-
# @option opts [
|
7346
|
-
# @option opts [
|
8749
|
+
# @param url Source url
|
8750
|
+
# @param [Hash] opts the optional parameters
|
8751
|
+
# @option opts [Float] :height Page height
|
8752
|
+
# @option opts [Float] :width Page width
|
8753
|
+
# @option opts [BOOLEAN] :is_landscape Is page landscaped
|
8754
|
+
# @option opts [Float] :margin_left Page margin left
|
8755
|
+
# @option opts [Float] :margin_bottom Page margin bottom
|
8756
|
+
# @option opts [Float] :margin_right Page margin right
|
8757
|
+
# @option opts [Float] :margin_top Page margin top
|
8758
|
+
# @option opts [String] :dst_folder The destination document folder.
|
7347
8759
|
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
7348
|
-
def
|
8760
|
+
def put_web_in_storage_to_pdf_with_http_info(name, url, opts = {})
|
7349
8761
|
if @api_client.config.debugging
|
7350
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
8762
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_web_in_storage_to_pdf ..."
|
7351
8763
|
end
|
7352
8764
|
# verify the required parameter 'name' is set
|
7353
8765
|
if @api_client.config.client_side_validation && name.nil?
|
7354
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
8766
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_web_in_storage_to_pdf"
|
8767
|
+
end
|
8768
|
+
# verify the required parameter 'url' is set
|
8769
|
+
if @api_client.config.client_side_validation && url.nil?
|
8770
|
+
fail ArgumentError, "Missing the required parameter 'url' when calling PdfApi.put_web_in_storage_to_pdf"
|
7355
8771
|
end
|
7356
8772
|
# resource path
|
7357
|
-
local_var_path = "/pdf/{name}/
|
8773
|
+
local_var_path = "/pdf/{name}/create/web".sub('{' + 'name' + '}', name.to_s)
|
7358
8774
|
|
7359
8775
|
# query parameters
|
7360
8776
|
query_params = {}
|
7361
|
-
query_params[:'
|
7362
|
-
query_params[:'
|
7363
|
-
query_params[:'
|
8777
|
+
query_params[:'url'] = url
|
8778
|
+
query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
|
8779
|
+
query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
|
8780
|
+
query_params[:'isLandscape'] = opts[:'is_landscape'] if !opts[:'is_landscape'].nil?
|
8781
|
+
query_params[:'marginLeft'] = opts[:'margin_left'] if !opts[:'margin_left'].nil?
|
8782
|
+
query_params[:'marginBottom'] = opts[:'margin_bottom'] if !opts[:'margin_bottom'].nil?
|
8783
|
+
query_params[:'marginRight'] = opts[:'margin_right'] if !opts[:'margin_right'].nil?
|
8784
|
+
query_params[:'marginTop'] = opts[:'margin_top'] if !opts[:'margin_top'].nil?
|
8785
|
+
query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
|
7364
8786
|
|
7365
8787
|
# header parameters
|
7366
8788
|
header_params = {}
|
@@ -7386,68 +8808,60 @@ module AsposePdfCloud
|
|
7386
8808
|
:auth_names => auth_names,
|
7387
8809
|
:return_type => 'SaaSposeResponse')
|
7388
8810
|
if @api_client.config.debugging
|
7389
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
8811
|
+
@api_client.config.logger.debug "API called: PdfApi#put_web_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7390
8812
|
end
|
7391
8813
|
return data, status_code, headers
|
7392
8814
|
end
|
7393
8815
|
|
7394
|
-
#
|
8816
|
+
# Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
|
7395
8817
|
#
|
7396
|
-
# @param
|
7397
|
-
# @param property_name
|
8818
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
|
7398
8819
|
# @param [Hash] opts the optional parameters
|
7399
|
-
# @option opts [
|
7400
|
-
# @
|
7401
|
-
|
7402
|
-
|
7403
|
-
def put_set_property(name, property_name, opts = {})
|
7404
|
-
data, _status_code, _headers = put_set_property_with_http_info(name, property_name, opts)
|
8820
|
+
# @option opts [File] :file A file to be converted.
|
8821
|
+
# @return [SaaSposeResponse]
|
8822
|
+
def put_xfa_pdf_in_request_to_acro_form(out_path, opts = {})
|
8823
|
+
data, _status_code, _headers = put_xfa_pdf_in_request_to_acro_form_with_http_info(out_path, opts)
|
7405
8824
|
return data
|
7406
8825
|
end
|
7407
8826
|
|
7408
|
-
#
|
8827
|
+
# Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
|
7409
8828
|
#
|
7410
|
-
# @param
|
7411
|
-
# @param property_name
|
8829
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
|
7412
8830
|
# @param [Hash] opts the optional parameters
|
7413
|
-
# @option opts [
|
7414
|
-
# @
|
7415
|
-
|
7416
|
-
# @return [Array<(DocumentPropertyResponse, Fixnum, Hash)>] DocumentPropertyResponse data, response status code and response headers
|
7417
|
-
def put_set_property_with_http_info(name, property_name, opts = {})
|
8831
|
+
# @option opts [File] :file A file to be converted.
|
8832
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
8833
|
+
def put_xfa_pdf_in_request_to_acro_form_with_http_info(out_path, opts = {})
|
7418
8834
|
if @api_client.config.debugging
|
7419
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
7420
|
-
end
|
7421
|
-
# verify the required parameter 'name' is set
|
7422
|
-
if @api_client.config.client_side_validation && name.nil?
|
7423
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_set_property"
|
8835
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_xfa_pdf_in_request_to_acro_form ..."
|
7424
8836
|
end
|
7425
|
-
# verify the required parameter '
|
7426
|
-
if @api_client.config.client_side_validation &&
|
7427
|
-
fail ArgumentError, "Missing the required parameter '
|
8837
|
+
# verify the required parameter 'out_path' is set
|
8838
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
8839
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_xfa_pdf_in_request_to_acro_form"
|
7428
8840
|
end
|
7429
8841
|
# resource path
|
7430
|
-
local_var_path = "/pdf/
|
8842
|
+
local_var_path = "/pdf/convert/xfatoacroform"
|
7431
8843
|
|
7432
8844
|
# query parameters
|
7433
8845
|
query_params = {}
|
7434
|
-
query_params[:'
|
7435
|
-
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
8846
|
+
query_params[:'outPath'] = out_path
|
7436
8847
|
|
7437
8848
|
# header parameters
|
7438
8849
|
header_params = {}
|
7439
8850
|
# HTTP header 'Accept' (if needed)
|
7440
8851
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
7441
8852
|
# HTTP header 'Content-Type'
|
7442
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
8853
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
7443
8854
|
|
7444
8855
|
# form parameters
|
7445
8856
|
form_params = {}
|
7446
8857
|
# Fix header in file
|
7447
8858
|
post_body = nil
|
8859
|
+
post_body = opts[:'file'] if !opts[:'file'].nil?
|
8860
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
7448
8861
|
|
7449
8862
|
# http body (model)
|
7450
|
-
|
8863
|
+
# Fix header in file
|
8864
|
+
# post_body = nil
|
7451
8865
|
auth_names = []
|
7452
8866
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
7453
8867
|
:header_params => header_params,
|
@@ -7455,54 +8869,50 @@ module AsposePdfCloud
|
|
7455
8869
|
:form_params => form_params,
|
7456
8870
|
:body => post_body,
|
7457
8871
|
:auth_names => auth_names,
|
7458
|
-
:return_type => '
|
8872
|
+
:return_type => 'SaaSposeResponse')
|
7459
8873
|
if @api_client.config.debugging
|
7460
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
8874
|
+
@api_client.config.logger.debug "API called: PdfApi#put_xfa_pdf_in_request_to_acro_form\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7461
8875
|
end
|
7462
8876
|
return data, status_code, headers
|
7463
8877
|
end
|
7464
8878
|
|
7465
|
-
#
|
8879
|
+
# Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
|
7466
8880
|
#
|
7467
8881
|
# @param name The document name.
|
7468
|
-
# @param
|
8882
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
|
7469
8883
|
# @param [Hash] opts the optional parameters
|
7470
|
-
# @option opts [Field] :field with the field data.
|
7471
|
-
# @option opts [String] :storage The document storage.
|
7472
8884
|
# @option opts [String] :folder The document folder.
|
7473
|
-
# @return [
|
7474
|
-
def
|
7475
|
-
data, _status_code, _headers =
|
8885
|
+
# @return [SaaSposeResponse]
|
8886
|
+
def put_xfa_pdf_in_storage_to_acro_form(name, out_path, opts = {})
|
8887
|
+
data, _status_code, _headers = put_xfa_pdf_in_storage_to_acro_form_with_http_info(name, out_path, opts)
|
7476
8888
|
return data
|
7477
8889
|
end
|
7478
8890
|
|
7479
|
-
#
|
8891
|
+
# Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
|
7480
8892
|
#
|
7481
8893
|
# @param name The document name.
|
7482
|
-
# @param
|
8894
|
+
# @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
|
7483
8895
|
# @param [Hash] opts the optional parameters
|
7484
|
-
# @option opts [Field] :field with the field data.
|
7485
|
-
# @option opts [String] :storage The document storage.
|
7486
8896
|
# @option opts [String] :folder The document folder.
|
7487
|
-
# @return [Array<(
|
7488
|
-
def
|
8897
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
8898
|
+
def put_xfa_pdf_in_storage_to_acro_form_with_http_info(name, out_path, opts = {})
|
7489
8899
|
if @api_client.config.debugging
|
7490
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
8900
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_xfa_pdf_in_storage_to_acro_form ..."
|
7491
8901
|
end
|
7492
8902
|
# verify the required parameter 'name' is set
|
7493
8903
|
if @api_client.config.client_side_validation && name.nil?
|
7494
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
8904
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_xfa_pdf_in_storage_to_acro_form"
|
7495
8905
|
end
|
7496
|
-
# verify the required parameter '
|
7497
|
-
if @api_client.config.client_side_validation &&
|
7498
|
-
fail ArgumentError, "Missing the required parameter '
|
8906
|
+
# verify the required parameter 'out_path' is set
|
8907
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
8908
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_xfa_pdf_in_storage_to_acro_form"
|
7499
8909
|
end
|
7500
8910
|
# resource path
|
7501
|
-
local_var_path = "/pdf/{name}/
|
8911
|
+
local_var_path = "/pdf/{name}/convert/xfatoacroform".sub('{' + 'name' + '}', name.to_s)
|
7502
8912
|
|
7503
8913
|
# query parameters
|
7504
8914
|
query_params = {}
|
7505
|
-
query_params[:'
|
8915
|
+
query_params[:'outPath'] = out_path
|
7506
8916
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
7507
8917
|
|
7508
8918
|
# header parameters
|
@@ -7518,7 +8928,8 @@ module AsposePdfCloud
|
|
7518
8928
|
post_body = nil
|
7519
8929
|
|
7520
8930
|
# http body (model)
|
7521
|
-
|
8931
|
+
# Fix header in file
|
8932
|
+
# post_body = nil
|
7522
8933
|
auth_names = []
|
7523
8934
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
7524
8935
|
:header_params => header_params,
|
@@ -7526,49 +8937,54 @@ module AsposePdfCloud
|
|
7526
8937
|
:form_params => form_params,
|
7527
8938
|
:body => post_body,
|
7528
8939
|
:auth_names => auth_names,
|
7529
|
-
:return_type => '
|
8940
|
+
:return_type => 'SaaSposeResponse')
|
7530
8941
|
if @api_client.config.debugging
|
7531
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
8942
|
+
@api_client.config.logger.debug "API called: PdfApi#put_xfa_pdf_in_storage_to_acro_form\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7532
8943
|
end
|
7533
8944
|
return data, status_code, headers
|
7534
8945
|
end
|
7535
8946
|
|
7536
|
-
#
|
8947
|
+
# Convert XML file (located on storage) to PDF format and upload resulting file to storage.
|
7537
8948
|
#
|
7538
8949
|
# @param name The document name.
|
8950
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.xml)
|
7539
8951
|
# @param [Hash] opts the optional parameters
|
7540
|
-
# @option opts [
|
7541
|
-
# @option opts [String] :
|
7542
|
-
# @
|
7543
|
-
|
7544
|
-
|
7545
|
-
data, _status_code, _headers = put_update_fields_with_http_info(name, opts)
|
8952
|
+
# @option opts [String] :xsl_file_path Full XSL source filename (ex. /folder1/folder2/template.xsl)
|
8953
|
+
# @option opts [String] :dst_folder The destination document folder.
|
8954
|
+
# @return [SaaSposeResponse]
|
8955
|
+
def put_xml_in_storage_to_pdf(name, src_path, opts = {})
|
8956
|
+
data, _status_code, _headers = put_xml_in_storage_to_pdf_with_http_info(name, src_path, opts)
|
7546
8957
|
return data
|
7547
8958
|
end
|
7548
8959
|
|
7549
|
-
#
|
8960
|
+
# Convert XML file (located on storage) to PDF format and upload resulting file to storage.
|
7550
8961
|
#
|
7551
8962
|
# @param name The document name.
|
8963
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.xml)
|
7552
8964
|
# @param [Hash] opts the optional parameters
|
7553
|
-
# @option opts [
|
7554
|
-
# @option opts [String] :
|
7555
|
-
# @
|
7556
|
-
|
7557
|
-
def put_update_fields_with_http_info(name, opts = {})
|
8965
|
+
# @option opts [String] :xsl_file_path Full XSL source filename (ex. /folder1/folder2/template.xsl)
|
8966
|
+
# @option opts [String] :dst_folder The destination document folder.
|
8967
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
8968
|
+
def put_xml_in_storage_to_pdf_with_http_info(name, src_path, opts = {})
|
7558
8969
|
if @api_client.config.debugging
|
7559
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
8970
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_xml_in_storage_to_pdf ..."
|
7560
8971
|
end
|
7561
8972
|
# verify the required parameter 'name' is set
|
7562
8973
|
if @api_client.config.client_side_validation && name.nil?
|
7563
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
8974
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_xml_in_storage_to_pdf"
|
8975
|
+
end
|
8976
|
+
# verify the required parameter 'src_path' is set
|
8977
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
8978
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.put_xml_in_storage_to_pdf"
|
7564
8979
|
end
|
7565
8980
|
# resource path
|
7566
|
-
local_var_path = "/pdf/{name}/
|
8981
|
+
local_var_path = "/pdf/{name}/create/xml".sub('{' + 'name' + '}', name.to_s)
|
7567
8982
|
|
7568
8983
|
# query parameters
|
7569
8984
|
query_params = {}
|
7570
|
-
query_params[:'
|
7571
|
-
query_params[:'
|
8985
|
+
query_params[:'srcPath'] = src_path
|
8986
|
+
query_params[:'xslFilePath'] = opts[:'xsl_file_path'] if !opts[:'xsl_file_path'].nil?
|
8987
|
+
query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
|
7572
8988
|
|
7573
8989
|
# header parameters
|
7574
8990
|
header_params = {}
|
@@ -7583,7 +8999,8 @@ module AsposePdfCloud
|
|
7583
8999
|
post_body = nil
|
7584
9000
|
|
7585
9001
|
# http body (model)
|
7586
|
-
|
9002
|
+
# Fix header in file
|
9003
|
+
# post_body = nil
|
7587
9004
|
auth_names = []
|
7588
9005
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
7589
9006
|
:header_params => header_params,
|
@@ -7591,58 +9008,63 @@ module AsposePdfCloud
|
|
7591
9008
|
:form_params => form_params,
|
7592
9009
|
:body => post_body,
|
7593
9010
|
:auth_names => auth_names,
|
7594
|
-
:return_type => '
|
9011
|
+
:return_type => 'SaaSposeResponse')
|
7595
9012
|
if @api_client.config.debugging
|
7596
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
9013
|
+
@api_client.config.logger.debug "API called: PdfApi#put_xml_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7597
9014
|
end
|
7598
9015
|
return data, status_code, headers
|
7599
9016
|
end
|
7600
9017
|
|
7601
|
-
#
|
9018
|
+
# Convert XPS file (located on storage) to PDF format and upload resulting file to storage.
|
7602
9019
|
#
|
7603
|
-
# @param
|
9020
|
+
# @param name The document name.
|
9021
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.xps)
|
7604
9022
|
# @param [Hash] opts the optional parameters
|
7605
|
-
# @option opts [
|
7606
|
-
# @return [
|
7607
|
-
def
|
7608
|
-
data, _status_code, _headers =
|
9023
|
+
# @option opts [String] :dst_folder The destination document folder.
|
9024
|
+
# @return [SaaSposeResponse]
|
9025
|
+
def put_xps_in_storage_to_pdf(name, src_path, opts = {})
|
9026
|
+
data, _status_code, _headers = put_xps_in_storage_to_pdf_with_http_info(name, src_path, opts)
|
7609
9027
|
return data
|
7610
9028
|
end
|
7611
9029
|
|
7612
|
-
#
|
9030
|
+
# Convert XPS file (located on storage) to PDF format and upload resulting file to storage.
|
7613
9031
|
#
|
7614
|
-
# @param
|
9032
|
+
# @param name The document name.
|
9033
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.xps)
|
7615
9034
|
# @param [Hash] opts the optional parameters
|
7616
|
-
# @option opts [
|
7617
|
-
# @return [Array<(
|
7618
|
-
def
|
9035
|
+
# @option opts [String] :dst_folder The destination document folder.
|
9036
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
9037
|
+
def put_xps_in_storage_to_pdf_with_http_info(name, src_path, opts = {})
|
7619
9038
|
if @api_client.config.debugging
|
7620
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
9039
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_xps_in_storage_to_pdf ..."
|
7621
9040
|
end
|
7622
|
-
# verify the required parameter '
|
7623
|
-
if @api_client.config.client_side_validation &&
|
7624
|
-
fail ArgumentError, "Missing the required parameter '
|
9041
|
+
# verify the required parameter 'name' is set
|
9042
|
+
if @api_client.config.client_side_validation && name.nil?
|
9043
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_xps_in_storage_to_pdf"
|
9044
|
+
end
|
9045
|
+
# verify the required parameter 'src_path' is set
|
9046
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
9047
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.put_xps_in_storage_to_pdf"
|
7625
9048
|
end
|
7626
9049
|
# resource path
|
7627
|
-
local_var_path = "/pdf/
|
9050
|
+
local_var_path = "/pdf/{name}/create/xps".sub('{' + 'name' + '}', name.to_s)
|
7628
9051
|
|
7629
9052
|
# query parameters
|
7630
9053
|
query_params = {}
|
7631
|
-
query_params[:'
|
9054
|
+
query_params[:'srcPath'] = src_path
|
9055
|
+
query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
|
7632
9056
|
|
7633
9057
|
# header parameters
|
7634
9058
|
header_params = {}
|
7635
9059
|
# HTTP header 'Accept' (if needed)
|
7636
9060
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
7637
9061
|
# HTTP header 'Content-Type'
|
7638
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
9062
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
7639
9063
|
|
7640
9064
|
# form parameters
|
7641
9065
|
form_params = {}
|
7642
9066
|
# Fix header in file
|
7643
9067
|
post_body = nil
|
7644
|
-
post_body = opts[:'file'] if !opts[:'file'].nil?
|
7645
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
7646
9068
|
|
7647
9069
|
# http body (model)
|
7648
9070
|
# Fix header in file
|
@@ -7654,51 +9076,51 @@ module AsposePdfCloud
|
|
7654
9076
|
:form_params => form_params,
|
7655
9077
|
:body => post_body,
|
7656
9078
|
:auth_names => auth_names,
|
7657
|
-
:return_type => '
|
9079
|
+
:return_type => 'SaaSposeResponse')
|
7658
9080
|
if @api_client.config.debugging
|
7659
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
9081
|
+
@api_client.config.logger.debug "API called: PdfApi#put_xps_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7660
9082
|
end
|
7661
9083
|
return data, status_code, headers
|
7662
9084
|
end
|
7663
9085
|
|
7664
|
-
#
|
9086
|
+
# Convert XslFo file (located on storage) to PDF format and upload resulting file to storage.
|
7665
9087
|
#
|
7666
9088
|
# @param name The document name.
|
7667
|
-
# @param
|
9089
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.xpsfo)
|
7668
9090
|
# @param [Hash] opts the optional parameters
|
7669
|
-
# @option opts [String] :
|
7670
|
-
# @return [
|
7671
|
-
def
|
7672
|
-
data, _status_code, _headers =
|
9091
|
+
# @option opts [String] :dst_folder The destination document folder.
|
9092
|
+
# @return [SaaSposeResponse]
|
9093
|
+
def put_xsl_fo_in_storage_to_pdf(name, src_path, opts = {})
|
9094
|
+
data, _status_code, _headers = put_xsl_fo_in_storage_to_pdf_with_http_info(name, src_path, opts)
|
7673
9095
|
return data
|
7674
9096
|
end
|
7675
9097
|
|
7676
|
-
#
|
9098
|
+
# Convert XslFo file (located on storage) to PDF format and upload resulting file to storage.
|
7677
9099
|
#
|
7678
9100
|
# @param name The document name.
|
7679
|
-
# @param
|
9101
|
+
# @param src_path Full source filename (ex. /folder1/folder2/template.xpsfo)
|
7680
9102
|
# @param [Hash] opts the optional parameters
|
7681
|
-
# @option opts [String] :
|
7682
|
-
# @return [Array<(
|
7683
|
-
def
|
9103
|
+
# @option opts [String] :dst_folder The destination document folder.
|
9104
|
+
# @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
|
9105
|
+
def put_xsl_fo_in_storage_to_pdf_with_http_info(name, src_path, opts = {})
|
7684
9106
|
if @api_client.config.debugging
|
7685
|
-
@api_client.config.logger.debug "Calling API: PdfApi.
|
9107
|
+
@api_client.config.logger.debug "Calling API: PdfApi.put_xsl_fo_in_storage_to_pdf ..."
|
7686
9108
|
end
|
7687
9109
|
# verify the required parameter 'name' is set
|
7688
9110
|
if @api_client.config.client_side_validation && name.nil?
|
7689
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.
|
9111
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_xsl_fo_in_storage_to_pdf"
|
7690
9112
|
end
|
7691
|
-
# verify the required parameter '
|
7692
|
-
if @api_client.config.client_side_validation &&
|
7693
|
-
fail ArgumentError, "Missing the required parameter '
|
9113
|
+
# verify the required parameter 'src_path' is set
|
9114
|
+
if @api_client.config.client_side_validation && src_path.nil?
|
9115
|
+
fail ArgumentError, "Missing the required parameter 'src_path' when calling PdfApi.put_xsl_fo_in_storage_to_pdf"
|
7694
9116
|
end
|
7695
9117
|
# resource path
|
7696
|
-
local_var_path = "/pdf/{name}/
|
9118
|
+
local_var_path = "/pdf/{name}/create/xslfo".sub('{' + 'name' + '}', name.to_s)
|
7697
9119
|
|
7698
9120
|
# query parameters
|
7699
9121
|
query_params = {}
|
7700
|
-
query_params[:'
|
7701
|
-
query_params[:'
|
9122
|
+
query_params[:'srcPath'] = src_path
|
9123
|
+
query_params[:'dstFolder'] = opts[:'dst_folder'] if !opts[:'dst_folder'].nil?
|
7702
9124
|
|
7703
9125
|
# header parameters
|
7704
9126
|
header_params = {}
|
@@ -7722,9 +9144,9 @@ module AsposePdfCloud
|
|
7722
9144
|
:form_params => form_params,
|
7723
9145
|
:body => post_body,
|
7724
9146
|
:auth_names => auth_names,
|
7725
|
-
:return_type => '
|
9147
|
+
:return_type => 'SaaSposeResponse')
|
7726
9148
|
if @api_client.config.debugging
|
7727
|
-
@api_client.config.logger.debug "API called: PdfApi#
|
9149
|
+
@api_client.config.logger.debug "API called: PdfApi#put_xsl_fo_in_storage_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
7728
9150
|
end
|
7729
9151
|
return data, status_code, headers
|
7730
9152
|
end
|