aspose_pdf_cloud 18.2.0 → 18.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f70f4b4ac865b09130dfddd49632147341347c571bec96543ec3501b04d05ddd
4
- data.tar.gz: 17a730b833c1b96650ea7397364cba11cb61f6785484697c0139c7305caa16c0
3
+ metadata.gz: e6bdf332d83ddb75ce090eb5679c99ba7fe55839955e7fbb951fe63042edf97d
4
+ data.tar.gz: 6b447f2f13115693470765a2e11e6fb96798116c03624b354b7f9f581af8ba19
5
5
  SHA512:
6
- metadata.gz: d401fd4dbf3c11b27f792e776de53d5aeee473326b97099866c8c2a1a0bacc038d12f98dad45611c34878923e0da66bec67446a428dbbdedb4efbade5647aef6
7
- data.tar.gz: c77bb7ee365eb999dd709442d40af0746f9ed80113fa9bbd06e368b4044ba25e9141fe5e9129e7afef39f77309f5ff43bef9bd21472264c3d2cda73b70f15d38
6
+ metadata.gz: bd7c1fe0bc0e6bd9b27d3a4843185ef4ba42cb09506389e795375f5b4e4ad21c99535a36e9c48396b1b98cb792834acc67beec06b3d4b8683d74d5cc038464a5
7
+ data.tar.gz: 7c708314669408410b2be3144fc0b676a3552d5feb2d65200cde13c78aef92753752c2e0863d8094ef5cd6ac78044f498db36fd7ffe695503a8e6fc609b938f3
data/.gitignore CHANGED
@@ -1,42 +1,46 @@
1
- # Generated by: https://github.com/swagger-api/swagger-codegen.git
2
- #
3
-
4
- *.gem
5
- *.rbc
6
- /.config
7
- /coverage/
8
- /InstalledFiles
9
- /pkg/
10
- /spec/reports/
11
- /spec/examples.txt
12
- /test/tmp/
13
- /test/version_tmp/
14
- /tmp/
15
-
16
- ## Specific to RubyMotion:
17
- .dat*
18
- .repl_history
19
- build/
20
-
21
- ## Documentation cache and generated files:
22
- /.yardoc/
23
- /_yardoc/
24
- /doc/
25
- /rdoc/
26
-
27
- ## Environment normalization:
28
- /.bundle/
29
- /vendor/bundle
30
- /lib/bundler/man/
31
-
32
- # for a library or gem, you might want to ignore these files since the code is
33
- # intended to run in multiple environments; otherwise, check them in:
34
- # Gemfile.lock
35
- # .ruby-version
36
- # .ruby-gemset
37
-
38
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
39
- .rvmrc
40
-
41
- #IDE
42
- /.idea/
1
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
2
+ #
3
+
4
+ *.gem
5
+ *.rbc
6
+ /.config
7
+ /coverage/
8
+ /InstalledFiles
9
+ /pkg/
10
+ /spec/reports/
11
+ /spec/examples.txt
12
+ /test/tmp/
13
+ /test/temp_tests.rb
14
+ /test/version_tmp/
15
+ /tmp/
16
+
17
+ ## Specific to RubyMotion:
18
+ .dat*
19
+ .repl_history
20
+ build/
21
+
22
+ ## Documentation cache and generated files:
23
+ /.yardoc/
24
+ /_yardoc/
25
+ /doc/
26
+ /rdoc/
27
+
28
+ ## Environment normalization:
29
+ /.bundle/
30
+ /vendor/bundle
31
+ /lib/bundler/man/
32
+ /.swagger-codegen/
33
+
34
+
35
+ # for a library or gem, you might want to ignore these files since the code is
36
+ # intended to run in multiple environments; otherwise, check them in:
37
+ # Gemfile.lock
38
+ # .ruby-version
39
+ # .ruby-gemset
40
+
41
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
42
+ .rvmrc
43
+
44
+ #IDE
45
+ /.idea/
46
+ /.vscode/
@@ -1,58 +1,58 @@
1
- # Swagger Codegen Ignore
2
- # Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3
-
4
- # Use this file to prevent files from being overwritten by the generator.
5
- # The patterns follow closely to .gitignore or .dockerignore.
6
-
7
- # As an example, the C# client generator defines ApiClient.cs.
8
- # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9
- #ApiClient.cs
10
-
11
- # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
- #foo/*/qux
13
- # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
-
15
- # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
- #foo/**/qux
17
- # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
-
19
- # You can also negate patterns with an exclamation (!).
20
- # For example, you can ignore all files in a docs folder with the file extension .md:
21
- #docs/*.md
22
- # Then explicitly reverse the ignore rule for a single file:
23
- #!docs/README.md
24
-
25
-
26
-
27
- *.sh
28
- #.travis.yml
29
- .gitignore
30
- *.md
31
- docs/*
32
- spec/**
33
- #spec/api/*
34
- #spec/models/*
35
-
36
- #**/*.nuspec
37
-
38
- #Ignore enums that are not properly generated. We have good ones in sources already.
39
-
40
- lib/aspose_pdf_cloud/models/field_type.rb
41
- lib/aspose_pdf_cloud/models/font_styles.rb
42
- lib/aspose_pdf_cloud/models/horizontal_alignment.rb
43
- lib/aspose_pdf_cloud/models/http_status_code.rb
44
- #lib/aspose_pdf_cloud/models/line_spacing.rb
45
- lib/aspose_pdf_cloud/models/link_highlighting_mode.rb
46
- lib/aspose_pdf_cloud/models/rotation.rb
47
- #lib/aspose_pdf_cloud/models/text_horizontal_alignment.rb
48
- lib/aspose_pdf_cloud/models/stamp_type.rb
49
- #lib/aspose_pdf_cloud/models/vertical_alignment.rb
50
- #lib/aspose_pdf_cloud/models/wrap_mode.rb
51
- lib/aspose_pdf_cloud/models/link_action_type.rb
52
- lib/aspose_pdf_cloud/models/signature_type.rb
53
- # Ignore other files and folders
54
-
55
- .rspec
56
- Gemfile
57
- Rakefile
58
-
1
+ # Swagger Codegen Ignore
2
+ # Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
24
+
25
+
26
+
27
+ *.sh
28
+ #.travis.yml
29
+ .gitignore
30
+ *.md
31
+ docs/*
32
+ spec/**
33
+ #spec/api/*
34
+ #spec/models/*
35
+
36
+ #**/*.nuspec
37
+
38
+ #Ignore enums that are not properly generated. We have good ones in sources already.
39
+
40
+ lib/aspose_pdf_cloud/models/field_type.rb
41
+ lib/aspose_pdf_cloud/models/font_styles.rb
42
+ lib/aspose_pdf_cloud/models/horizontal_alignment.rb
43
+ lib/aspose_pdf_cloud/models/http_status_code.rb
44
+ #lib/aspose_pdf_cloud/models/line_spacing.rb
45
+ lib/aspose_pdf_cloud/models/link_highlighting_mode.rb
46
+ lib/aspose_pdf_cloud/models/rotation.rb
47
+ #lib/aspose_pdf_cloud/models/text_horizontal_alignment.rb
48
+ lib/aspose_pdf_cloud/models/stamp_type.rb
49
+ #lib/aspose_pdf_cloud/models/vertical_alignment.rb
50
+ #lib/aspose_pdf_cloud/models/wrap_mode.rb
51
+ lib/aspose_pdf_cloud/models/link_action_type.rb
52
+ lib/aspose_pdf_cloud/models/signature_type.rb
53
+ # Ignore other files and folders
54
+
55
+ .rspec
56
+ Gemfile
57
+ Rakefile
58
+
@@ -40,6 +40,7 @@ Gem::Specification.new do |s|
40
40
  s.add_runtime_dependency 'typhoeus', '~> 0.8'
41
41
  s.add_runtime_dependency 'json', '~> 1.7'
42
42
  s.add_runtime_dependency 'aspose_storage_cloud', '~> 1.0', '>= 1.0.0'
43
+ s.add_runtime_dependency 'faraday', '~> 0.14.0'
43
44
 
44
45
  s.add_development_dependency 'minitest', '~> 5.8'
45
46
 
@@ -28,6 +28,9 @@ require_relative 'aspose_pdf_cloud/configuration'
28
28
  # Models
29
29
  require_relative 'aspose_pdf_cloud/models/append_document'
30
30
  require_relative 'aspose_pdf_cloud/models/color'
31
+ require_relative 'aspose_pdf_cloud/models/color_depth'
32
+ require_relative 'aspose_pdf_cloud/models/compression_type'
33
+ require_relative 'aspose_pdf_cloud/models/doc_format'
31
34
  require_relative 'aspose_pdf_cloud/models/field_type'
32
35
  require_relative 'aspose_pdf_cloud/models/font_styles'
33
36
  require_relative 'aspose_pdf_cloud/models/horizontal_alignment'
@@ -42,10 +45,13 @@ require_relative 'aspose_pdf_cloud/models/merge_documents'
42
45
  require_relative 'aspose_pdf_cloud/models/optimize_options'
43
46
  require_relative 'aspose_pdf_cloud/models/page_word_count'
44
47
  require_relative 'aspose_pdf_cloud/models/paragraph'
48
+ require_relative 'aspose_pdf_cloud/models/pdf_a_type'
49
+ require_relative 'aspose_pdf_cloud/models/recognition_mode'
45
50
  require_relative 'aspose_pdf_cloud/models/rectangle'
46
51
  require_relative 'aspose_pdf_cloud/models/rotation'
47
52
  require_relative 'aspose_pdf_cloud/models/saa_spose_response'
48
53
  require_relative 'aspose_pdf_cloud/models/segment'
54
+ require_relative 'aspose_pdf_cloud/models/shape_type'
49
55
  require_relative 'aspose_pdf_cloud/models/signature'
50
56
  require_relative 'aspose_pdf_cloud/models/signature_type'
51
57
  require_relative 'aspose_pdf_cloud/models/split_result'
@@ -70,8 +76,6 @@ require_relative 'aspose_pdf_cloud/models/attachment'
70
76
  require_relative 'aspose_pdf_cloud/models/attachment_response'
71
77
  require_relative 'aspose_pdf_cloud/models/attachments'
72
78
  require_relative 'aspose_pdf_cloud/models/attachments_response'
73
- require_relative 'aspose_pdf_cloud/models/bookmarks'
74
- require_relative 'aspose_pdf_cloud/models/bookmarks_response'
75
79
  require_relative 'aspose_pdf_cloud/models/document'
76
80
  require_relative 'aspose_pdf_cloud/models/document_pages_response'
77
81
  require_relative 'aspose_pdf_cloud/models/document_properties'
@@ -419,25 +419,27 @@ module AsposePdfCloud
419
419
  return data, status_code, headers
420
420
  end
421
421
 
422
- # Read document bookmarks.
422
+ # Read document bookmark/bookmarks (including children).
423
423
  #
424
424
  # @param name The document name.
425
425
  # @param [Hash] opts the optional parameters
426
+ # @option opts [String] :bookmark_path The bookmark path. Leave it empty if you want to get all the bookmarks in the document.
426
427
  # @option opts [String] :storage The document storage.
427
428
  # @option opts [String] :folder The document folder.
428
- # @return [BookmarksResponse]
429
+ # @return [File]
429
430
  def get_document_bookmarks(name, opts = {})
430
431
  data, _status_code, _headers = get_document_bookmarks_with_http_info(name, opts)
431
432
  return data
432
433
  end
433
434
 
434
- # Read document bookmarks.
435
+ # Read document bookmark/bookmarks (including children).
435
436
  #
436
437
  # @param name The document name.
437
438
  # @param [Hash] opts the optional parameters
439
+ # @option opts [String] :bookmark_path The bookmark path. Leave it empty if you want to get all the bookmarks in the document.
438
440
  # @option opts [String] :storage The document storage.
439
441
  # @option opts [String] :folder The document folder.
440
- # @return [Array<(BookmarksResponse, Fixnum, Hash)>] BookmarksResponse data, response status code and response headers
442
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
441
443
  def get_document_bookmarks_with_http_info(name, opts = {})
442
444
  if @api_client.config.debugging
443
445
  @api_client.config.logger.debug "Calling API: PdfApi.get_document_bookmarks ..."
@@ -451,6 +453,7 @@ module AsposePdfCloud
451
453
 
452
454
  # query parameters
453
455
  query_params = {}
456
+ query_params[:'bookmarkPath'] = opts[:'bookmark_path'] if !opts[:'bookmark_path'].nil?
454
457
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
455
458
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
456
459
 
@@ -473,7 +476,7 @@ module AsposePdfCloud
473
476
  :form_params => form_params,
474
477
  :body => post_body,
475
478
  :auth_names => auth_names,
476
- :return_type => 'BookmarksResponse')
479
+ :return_type => 'File')
477
480
  if @api_client.config.debugging
478
481
  @api_client.config.logger.debug "API called: PdfApi#get_document_bookmarks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
479
482
  end
@@ -1022,12 +1025,15 @@ module AsposePdfCloud
1022
1025
  return data, status_code, headers
1023
1026
  end
1024
1027
 
1025
- # Read document image by number.
1028
+ # Extract document image in format specified.
1026
1029
  #
1027
1030
  # @param name The document name.
1028
1031
  # @param page_number The page number.
1029
1032
  # @param image_number The image format.
1030
1033
  # @param [Hash] opts the optional parameters
1034
+ # @option opts [String] :format Image format to convert, if not specified the common image data is read.
1035
+ # @option opts [Integer] :width The converted image width. (default to 0)
1036
+ # @option opts [Integer] :height The converted image height. (default to 0)
1031
1037
  # @option opts [String] :storage The document storage.
1032
1038
  # @option opts [String] :folder The document folder.
1033
1039
  # @return [File]
@@ -1036,12 +1042,15 @@ module AsposePdfCloud
1036
1042
  return data
1037
1043
  end
1038
1044
 
1039
- # Read document image by number.
1045
+ # Extract document image in format specified.
1040
1046
  #
1041
1047
  # @param name The document name.
1042
1048
  # @param page_number The page number.
1043
1049
  # @param image_number The image format.
1044
1050
  # @param [Hash] opts the optional parameters
1051
+ # @option opts [String] :format Image format to convert, if not specified the common image data is read.
1052
+ # @option opts [Integer] :width The converted image width.
1053
+ # @option opts [Integer] :height The converted image height.
1045
1054
  # @option opts [String] :storage The document storage.
1046
1055
  # @option opts [String] :folder The document folder.
1047
1056
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
@@ -1066,6 +1075,9 @@ module AsposePdfCloud
1066
1075
 
1067
1076
  # query parameters
1068
1077
  query_params = {}
1078
+ query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
1079
+ query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
1080
+ query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
1069
1081
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1070
1082
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1071
1083
 
@@ -1162,11 +1174,14 @@ module AsposePdfCloud
1162
1174
  return data, status_code, headers
1163
1175
  end
1164
1176
 
1165
- # Read document page info.
1177
+ # Convert document page to format specified.
1166
1178
  #
1167
1179
  # @param name The document name.
1168
1180
  # @param page_number The page number.
1169
1181
  # @param [Hash] opts the optional parameters
1182
+ # @option opts [String] :format The format to convert if specified.
1183
+ # @option opts [Integer] :width The converted image width. (default to 0)
1184
+ # @option opts [Integer] :height The converted image height. (default to 0)
1170
1185
  # @option opts [String] :storage The document storage.
1171
1186
  # @option opts [String] :folder The document folder.
1172
1187
  # @return [File]
@@ -1175,11 +1190,14 @@ module AsposePdfCloud
1175
1190
  return data
1176
1191
  end
1177
1192
 
1178
- # Read document page info.
1193
+ # Convert document page to format specified.
1179
1194
  #
1180
1195
  # @param name The document name.
1181
1196
  # @param page_number The page number.
1182
1197
  # @param [Hash] opts the optional parameters
1198
+ # @option opts [String] :format The format to convert if specified.
1199
+ # @option opts [Integer] :width The converted image width.
1200
+ # @option opts [Integer] :height The converted image height.
1183
1201
  # @option opts [String] :storage The document storage.
1184
1202
  # @option opts [String] :folder The document folder.
1185
1203
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
@@ -1200,6 +1218,9 @@ module AsposePdfCloud
1200
1218
 
1201
1219
  # query parameters
1202
1220
  query_params = {}
1221
+ query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
1222
+ query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
1223
+ query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
1203
1224
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1204
1225
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1205
1226
 
@@ -1511,17 +1532,17 @@ module AsposePdfCloud
1511
1532
 
1512
1533
  # Read page text items.
1513
1534
  #
1514
- # @param name
1515
- # @param page_number
1535
+ # @param name The document name.
1536
+ # @param page_number Number of page (starting from 1).
1516
1537
  # @param x
1517
1538
  # @param y
1518
1539
  # @param width
1519
1540
  # @param height
1520
1541
  # @param [Hash] opts the optional parameters
1521
- # @option opts [Array<String>] :format
1522
- # @option opts [String] :regex
1523
- # @option opts [String] :storage
1524
- # @option opts [String] :folder
1542
+ # @option opts [Array<String>] :format List of formats for search.
1543
+ # @option opts [String] :regex Formats are specified as a regular expression.
1544
+ # @option opts [BOOLEAN] :split_rects Split result fragments (default is true).
1545
+ # @option opts [String] :folder The document folder.
1525
1546
  # @return [TextRectsResponse]
1526
1547
  def get_page_text(name, page_number, x, y, width, height, opts = {})
1527
1548
  data, _status_code, _headers = get_page_text_with_http_info(name, page_number, x, y, width, height, opts)
@@ -1530,17 +1551,17 @@ module AsposePdfCloud
1530
1551
 
1531
1552
  # Read page text items.
1532
1553
  #
1533
- # @param name
1534
- # @param page_number
1554
+ # @param name The document name.
1555
+ # @param page_number Number of page (starting from 1).
1535
1556
  # @param x
1536
1557
  # @param y
1537
1558
  # @param width
1538
1559
  # @param height
1539
1560
  # @param [Hash] opts the optional parameters
1540
- # @option opts [Array<String>] :format
1541
- # @option opts [String] :regex
1542
- # @option opts [String] :storage
1543
- # @option opts [String] :folder
1561
+ # @option opts [Array<String>] :format List of formats for search.
1562
+ # @option opts [String] :regex Formats are specified as a regular expression.
1563
+ # @option opts [BOOLEAN] :split_rects Split result fragments (default is true).
1564
+ # @option opts [String] :folder The document folder.
1544
1565
  # @return [Array<(TextRectsResponse, Fixnum, Hash)>] TextRectsResponse data, response status code and response headers
1545
1566
  def get_page_text_with_http_info(name, page_number, x, y, width, height, opts = {})
1546
1567
  if @api_client.config.debugging
@@ -1581,7 +1602,7 @@ module AsposePdfCloud
1581
1602
  query_params[:'Height'] = height
1582
1603
  query_params[:'format'] = @api_client.build_collection_param(opts[:'format'], :multi) if !opts[:'format'].nil?
1583
1604
  query_params[:'regex'] = opts[:'regex'] if !opts[:'regex'].nil?
1584
- query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1605
+ query_params[:'splitRects'] = opts[:'split_rects'] if !opts[:'split_rects'].nil?
1585
1606
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1586
1607
 
1587
1608
  # header parameters
@@ -1741,63 +1762,66 @@ module AsposePdfCloud
1741
1762
  return data, status_code, headers
1742
1763
  end
1743
1764
 
1744
- # Read segment.
1765
+ # Converts PDF document (located on storage) to DOC format and returns resulting file in response content
1745
1766
  #
1746
- # @param name
1747
- # @param page_number
1748
- # @param fragment_number
1749
- # @param segment_number
1767
+ # @param name The document name.
1750
1768
  # @param [Hash] opts the optional parameters
1751
- # @option opts [String] :storage
1752
- # @option opts [String] :folder
1753
- # @return [TextItemResponse]
1754
- def get_segment(name, page_number, fragment_number, segment_number, opts = {})
1755
- data, _status_code, _headers = get_segment_with_http_info(name, page_number, fragment_number, segment_number, opts)
1769
+ # @option opts [BOOLEAN] :add_return_to_line_end Add return to line end.
1770
+ # @option opts [String] :format Allows to specify .doc or .docx file format.
1771
+ # @option opts [Integer] :image_resolution_x Image resolution X.
1772
+ # @option opts [Integer] :image_resolution_y Image resolution Y.
1773
+ # @option opts [Integer] :max_distance_between_text_lines Max distance between text lines.
1774
+ # @option opts [String] :mode Allows to control how a PDF document is converted into a word processing document.
1775
+ # @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
1776
+ # @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
1777
+ # @option opts [String] :folder The document folder.
1778
+ # @return [File]
1779
+ def get_pdf_in_storage_to_doc(name, opts = {})
1780
+ data, _status_code, _headers = get_pdf_in_storage_to_doc_with_http_info(name, opts)
1756
1781
  return data
1757
1782
  end
1758
1783
 
1759
- # Read segment.
1784
+ # Converts PDF document (located on storage) to DOC format and returns resulting file in response content
1760
1785
  #
1761
- # @param name
1762
- # @param page_number
1763
- # @param fragment_number
1764
- # @param segment_number
1786
+ # @param name The document name.
1765
1787
  # @param [Hash] opts the optional parameters
1766
- # @option opts [String] :storage
1767
- # @option opts [String] :folder
1768
- # @return [Array<(TextItemResponse, Fixnum, Hash)>] TextItemResponse data, response status code and response headers
1769
- def get_segment_with_http_info(name, page_number, fragment_number, segment_number, opts = {})
1788
+ # @option opts [BOOLEAN] :add_return_to_line_end Add return to line end.
1789
+ # @option opts [String] :format Allows to specify .doc or .docx file format.
1790
+ # @option opts [Integer] :image_resolution_x Image resolution X.
1791
+ # @option opts [Integer] :image_resolution_y Image resolution Y.
1792
+ # @option opts [Integer] :max_distance_between_text_lines Max distance between text lines.
1793
+ # @option opts [String] :mode Allows to control how a PDF document is converted into a word processing document.
1794
+ # @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
1795
+ # @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
1796
+ # @option opts [String] :folder The document folder.
1797
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1798
+ def get_pdf_in_storage_to_doc_with_http_info(name, opts = {})
1770
1799
  if @api_client.config.debugging
1771
- @api_client.config.logger.debug "Calling API: PdfApi.get_segment ..."
1800
+ @api_client.config.logger.debug "Calling API: PdfApi.get_pdf_in_storage_to_doc ..."
1772
1801
  end
1773
1802
  # verify the required parameter 'name' is set
1774
1803
  if @api_client.config.client_side_validation && name.nil?
1775
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_segment"
1776
- end
1777
- # verify the required parameter 'page_number' is set
1778
- if @api_client.config.client_side_validation && page_number.nil?
1779
- fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_segment"
1780
- end
1781
- # verify the required parameter 'fragment_number' is set
1782
- if @api_client.config.client_side_validation && fragment_number.nil?
1783
- fail ArgumentError, "Missing the required parameter 'fragment_number' when calling PdfApi.get_segment"
1784
- end
1785
- # verify the required parameter 'segment_number' is set
1786
- if @api_client.config.client_side_validation && segment_number.nil?
1787
- fail ArgumentError, "Missing the required parameter 'segment_number' when calling PdfApi.get_segment"
1804
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_pdf_in_storage_to_doc"
1788
1805
  end
1789
1806
  # resource path
1790
- local_var_path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/segments/{segmentNumber}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s).sub('{' + 'segmentNumber' + '}', segment_number.to_s)
1807
+ local_var_path = "/pdf/{name}/convert/doc".sub('{' + 'name' + '}', name.to_s)
1791
1808
 
1792
1809
  # query parameters
1793
1810
  query_params = {}
1794
- query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1811
+ query_params[:'addReturnToLineEnd'] = opts[:'add_return_to_line_end'] if !opts[:'add_return_to_line_end'].nil?
1812
+ query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
1813
+ query_params[:'imageResolutionX'] = opts[:'image_resolution_x'] if !opts[:'image_resolution_x'].nil?
1814
+ query_params[:'imageResolutionY'] = opts[:'image_resolution_y'] if !opts[:'image_resolution_y'].nil?
1815
+ query_params[:'maxDistanceBetweenTextLines'] = opts[:'max_distance_between_text_lines'] if !opts[:'max_distance_between_text_lines'].nil?
1816
+ query_params[:'mode'] = opts[:'mode'] if !opts[:'mode'].nil?
1817
+ query_params[:'recognizeBullets'] = opts[:'recognize_bullets'] if !opts[:'recognize_bullets'].nil?
1818
+ query_params[:'relativeHorizontalProximity'] = opts[:'relative_horizontal_proximity'] if !opts[:'relative_horizontal_proximity'].nil?
1795
1819
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1796
1820
 
1797
1821
  # header parameters
1798
1822
  header_params = {}
1799
1823
  # HTTP header 'Accept' (if needed)
1800
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1824
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
1801
1825
  # HTTP header 'Content-Type'
1802
1826
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1803
1827
 
@@ -1813,70 +1837,56 @@ module AsposePdfCloud
1813
1837
  :form_params => form_params,
1814
1838
  :body => post_body,
1815
1839
  :auth_names => auth_names,
1816
- :return_type => 'TextItemResponse')
1840
+ :return_type => 'File')
1817
1841
  if @api_client.config.debugging
1818
- @api_client.config.logger.debug "API called: PdfApi#get_segment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1842
+ @api_client.config.logger.debug "API called: PdfApi#get_pdf_in_storage_to_doc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1819
1843
  end
1820
1844
  return data, status_code, headers
1821
1845
  end
1822
1846
 
1823
- # Read segment text format.
1847
+ # Converts PDF document (located on storage) to PdfA format and returns resulting file in response content
1824
1848
  #
1825
- # @param name
1826
- # @param page_number
1827
- # @param fragment_number
1828
- # @param segment_number
1849
+ # @param name The document name.
1850
+ # @param type Type of PdfA format.
1829
1851
  # @param [Hash] opts the optional parameters
1830
- # @option opts [String] :storage
1831
- # @option opts [String] :folder
1832
- # @return [TextFormatResponse]
1833
- def get_segment_text_format(name, page_number, fragment_number, segment_number, opts = {})
1834
- data, _status_code, _headers = get_segment_text_format_with_http_info(name, page_number, fragment_number, segment_number, opts)
1852
+ # @option opts [String] :folder The document folder.
1853
+ # @return [File]
1854
+ def get_pdf_in_storage_to_pdf_a(name, type, opts = {})
1855
+ data, _status_code, _headers = get_pdf_in_storage_to_pdf_a_with_http_info(name, type, opts)
1835
1856
  return data
1836
1857
  end
1837
1858
 
1838
- # Read segment text format.
1859
+ # Converts PDF document (located on storage) to PdfA format and returns resulting file in response content
1839
1860
  #
1840
- # @param name
1841
- # @param page_number
1842
- # @param fragment_number
1843
- # @param segment_number
1861
+ # @param name The document name.
1862
+ # @param type Type of PdfA format.
1844
1863
  # @param [Hash] opts the optional parameters
1845
- # @option opts [String] :storage
1846
- # @option opts [String] :folder
1847
- # @return [Array<(TextFormatResponse, Fixnum, Hash)>] TextFormatResponse data, response status code and response headers
1848
- def get_segment_text_format_with_http_info(name, page_number, fragment_number, segment_number, opts = {})
1864
+ # @option opts [String] :folder The document folder.
1865
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1866
+ def get_pdf_in_storage_to_pdf_a_with_http_info(name, type, opts = {})
1849
1867
  if @api_client.config.debugging
1850
- @api_client.config.logger.debug "Calling API: PdfApi.get_segment_text_format ..."
1868
+ @api_client.config.logger.debug "Calling API: PdfApi.get_pdf_in_storage_to_pdf_a ..."
1851
1869
  end
1852
1870
  # verify the required parameter 'name' is set
1853
1871
  if @api_client.config.client_side_validation && name.nil?
1854
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_segment_text_format"
1872
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_pdf_in_storage_to_pdf_a"
1855
1873
  end
1856
- # verify the required parameter 'page_number' is set
1857
- if @api_client.config.client_side_validation && page_number.nil?
1858
- fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_segment_text_format"
1859
- end
1860
- # verify the required parameter 'fragment_number' is set
1861
- if @api_client.config.client_side_validation && fragment_number.nil?
1862
- fail ArgumentError, "Missing the required parameter 'fragment_number' when calling PdfApi.get_segment_text_format"
1863
- end
1864
- # verify the required parameter 'segment_number' is set
1865
- if @api_client.config.client_side_validation && segment_number.nil?
1866
- fail ArgumentError, "Missing the required parameter 'segment_number' when calling PdfApi.get_segment_text_format"
1874
+ # verify the required parameter 'type' is set
1875
+ if @api_client.config.client_side_validation && type.nil?
1876
+ fail ArgumentError, "Missing the required parameter 'type' when calling PdfApi.get_pdf_in_storage_to_pdf_a"
1867
1877
  end
1868
1878
  # resource path
1869
- local_var_path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/segments/{segmentNumber}/textformat".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s).sub('{' + 'segmentNumber' + '}', segment_number.to_s)
1879
+ local_var_path = "/pdf/{name}/convert/pdfa".sub('{' + 'name' + '}', name.to_s)
1870
1880
 
1871
1881
  # query parameters
1872
1882
  query_params = {}
1873
- query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1883
+ query_params[:'type'] = type
1874
1884
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1875
1885
 
1876
1886
  # header parameters
1877
1887
  header_params = {}
1878
1888
  # HTTP header 'Accept' (if needed)
1879
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1889
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
1880
1890
  # HTTP header 'Content-Type'
1881
1891
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1882
1892
 
@@ -1892,67 +1902,52 @@ module AsposePdfCloud
1892
1902
  :form_params => form_params,
1893
1903
  :body => post_body,
1894
1904
  :auth_names => auth_names,
1895
- :return_type => 'TextFormatResponse')
1905
+ :return_type => 'File')
1896
1906
  if @api_client.config.debugging
1897
- @api_client.config.logger.debug "API called: PdfApi#get_segment_text_format\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1907
+ @api_client.config.logger.debug "API called: PdfApi#get_pdf_in_storage_to_pdf_a\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1898
1908
  end
1899
1909
  return data, status_code, headers
1900
1910
  end
1901
1911
 
1902
- # Read fragment segments.
1912
+ # Converts PDF document (located on storage) to SVG format and returns resulting file in response content
1903
1913
  #
1904
- # @param name
1905
- # @param page_number
1906
- # @param fragment_number
1914
+ # @param name The document name.
1907
1915
  # @param [Hash] opts the optional parameters
1908
- # @option opts [String] :with_empty
1909
- # @option opts [String] :storage
1910
- # @option opts [String] :folder
1911
- # @return [TextItemsResponse]
1912
- def get_segments(name, page_number, fragment_number, opts = {})
1913
- data, _status_code, _headers = get_segments_with_http_info(name, page_number, fragment_number, opts)
1916
+ # @option opts [BOOLEAN] :compress_output_to_zip_archive Specifies whether output will be created as one zip-archive.
1917
+ # @option opts [String] :folder The document folder.
1918
+ # @return [File]
1919
+ def get_pdf_in_storage_to_svg(name, opts = {})
1920
+ data, _status_code, _headers = get_pdf_in_storage_to_svg_with_http_info(name, opts)
1914
1921
  return data
1915
1922
  end
1916
1923
 
1917
- # Read fragment segments.
1924
+ # Converts PDF document (located on storage) to SVG format and returns resulting file in response content
1918
1925
  #
1919
- # @param name
1920
- # @param page_number
1921
- # @param fragment_number
1926
+ # @param name The document name.
1922
1927
  # @param [Hash] opts the optional parameters
1923
- # @option opts [String] :with_empty
1924
- # @option opts [String] :storage
1925
- # @option opts [String] :folder
1926
- # @return [Array<(TextItemsResponse, Fixnum, Hash)>] TextItemsResponse data, response status code and response headers
1927
- def get_segments_with_http_info(name, page_number, fragment_number, opts = {})
1928
+ # @option opts [BOOLEAN] :compress_output_to_zip_archive Specifies whether output will be created as one zip-archive.
1929
+ # @option opts [String] :folder The document folder.
1930
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1931
+ def get_pdf_in_storage_to_svg_with_http_info(name, opts = {})
1928
1932
  if @api_client.config.debugging
1929
- @api_client.config.logger.debug "Calling API: PdfApi.get_segments ..."
1933
+ @api_client.config.logger.debug "Calling API: PdfApi.get_pdf_in_storage_to_svg ..."
1930
1934
  end
1931
1935
  # verify the required parameter 'name' is set
1932
1936
  if @api_client.config.client_side_validation && name.nil?
1933
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_segments"
1934
- end
1935
- # verify the required parameter 'page_number' is set
1936
- if @api_client.config.client_side_validation && page_number.nil?
1937
- fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_segments"
1938
- end
1939
- # verify the required parameter 'fragment_number' is set
1940
- if @api_client.config.client_side_validation && fragment_number.nil?
1941
- fail ArgumentError, "Missing the required parameter 'fragment_number' when calling PdfApi.get_segments"
1937
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_pdf_in_storage_to_svg"
1942
1938
  end
1943
1939
  # resource path
1944
- local_var_path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/segments".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s)
1940
+ local_var_path = "/pdf/{name}/convert/svg".sub('{' + 'name' + '}', name.to_s)
1945
1941
 
1946
1942
  # query parameters
1947
1943
  query_params = {}
1948
- query_params[:'withEmpty'] = opts[:'with_empty'] if !opts[:'with_empty'].nil?
1949
- query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1944
+ query_params[:'compressOutputToZipArchive'] = opts[:'compress_output_to_zip_archive'] if !opts[:'compress_output_to_zip_archive'].nil?
1950
1945
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1951
1946
 
1952
1947
  # header parameters
1953
1948
  header_params = {}
1954
1949
  # HTTP header 'Accept' (if needed)
1955
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1950
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
1956
1951
  # HTTP header 'Content-Type'
1957
1952
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1958
1953
 
@@ -1968,86 +1963,94 @@ module AsposePdfCloud
1968
1963
  :form_params => form_params,
1969
1964
  :body => post_body,
1970
1965
  :auth_names => auth_names,
1971
- :return_type => 'TextItemsResponse')
1966
+ :return_type => 'File')
1972
1967
  if @api_client.config.debugging
1973
- @api_client.config.logger.debug "API called: PdfApi#get_segments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1968
+ @api_client.config.logger.debug "API called: PdfApi#get_pdf_in_storage_to_svg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1974
1969
  end
1975
1970
  return data, status_code, headers
1976
1971
  end
1977
1972
 
1978
- # Read document text.
1973
+ # Converts PDF document (located on storage) to TIFF format and returns resulting file in response content
1979
1974
  #
1980
- # @param name
1981
- # @param x
1982
- # @param y
1983
- # @param width
1984
- # @param height
1975
+ # @param name The document name.
1985
1976
  # @param [Hash] opts the optional parameters
1986
- # @option opts [Array<String>] :format
1987
- # @option opts [String] :regex
1988
- # @option opts [String] :storage
1989
- # @option opts [String] :folder
1990
- # @return [TextRectsResponse]
1991
- def get_text(name, x, y, width, height, opts = {})
1992
- data, _status_code, _headers = get_text_with_http_info(name, x, y, width, height, opts)
1977
+ # @option opts [Float] :brightness Image brightness.
1978
+ # @option opts [String] :compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
1979
+ # @option opts [String] :color_depth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
1980
+ # @option opts [Integer] :left_margin Left image margin.
1981
+ # @option opts [Integer] :right_margin Right image margin.
1982
+ # @option opts [Integer] :top_margin Top image margin.
1983
+ # @option opts [Integer] :bottom_margin Bottom image margin.
1984
+ # @option opts [String] :orientation Image orientation. Possible values are: None, Landscape, Portait.
1985
+ # @option opts [BOOLEAN] :skip_blank_pages Skip blank pages flag.
1986
+ # @option opts [Integer] :width Image width.
1987
+ # @option opts [Integer] :height Image height.
1988
+ # @option opts [Integer] :x_resolution Horizontal resolution.
1989
+ # @option opts [Integer] :y_resolution Vertical resolution.
1990
+ # @option opts [Integer] :page_index Start page to export.
1991
+ # @option opts [Integer] :page_count Number of pages to export.
1992
+ # @option opts [String] :folder The document folder.
1993
+ # @return [File]
1994
+ def get_pdf_in_storage_to_tiff(name, opts = {})
1995
+ data, _status_code, _headers = get_pdf_in_storage_to_tiff_with_http_info(name, opts)
1993
1996
  return data
1994
1997
  end
1995
1998
 
1996
- # Read document text.
1999
+ # Converts PDF document (located on storage) to TIFF format and returns resulting file in response content
1997
2000
  #
1998
- # @param name
1999
- # @param x
2000
- # @param y
2001
- # @param width
2002
- # @param height
2001
+ # @param name The document name.
2003
2002
  # @param [Hash] opts the optional parameters
2004
- # @option opts [Array<String>] :format
2005
- # @option opts [String] :regex
2006
- # @option opts [String] :storage
2007
- # @option opts [String] :folder
2008
- # @return [Array<(TextRectsResponse, Fixnum, Hash)>] TextRectsResponse data, response status code and response headers
2009
- def get_text_with_http_info(name, x, y, width, height, opts = {})
2003
+ # @option opts [Float] :brightness Image brightness.
2004
+ # @option opts [String] :compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
2005
+ # @option opts [String] :color_depth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
2006
+ # @option opts [Integer] :left_margin Left image margin.
2007
+ # @option opts [Integer] :right_margin Right image margin.
2008
+ # @option opts [Integer] :top_margin Top image margin.
2009
+ # @option opts [Integer] :bottom_margin Bottom image margin.
2010
+ # @option opts [String] :orientation Image orientation. Possible values are: None, Landscape, Portait.
2011
+ # @option opts [BOOLEAN] :skip_blank_pages Skip blank pages flag.
2012
+ # @option opts [Integer] :width Image width.
2013
+ # @option opts [Integer] :height Image height.
2014
+ # @option opts [Integer] :x_resolution Horizontal resolution.
2015
+ # @option opts [Integer] :y_resolution Vertical resolution.
2016
+ # @option opts [Integer] :page_index Start page to export.
2017
+ # @option opts [Integer] :page_count Number of pages to export.
2018
+ # @option opts [String] :folder The document folder.
2019
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
2020
+ def get_pdf_in_storage_to_tiff_with_http_info(name, opts = {})
2010
2021
  if @api_client.config.debugging
2011
- @api_client.config.logger.debug "Calling API: PdfApi.get_text ..."
2022
+ @api_client.config.logger.debug "Calling API: PdfApi.get_pdf_in_storage_to_tiff ..."
2012
2023
  end
2013
2024
  # verify the required parameter 'name' is set
2014
2025
  if @api_client.config.client_side_validation && name.nil?
2015
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_text"
2016
- end
2017
- # verify the required parameter 'x' is set
2018
- if @api_client.config.client_side_validation && x.nil?
2019
- fail ArgumentError, "Missing the required parameter 'x' when calling PdfApi.get_text"
2020
- end
2021
- # verify the required parameter 'y' is set
2022
- if @api_client.config.client_side_validation && y.nil?
2023
- fail ArgumentError, "Missing the required parameter 'y' when calling PdfApi.get_text"
2024
- end
2025
- # verify the required parameter 'width' is set
2026
- if @api_client.config.client_side_validation && width.nil?
2027
- fail ArgumentError, "Missing the required parameter 'width' when calling PdfApi.get_text"
2028
- end
2029
- # verify the required parameter 'height' is set
2030
- if @api_client.config.client_side_validation && height.nil?
2031
- fail ArgumentError, "Missing the required parameter 'height' when calling PdfApi.get_text"
2026
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_pdf_in_storage_to_tiff"
2032
2027
  end
2033
2028
  # resource path
2034
- local_var_path = "/pdf/{name}/text".sub('{' + 'name' + '}', name.to_s)
2029
+ local_var_path = "/pdf/{name}/convert/tiff".sub('{' + 'name' + '}', name.to_s)
2035
2030
 
2036
2031
  # query parameters
2037
2032
  query_params = {}
2038
- query_params[:'X'] = x
2039
- query_params[:'Y'] = y
2040
- query_params[:'Width'] = width
2041
- query_params[:'Height'] = height
2042
- query_params[:'format'] = @api_client.build_collection_param(opts[:'format'], :multi) if !opts[:'format'].nil?
2043
- query_params[:'regex'] = opts[:'regex'] if !opts[:'regex'].nil?
2044
- query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2033
+ query_params[:'brightness'] = opts[:'brightness'] if !opts[:'brightness'].nil?
2034
+ query_params[:'compression'] = opts[:'compression'] if !opts[:'compression'].nil?
2035
+ query_params[:'colorDepth'] = opts[:'color_depth'] if !opts[:'color_depth'].nil?
2036
+ query_params[:'leftMargin'] = opts[:'left_margin'] if !opts[:'left_margin'].nil?
2037
+ query_params[:'rightMargin'] = opts[:'right_margin'] if !opts[:'right_margin'].nil?
2038
+ query_params[:'topMargin'] = opts[:'top_margin'] if !opts[:'top_margin'].nil?
2039
+ query_params[:'bottomMargin'] = opts[:'bottom_margin'] if !opts[:'bottom_margin'].nil?
2040
+ query_params[:'orientation'] = opts[:'orientation'] if !opts[:'orientation'].nil?
2041
+ query_params[:'skipBlankPages'] = opts[:'skip_blank_pages'] if !opts[:'skip_blank_pages'].nil?
2042
+ query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
2043
+ query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
2044
+ query_params[:'xResolution'] = opts[:'x_resolution'] if !opts[:'x_resolution'].nil?
2045
+ query_params[:'yResolution'] = opts[:'y_resolution'] if !opts[:'y_resolution'].nil?
2046
+ query_params[:'pageIndex'] = opts[:'page_index'] if !opts[:'page_index'].nil?
2047
+ query_params[:'pageCount'] = opts[:'page_count'] if !opts[:'page_count'].nil?
2045
2048
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2046
2049
 
2047
2050
  # header parameters
2048
2051
  header_params = {}
2049
2052
  # HTTP header 'Accept' (if needed)
2050
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2053
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
2051
2054
  # HTTP header 'Content-Type'
2052
2055
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2053
2056
 
@@ -2063,55 +2066,61 @@ module AsposePdfCloud
2063
2066
  :form_params => form_params,
2064
2067
  :body => post_body,
2065
2068
  :auth_names => auth_names,
2066
- :return_type => 'TextRectsResponse')
2069
+ :return_type => 'File')
2067
2070
  if @api_client.config.debugging
2068
- @api_client.config.logger.debug "API called: PdfApi#get_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2071
+ @api_client.config.logger.debug "API called: PdfApi#get_pdf_in_storage_to_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2069
2072
  end
2070
2073
  return data, status_code, headers
2071
2074
  end
2072
2075
 
2073
- # Read document text items.
2076
+ # Converts PDF document (located on storage) to XLS format and returns resulting file in response content
2074
2077
  #
2075
- # @param name
2078
+ # @param name The document name.
2076
2079
  # @param [Hash] opts the optional parameters
2077
- # @option opts [String] :with_empty
2078
- # @option opts [String] :storage
2079
- # @option opts [String] :folder
2080
- # @return [TextItemsResponse]
2081
- def get_text_items(name, opts = {})
2082
- data, _status_code, _headers = get_text_items_with_http_info(name, opts)
2080
+ # @option opts [BOOLEAN] :insert_blank_column_at_first Insert blank column at first
2081
+ # @option opts [BOOLEAN] :minimize_the_number_of_worksheets Minimize the number of worksheets
2082
+ # @option opts [Float] :scale_factor Scale factor
2083
+ # @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
2084
+ # @option opts [String] :folder The document folder.
2085
+ # @return [File]
2086
+ def get_pdf_in_storage_to_xls(name, opts = {})
2087
+ data, _status_code, _headers = get_pdf_in_storage_to_xls_with_http_info(name, opts)
2083
2088
  return data
2084
2089
  end
2085
2090
 
2086
- # Read document text items.
2091
+ # Converts PDF document (located on storage) to XLS format and returns resulting file in response content
2087
2092
  #
2088
- # @param name
2093
+ # @param name The document name.
2089
2094
  # @param [Hash] opts the optional parameters
2090
- # @option opts [String] :with_empty
2091
- # @option opts [String] :storage
2092
- # @option opts [String] :folder
2093
- # @return [Array<(TextItemsResponse, Fixnum, Hash)>] TextItemsResponse data, response status code and response headers
2094
- def get_text_items_with_http_info(name, opts = {})
2095
+ # @option opts [BOOLEAN] :insert_blank_column_at_first Insert blank column at first
2096
+ # @option opts [BOOLEAN] :minimize_the_number_of_worksheets Minimize the number of worksheets
2097
+ # @option opts [Float] :scale_factor Scale factor
2098
+ # @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
2099
+ # @option opts [String] :folder The document folder.
2100
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
2101
+ def get_pdf_in_storage_to_xls_with_http_info(name, opts = {})
2095
2102
  if @api_client.config.debugging
2096
- @api_client.config.logger.debug "Calling API: PdfApi.get_text_items ..."
2103
+ @api_client.config.logger.debug "Calling API: PdfApi.get_pdf_in_storage_to_xls ..."
2097
2104
  end
2098
2105
  # verify the required parameter 'name' is set
2099
2106
  if @api_client.config.client_side_validation && name.nil?
2100
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_text_items"
2107
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_pdf_in_storage_to_xls"
2101
2108
  end
2102
2109
  # resource path
2103
- local_var_path = "/pdf/{name}/textItems".sub('{' + 'name' + '}', name.to_s)
2110
+ local_var_path = "/pdf/{name}/convert/xls".sub('{' + 'name' + '}', name.to_s)
2104
2111
 
2105
2112
  # query parameters
2106
2113
  query_params = {}
2107
- query_params[:'withEmpty'] = opts[:'with_empty'] if !opts[:'with_empty'].nil?
2108
- query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2114
+ query_params[:'insertBlankColumnAtFirst'] = opts[:'insert_blank_column_at_first'] if !opts[:'insert_blank_column_at_first'].nil?
2115
+ query_params[:'minimizeTheNumberOfWorksheets'] = opts[:'minimize_the_number_of_worksheets'] if !opts[:'minimize_the_number_of_worksheets'].nil?
2116
+ query_params[:'scaleFactor'] = opts[:'scale_factor'] if !opts[:'scale_factor'].nil?
2117
+ query_params[:'uniformWorksheets'] = opts[:'uniform_worksheets'] if !opts[:'uniform_worksheets'].nil?
2109
2118
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2110
2119
 
2111
2120
  # header parameters
2112
2121
  header_params = {}
2113
2122
  # HTTP header 'Accept' (if needed)
2114
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2123
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
2115
2124
  # HTTP header 'Content-Type'
2116
2125
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2117
2126
 
@@ -2127,52 +2136,49 @@ module AsposePdfCloud
2127
2136
  :form_params => form_params,
2128
2137
  :body => post_body,
2129
2138
  :auth_names => auth_names,
2130
- :return_type => 'TextItemsResponse')
2139
+ :return_type => 'File')
2131
2140
  if @api_client.config.debugging
2132
- @api_client.config.logger.debug "API called: PdfApi#get_text_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2141
+ @api_client.config.logger.debug "API called: PdfApi#get_pdf_in_storage_to_xls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2133
2142
  end
2134
2143
  return data, status_code, headers
2135
2144
  end
2136
2145
 
2137
- # Get number of words per document page.
2146
+ # Converts PDF document (located on storage) to XPS format and returns resulting file in response content
2138
2147
  #
2139
2148
  # @param name The document name.
2140
2149
  # @param [Hash] opts the optional parameters
2141
- # @option opts [String] :storage The document storage.
2142
2150
  # @option opts [String] :folder The document folder.
2143
- # @return [WordCountResponse]
2144
- def get_words_per_page(name, opts = {})
2145
- data, _status_code, _headers = get_words_per_page_with_http_info(name, opts)
2151
+ # @return [File]
2152
+ def get_pdf_in_storage_to_xps(name, opts = {})
2153
+ data, _status_code, _headers = get_pdf_in_storage_to_xps_with_http_info(name, opts)
2146
2154
  return data
2147
2155
  end
2148
2156
 
2149
- # Get number of words per document page.
2157
+ # Converts PDF document (located on storage) to XPS format and returns resulting file in response content
2150
2158
  #
2151
2159
  # @param name The document name.
2152
2160
  # @param [Hash] opts the optional parameters
2153
- # @option opts [String] :storage The document storage.
2154
2161
  # @option opts [String] :folder The document folder.
2155
- # @return [Array<(WordCountResponse, Fixnum, Hash)>] WordCountResponse data, response status code and response headers
2156
- def get_words_per_page_with_http_info(name, opts = {})
2162
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
2163
+ def get_pdf_in_storage_to_xps_with_http_info(name, opts = {})
2157
2164
  if @api_client.config.debugging
2158
- @api_client.config.logger.debug "Calling API: PdfApi.get_words_per_page ..."
2165
+ @api_client.config.logger.debug "Calling API: PdfApi.get_pdf_in_storage_to_xps ..."
2159
2166
  end
2160
2167
  # verify the required parameter 'name' is set
2161
2168
  if @api_client.config.client_side_validation && name.nil?
2162
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_words_per_page"
2169
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_pdf_in_storage_to_xps"
2163
2170
  end
2164
2171
  # resource path
2165
- local_var_path = "/pdf/{name}/pages/wordCount".sub('{' + 'name' + '}', name.to_s)
2172
+ local_var_path = "/pdf/{name}/convert/xps".sub('{' + 'name' + '}', name.to_s)
2166
2173
 
2167
2174
  # query parameters
2168
2175
  query_params = {}
2169
- query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2170
2176
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2171
2177
 
2172
2178
  # header parameters
2173
2179
  header_params = {}
2174
2180
  # HTTP header 'Accept' (if needed)
2175
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2181
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
2176
2182
  # HTTP header 'Content-Type'
2177
2183
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2178
2184
 
@@ -2188,56 +2194,63 @@ module AsposePdfCloud
2188
2194
  :form_params => form_params,
2189
2195
  :body => post_body,
2190
2196
  :auth_names => auth_names,
2191
- :return_type => 'WordCountResponse')
2197
+ :return_type => 'File')
2192
2198
  if @api_client.config.debugging
2193
- @api_client.config.logger.debug "API called: PdfApi#get_words_per_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2199
+ @api_client.config.logger.debug "API called: PdfApi#get_pdf_in_storage_to_xps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2194
2200
  end
2195
2201
  return data, status_code, headers
2196
2202
  end
2197
2203
 
2198
- # Append document to existing one.
2204
+ # Read segment.
2199
2205
  #
2200
- # @param name The original document name.
2206
+ # @param name
2207
+ # @param page_number
2208
+ # @param fragment_number
2209
+ # @param segment_number
2201
2210
  # @param [Hash] opts the optional parameters
2202
- # @option opts [AppendDocument] :append_document with the append document data.
2203
- # @option opts [String] :append_file Append file server path.
2204
- # @option opts [Integer] :start_page Appending start page. (default to 0)
2205
- # @option opts [Integer] :end_page Appending end page. (default to 0)
2206
- # @option opts [String] :storage The documents storage.
2207
- # @option opts [String] :folder The original document folder.
2208
- # @return [DocumentResponse]
2209
- def post_append_document(name, opts = {})
2210
- data, _status_code, _headers = post_append_document_with_http_info(name, opts)
2211
+ # @option opts [String] :storage
2212
+ # @option opts [String] :folder
2213
+ # @return [TextItemResponse]
2214
+ def get_segment(name, page_number, fragment_number, segment_number, opts = {})
2215
+ data, _status_code, _headers = get_segment_with_http_info(name, page_number, fragment_number, segment_number, opts)
2211
2216
  return data
2212
2217
  end
2213
2218
 
2214
- # Append document to existing one.
2219
+ # Read segment.
2215
2220
  #
2216
- # @param name The original document name.
2221
+ # @param name
2222
+ # @param page_number
2223
+ # @param fragment_number
2224
+ # @param segment_number
2217
2225
  # @param [Hash] opts the optional parameters
2218
- # @option opts [AppendDocument] :append_document with the append document data.
2219
- # @option opts [String] :append_file Append file server path.
2220
- # @option opts [Integer] :start_page Appending start page.
2221
- # @option opts [Integer] :end_page Appending end page.
2222
- # @option opts [String] :storage The documents storage.
2223
- # @option opts [String] :folder The original document folder.
2224
- # @return [Array<(DocumentResponse, Fixnum, Hash)>] DocumentResponse data, response status code and response headers
2225
- def post_append_document_with_http_info(name, opts = {})
2226
+ # @option opts [String] :storage
2227
+ # @option opts [String] :folder
2228
+ # @return [Array<(TextItemResponse, Fixnum, Hash)>] TextItemResponse data, response status code and response headers
2229
+ def get_segment_with_http_info(name, page_number, fragment_number, segment_number, opts = {})
2226
2230
  if @api_client.config.debugging
2227
- @api_client.config.logger.debug "Calling API: PdfApi.post_append_document ..."
2231
+ @api_client.config.logger.debug "Calling API: PdfApi.get_segment ..."
2228
2232
  end
2229
2233
  # verify the required parameter 'name' is set
2230
2234
  if @api_client.config.client_side_validation && name.nil?
2231
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_append_document"
2235
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_segment"
2236
+ end
2237
+ # verify the required parameter 'page_number' is set
2238
+ if @api_client.config.client_side_validation && page_number.nil?
2239
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_segment"
2240
+ end
2241
+ # verify the required parameter 'fragment_number' is set
2242
+ if @api_client.config.client_side_validation && fragment_number.nil?
2243
+ fail ArgumentError, "Missing the required parameter 'fragment_number' when calling PdfApi.get_segment"
2244
+ end
2245
+ # verify the required parameter 'segment_number' is set
2246
+ if @api_client.config.client_side_validation && segment_number.nil?
2247
+ fail ArgumentError, "Missing the required parameter 'segment_number' when calling PdfApi.get_segment"
2232
2248
  end
2233
2249
  # resource path
2234
- local_var_path = "/pdf/{name}/appendDocument".sub('{' + 'name' + '}', name.to_s)
2250
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/segments/{segmentNumber}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s).sub('{' + 'segmentNumber' + '}', segment_number.to_s)
2235
2251
 
2236
2252
  # query parameters
2237
2253
  query_params = {}
2238
- query_params[:'appendFile'] = opts[:'append_file'] if !opts[:'append_file'].nil?
2239
- query_params[:'startPage'] = opts[:'start_page'] if !opts[:'start_page'].nil?
2240
- query_params[:'endPage'] = opts[:'end_page'] if !opts[:'end_page'].nil?
2241
2254
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2242
2255
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2243
2256
 
@@ -2252,62 +2265,71 @@ module AsposePdfCloud
2252
2265
  form_params = {}
2253
2266
 
2254
2267
  # http body (model)
2255
- post_body = @api_client.object_to_http_body(opts[:'append_document'])
2268
+ post_body = nil
2256
2269
  auth_names = []
2257
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2270
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2258
2271
  :header_params => header_params,
2259
2272
  :query_params => query_params,
2260
2273
  :form_params => form_params,
2261
2274
  :body => post_body,
2262
2275
  :auth_names => auth_names,
2263
- :return_type => 'DocumentResponse')
2276
+ :return_type => 'TextItemResponse')
2264
2277
  if @api_client.config.debugging
2265
- @api_client.config.logger.debug "API called: PdfApi#post_append_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2278
+ @api_client.config.logger.debug "API called: PdfApi#get_segment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2266
2279
  end
2267
2280
  return data, status_code, headers
2268
2281
  end
2269
2282
 
2270
- # Create field.
2283
+ # Read segment text format.
2271
2284
  #
2272
- # @param name The document name.
2273
- # @param page Document page number.
2285
+ # @param name
2286
+ # @param page_number
2287
+ # @param fragment_number
2288
+ # @param segment_number
2274
2289
  # @param [Hash] opts the optional parameters
2275
- # @option opts [Field] :field with the field data.
2276
- # @option opts [String] :storage The document storage.
2277
- # @option opts [String] :folder The document folder.
2278
- # @return [SaaSposeResponse]
2279
- def post_create_field(name, page, opts = {})
2280
- data, _status_code, _headers = post_create_field_with_http_info(name, page, opts)
2290
+ # @option opts [String] :storage
2291
+ # @option opts [String] :folder
2292
+ # @return [TextFormatResponse]
2293
+ def get_segment_text_format(name, page_number, fragment_number, segment_number, opts = {})
2294
+ data, _status_code, _headers = get_segment_text_format_with_http_info(name, page_number, fragment_number, segment_number, opts)
2281
2295
  return data
2282
2296
  end
2283
2297
 
2284
- # Create field.
2298
+ # Read segment text format.
2285
2299
  #
2286
- # @param name The document name.
2287
- # @param page Document page number.
2300
+ # @param name
2301
+ # @param page_number
2302
+ # @param fragment_number
2303
+ # @param segment_number
2288
2304
  # @param [Hash] opts the optional parameters
2289
- # @option opts [Field] :field with the field data.
2290
- # @option opts [String] :storage The document storage.
2291
- # @option opts [String] :folder The document folder.
2292
- # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
2293
- def post_create_field_with_http_info(name, page, opts = {})
2305
+ # @option opts [String] :storage
2306
+ # @option opts [String] :folder
2307
+ # @return [Array<(TextFormatResponse, Fixnum, Hash)>] TextFormatResponse data, response status code and response headers
2308
+ def get_segment_text_format_with_http_info(name, page_number, fragment_number, segment_number, opts = {})
2294
2309
  if @api_client.config.debugging
2295
- @api_client.config.logger.debug "Calling API: PdfApi.post_create_field ..."
2310
+ @api_client.config.logger.debug "Calling API: PdfApi.get_segment_text_format ..."
2296
2311
  end
2297
2312
  # verify the required parameter 'name' is set
2298
2313
  if @api_client.config.client_side_validation && name.nil?
2299
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_create_field"
2314
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_segment_text_format"
2300
2315
  end
2301
- # verify the required parameter 'page' is set
2302
- if @api_client.config.client_side_validation && page.nil?
2303
- fail ArgumentError, "Missing the required parameter 'page' when calling PdfApi.post_create_field"
2316
+ # verify the required parameter 'page_number' is set
2317
+ if @api_client.config.client_side_validation && page_number.nil?
2318
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_segment_text_format"
2319
+ end
2320
+ # verify the required parameter 'fragment_number' is set
2321
+ if @api_client.config.client_side_validation && fragment_number.nil?
2322
+ fail ArgumentError, "Missing the required parameter 'fragment_number' when calling PdfApi.get_segment_text_format"
2323
+ end
2324
+ # verify the required parameter 'segment_number' is set
2325
+ if @api_client.config.client_side_validation && segment_number.nil?
2326
+ fail ArgumentError, "Missing the required parameter 'segment_number' when calling PdfApi.get_segment_text_format"
2304
2327
  end
2305
2328
  # resource path
2306
- local_var_path = "/pdf/{name}/fields".sub('{' + 'name' + '}', name.to_s)
2329
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/segments/{segmentNumber}/textformat".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s).sub('{' + 'segmentNumber' + '}', segment_number.to_s)
2307
2330
 
2308
2331
  # query parameters
2309
2332
  query_params = {}
2310
- query_params[:'page'] = page
2311
2333
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2312
2334
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2313
2335
 
@@ -2322,59 +2344,68 @@ module AsposePdfCloud
2322
2344
  form_params = {}
2323
2345
 
2324
2346
  # http body (model)
2325
- post_body = @api_client.object_to_http_body(opts[:'field'])
2347
+ post_body = nil
2326
2348
  auth_names = []
2327
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2349
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2328
2350
  :header_params => header_params,
2329
2351
  :query_params => query_params,
2330
2352
  :form_params => form_params,
2331
2353
  :body => post_body,
2332
2354
  :auth_names => auth_names,
2333
- :return_type => 'SaaSposeResponse')
2355
+ :return_type => 'TextFormatResponse')
2334
2356
  if @api_client.config.debugging
2335
- @api_client.config.logger.debug "API called: PdfApi#post_create_field\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2357
+ @api_client.config.logger.debug "API called: PdfApi#get_segment_text_format\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2336
2358
  end
2337
2359
  return data, status_code, headers
2338
2360
  end
2339
2361
 
2340
- # Document's replace text method. Deprecated
2362
+ # Read fragment segments.
2341
2363
  #
2342
2364
  # @param name
2343
- # @param text_replace
2365
+ # @param page_number
2366
+ # @param fragment_number
2344
2367
  # @param [Hash] opts the optional parameters
2368
+ # @option opts [String] :with_empty
2345
2369
  # @option opts [String] :storage
2346
2370
  # @option opts [String] :folder
2347
- # @return [DocumentTextReplaceResponse]
2348
- def post_document_replace_text(name, text_replace, opts = {})
2349
- data, _status_code, _headers = post_document_replace_text_with_http_info(name, text_replace, opts)
2371
+ # @return [TextItemsResponse]
2372
+ def get_segments(name, page_number, fragment_number, opts = {})
2373
+ data, _status_code, _headers = get_segments_with_http_info(name, page_number, fragment_number, opts)
2350
2374
  return data
2351
2375
  end
2352
2376
 
2353
- # Document&#39;s replace text method. Deprecated
2377
+ # Read fragment segments.
2354
2378
  #
2355
2379
  # @param name
2356
- # @param text_replace
2380
+ # @param page_number
2381
+ # @param fragment_number
2357
2382
  # @param [Hash] opts the optional parameters
2383
+ # @option opts [String] :with_empty
2358
2384
  # @option opts [String] :storage
2359
2385
  # @option opts [String] :folder
2360
- # @return [Array<(DocumentTextReplaceResponse, Fixnum, Hash)>] DocumentTextReplaceResponse data, response status code and response headers
2361
- def post_document_replace_text_with_http_info(name, text_replace, opts = {})
2386
+ # @return [Array<(TextItemsResponse, Fixnum, Hash)>] TextItemsResponse data, response status code and response headers
2387
+ def get_segments_with_http_info(name, page_number, fragment_number, opts = {})
2362
2388
  if @api_client.config.debugging
2363
- @api_client.config.logger.debug "Calling API: PdfApi.post_document_replace_text ..."
2389
+ @api_client.config.logger.debug "Calling API: PdfApi.get_segments ..."
2364
2390
  end
2365
2391
  # verify the required parameter 'name' is set
2366
2392
  if @api_client.config.client_side_validation && name.nil?
2367
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_replace_text"
2393
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_segments"
2368
2394
  end
2369
- # verify the required parameter 'text_replace' is set
2370
- if @api_client.config.client_side_validation && text_replace.nil?
2371
- fail ArgumentError, "Missing the required parameter 'text_replace' when calling PdfApi.post_document_replace_text"
2395
+ # verify the required parameter 'page_number' is set
2396
+ if @api_client.config.client_side_validation && page_number.nil?
2397
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_segments"
2398
+ end
2399
+ # verify the required parameter 'fragment_number' is set
2400
+ if @api_client.config.client_side_validation && fragment_number.nil?
2401
+ fail ArgumentError, "Missing the required parameter 'fragment_number' when calling PdfApi.get_segments"
2372
2402
  end
2373
2403
  # resource path
2374
- local_var_path = "/pdf/{name}/replaceText".sub('{' + 'name' + '}', name.to_s)
2404
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/segments".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s)
2375
2405
 
2376
2406
  # query parameters
2377
2407
  query_params = {}
2408
+ query_params[:'withEmpty'] = opts[:'with_empty'] if !opts[:'with_empty'].nil?
2378
2409
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2379
2410
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2380
2411
 
@@ -2389,60 +2420,88 @@ module AsposePdfCloud
2389
2420
  form_params = {}
2390
2421
 
2391
2422
  # http body (model)
2392
- post_body = @api_client.object_to_http_body(text_replace)
2423
+ post_body = nil
2393
2424
  auth_names = []
2394
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2425
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2395
2426
  :header_params => header_params,
2396
2427
  :query_params => query_params,
2397
2428
  :form_params => form_params,
2398
2429
  :body => post_body,
2399
2430
  :auth_names => auth_names,
2400
- :return_type => 'DocumentTextReplaceResponse')
2431
+ :return_type => 'TextItemsResponse')
2401
2432
  if @api_client.config.debugging
2402
- @api_client.config.logger.debug "API called: PdfApi#post_document_replace_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2433
+ @api_client.config.logger.debug "API called: PdfApi#get_segments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2403
2434
  end
2404
2435
  return data, status_code, headers
2405
2436
  end
2406
2437
 
2407
- # Document's replace text method. Deprecated
2438
+ # Read document text.
2408
2439
  #
2409
- # @param name
2410
- # @param text_replace_list_request
2440
+ # @param name The document name.
2441
+ # @param x
2442
+ # @param y
2443
+ # @param width
2444
+ # @param height
2411
2445
  # @param [Hash] opts the optional parameters
2412
- # @option opts [String] :storage
2413
- # @option opts [String] :folder
2414
- # @return [DocumentTextReplaceResponse]
2415
- def post_document_replace_text_list(name, text_replace_list_request, opts = {})
2416
- data, _status_code, _headers = post_document_replace_text_list_with_http_info(name, text_replace_list_request, opts)
2446
+ # @option opts [Array<String>] :format List of formats for search.
2447
+ # @option opts [String] :regex Formats are specified as a regular expression.
2448
+ # @option opts [BOOLEAN] :split_rects Split result fragments (default is true).
2449
+ # @option opts [String] :folder The document folder.
2450
+ # @return [TextRectsResponse]
2451
+ def get_text(name, x, y, width, height, opts = {})
2452
+ data, _status_code, _headers = get_text_with_http_info(name, x, y, width, height, opts)
2417
2453
  return data
2418
2454
  end
2419
2455
 
2420
- # Document&#39;s replace text method. Deprecated
2456
+ # Read document text.
2421
2457
  #
2422
- # @param name
2423
- # @param text_replace_list_request
2458
+ # @param name The document name.
2459
+ # @param x
2460
+ # @param y
2461
+ # @param width
2462
+ # @param height
2424
2463
  # @param [Hash] opts the optional parameters
2425
- # @option opts [String] :storage
2426
- # @option opts [String] :folder
2427
- # @return [Array<(DocumentTextReplaceResponse, Fixnum, Hash)>] DocumentTextReplaceResponse data, response status code and response headers
2428
- def post_document_replace_text_list_with_http_info(name, text_replace_list_request, opts = {})
2464
+ # @option opts [Array<String>] :format List of formats for search.
2465
+ # @option opts [String] :regex Formats are specified as a regular expression.
2466
+ # @option opts [BOOLEAN] :split_rects Split result fragments (default is true).
2467
+ # @option opts [String] :folder The document folder.
2468
+ # @return [Array<(TextRectsResponse, Fixnum, Hash)>] TextRectsResponse data, response status code and response headers
2469
+ def get_text_with_http_info(name, x, y, width, height, opts = {})
2429
2470
  if @api_client.config.debugging
2430
- @api_client.config.logger.debug "Calling API: PdfApi.post_document_replace_text_list ..."
2471
+ @api_client.config.logger.debug "Calling API: PdfApi.get_text ..."
2431
2472
  end
2432
2473
  # verify the required parameter 'name' is set
2433
2474
  if @api_client.config.client_side_validation && name.nil?
2434
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_replace_text_list"
2475
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_text"
2435
2476
  end
2436
- # verify the required parameter 'text_replace_list_request' is set
2437
- if @api_client.config.client_side_validation && text_replace_list_request.nil?
2438
- fail ArgumentError, "Missing the required parameter 'text_replace_list_request' when calling PdfApi.post_document_replace_text_list"
2477
+ # verify the required parameter 'x' is set
2478
+ if @api_client.config.client_side_validation && x.nil?
2479
+ fail ArgumentError, "Missing the required parameter 'x' when calling PdfApi.get_text"
2480
+ end
2481
+ # verify the required parameter 'y' is set
2482
+ if @api_client.config.client_side_validation && y.nil?
2483
+ fail ArgumentError, "Missing the required parameter 'y' when calling PdfApi.get_text"
2484
+ end
2485
+ # verify the required parameter 'width' is set
2486
+ if @api_client.config.client_side_validation && width.nil?
2487
+ fail ArgumentError, "Missing the required parameter 'width' when calling PdfApi.get_text"
2488
+ end
2489
+ # verify the required parameter 'height' is set
2490
+ if @api_client.config.client_side_validation && height.nil?
2491
+ fail ArgumentError, "Missing the required parameter 'height' when calling PdfApi.get_text"
2439
2492
  end
2440
2493
  # resource path
2441
- local_var_path = "/pdf/{name}/replaceTextList".sub('{' + 'name' + '}', name.to_s)
2494
+ local_var_path = "/pdf/{name}/text".sub('{' + 'name' + '}', name.to_s)
2442
2495
 
2443
2496
  # query parameters
2444
2497
  query_params = {}
2445
- query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2498
+ query_params[:'X'] = x
2499
+ query_params[:'Y'] = y
2500
+ query_params[:'Width'] = width
2501
+ query_params[:'Height'] = height
2502
+ query_params[:'format'] = @api_client.build_collection_param(opts[:'format'], :multi) if !opts[:'format'].nil?
2503
+ query_params[:'regex'] = opts[:'regex'] if !opts[:'regex'].nil?
2504
+ query_params[:'splitRects'] = opts[:'split_rects'] if !opts[:'split_rects'].nil?
2446
2505
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2447
2506
 
2448
2507
  # header parameters
@@ -2456,59 +2515,56 @@ module AsposePdfCloud
2456
2515
  form_params = {}
2457
2516
 
2458
2517
  # http body (model)
2459
- post_body = @api_client.object_to_http_body(text_replace_list_request)
2518
+ post_body = nil
2460
2519
  auth_names = []
2461
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2520
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2462
2521
  :header_params => header_params,
2463
2522
  :query_params => query_params,
2464
2523
  :form_params => form_params,
2465
2524
  :body => post_body,
2466
2525
  :auth_names => auth_names,
2467
- :return_type => 'DocumentTextReplaceResponse')
2526
+ :return_type => 'TextRectsResponse')
2468
2527
  if @api_client.config.debugging
2469
- @api_client.config.logger.debug "API called: PdfApi#post_document_replace_text_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2528
+ @api_client.config.logger.debug "API called: PdfApi#get_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2470
2529
  end
2471
2530
  return data, status_code, headers
2472
2531
  end
2473
2532
 
2474
- # Document's replace text method.
2533
+ # Read document text items.
2475
2534
  #
2476
2535
  # @param name
2477
- # @param text_replace
2478
2536
  # @param [Hash] opts the optional parameters
2537
+ # @option opts [String] :with_empty
2479
2538
  # @option opts [String] :storage
2480
2539
  # @option opts [String] :folder
2481
- # @return [TextReplaceResponse]
2482
- def post_document_text_replace(name, text_replace, opts = {})
2483
- data, _status_code, _headers = post_document_text_replace_with_http_info(name, text_replace, opts)
2540
+ # @return [TextItemsResponse]
2541
+ def get_text_items(name, opts = {})
2542
+ data, _status_code, _headers = get_text_items_with_http_info(name, opts)
2484
2543
  return data
2485
2544
  end
2486
2545
 
2487
- # Document&#39;s replace text method.
2546
+ # Read document text items.
2488
2547
  #
2489
2548
  # @param name
2490
- # @param text_replace
2491
2549
  # @param [Hash] opts the optional parameters
2550
+ # @option opts [String] :with_empty
2492
2551
  # @option opts [String] :storage
2493
2552
  # @option opts [String] :folder
2494
- # @return [Array<(TextReplaceResponse, Fixnum, Hash)>] TextReplaceResponse data, response status code and response headers
2495
- def post_document_text_replace_with_http_info(name, text_replace, opts = {})
2553
+ # @return [Array<(TextItemsResponse, Fixnum, Hash)>] TextItemsResponse data, response status code and response headers
2554
+ def get_text_items_with_http_info(name, opts = {})
2496
2555
  if @api_client.config.debugging
2497
- @api_client.config.logger.debug "Calling API: PdfApi.post_document_text_replace ..."
2556
+ @api_client.config.logger.debug "Calling API: PdfApi.get_text_items ..."
2498
2557
  end
2499
2558
  # verify the required parameter 'name' is set
2500
2559
  if @api_client.config.client_side_validation && name.nil?
2501
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_text_replace"
2502
- end
2503
- # verify the required parameter 'text_replace' is set
2504
- if @api_client.config.client_side_validation && text_replace.nil?
2505
- fail ArgumentError, "Missing the required parameter 'text_replace' when calling PdfApi.post_document_text_replace"
2560
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_text_items"
2506
2561
  end
2507
2562
  # resource path
2508
- local_var_path = "/pdf/{name}/text/replace".sub('{' + 'name' + '}', name.to_s)
2563
+ local_var_path = "/pdf/{name}/textItems".sub('{' + 'name' + '}', name.to_s)
2509
2564
 
2510
2565
  # query parameters
2511
2566
  query_params = {}
2567
+ query_params[:'withEmpty'] = opts[:'with_empty'] if !opts[:'with_empty'].nil?
2512
2568
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2513
2569
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2514
2570
 
@@ -2523,66 +2579,125 @@ module AsposePdfCloud
2523
2579
  form_params = {}
2524
2580
 
2525
2581
  # http body (model)
2526
- post_body = @api_client.object_to_http_body(text_replace)
2582
+ post_body = nil
2527
2583
  auth_names = []
2528
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2584
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2529
2585
  :header_params => header_params,
2530
2586
  :query_params => query_params,
2531
2587
  :form_params => form_params,
2532
2588
  :body => post_body,
2533
2589
  :auth_names => auth_names,
2534
- :return_type => 'TextReplaceResponse')
2590
+ :return_type => 'TextItemsResponse')
2535
2591
  if @api_client.config.debugging
2536
- @api_client.config.logger.debug "API called: PdfApi#post_document_text_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2592
+ @api_client.config.logger.debug "API called: PdfApi#get_text_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2537
2593
  end
2538
2594
  return data, status_code, headers
2539
2595
  end
2540
2596
 
2541
- # Move page to new position.
2597
+ # Get number of words per document page.
2542
2598
  #
2543
2599
  # @param name The document name.
2544
- # @param page_number The page number.
2545
- # @param new_index The new page position/index.
2546
2600
  # @param [Hash] opts the optional parameters
2547
2601
  # @option opts [String] :storage The document storage.
2548
2602
  # @option opts [String] :folder The document folder.
2549
- # @return [SaaSposeResponse]
2550
- def post_move_page(name, page_number, new_index, opts = {})
2551
- data, _status_code, _headers = post_move_page_with_http_info(name, page_number, new_index, opts)
2603
+ # @return [WordCountResponse]
2604
+ def get_words_per_page(name, opts = {})
2605
+ data, _status_code, _headers = get_words_per_page_with_http_info(name, opts)
2552
2606
  return data
2553
2607
  end
2554
2608
 
2555
- # Move page to new position.
2609
+ # Get number of words per document page.
2556
2610
  #
2557
2611
  # @param name The document name.
2558
- # @param page_number The page number.
2559
- # @param new_index The new page position/index.
2560
2612
  # @param [Hash] opts the optional parameters
2561
2613
  # @option opts [String] :storage The document storage.
2562
2614
  # @option opts [String] :folder The document folder.
2563
- # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
2564
- def post_move_page_with_http_info(name, page_number, new_index, opts = {})
2615
+ # @return [Array<(WordCountResponse, Fixnum, Hash)>] WordCountResponse data, response status code and response headers
2616
+ def get_words_per_page_with_http_info(name, opts = {})
2565
2617
  if @api_client.config.debugging
2566
- @api_client.config.logger.debug "Calling API: PdfApi.post_move_page ..."
2618
+ @api_client.config.logger.debug "Calling API: PdfApi.get_words_per_page ..."
2567
2619
  end
2568
2620
  # verify the required parameter 'name' is set
2569
2621
  if @api_client.config.client_side_validation && name.nil?
2570
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_move_page"
2622
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_words_per_page"
2571
2623
  end
2572
- # verify the required parameter 'page_number' is set
2573
- if @api_client.config.client_side_validation && page_number.nil?
2574
- fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_move_page"
2624
+ # resource path
2625
+ local_var_path = "/pdf/{name}/pages/wordCount".sub('{' + 'name' + '}', name.to_s)
2626
+
2627
+ # query parameters
2628
+ query_params = {}
2629
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2630
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2631
+
2632
+ # header parameters
2633
+ header_params = {}
2634
+ # HTTP header 'Accept' (if needed)
2635
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2636
+ # HTTP header 'Content-Type'
2637
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2638
+
2639
+ # form parameters
2640
+ form_params = {}
2641
+
2642
+ # http body (model)
2643
+ post_body = nil
2644
+ auth_names = []
2645
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2646
+ :header_params => header_params,
2647
+ :query_params => query_params,
2648
+ :form_params => form_params,
2649
+ :body => post_body,
2650
+ :auth_names => auth_names,
2651
+ :return_type => 'WordCountResponse')
2652
+ if @api_client.config.debugging
2653
+ @api_client.config.logger.debug "API called: PdfApi#get_words_per_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2575
2654
  end
2576
- # verify the required parameter 'new_index' is set
2577
- if @api_client.config.client_side_validation && new_index.nil?
2578
- fail ArgumentError, "Missing the required parameter 'new_index' when calling PdfApi.post_move_page"
2655
+ return data, status_code, headers
2656
+ end
2657
+
2658
+ # Append document to existing one.
2659
+ #
2660
+ # @param name The original document name.
2661
+ # @param [Hash] opts the optional parameters
2662
+ # @option opts [AppendDocument] :append_document with the append document data.
2663
+ # @option opts [String] :append_file Append file server path.
2664
+ # @option opts [Integer] :start_page Appending start page. (default to 0)
2665
+ # @option opts [Integer] :end_page Appending end page. (default to 0)
2666
+ # @option opts [String] :storage The documents storage.
2667
+ # @option opts [String] :folder The original document folder.
2668
+ # @return [DocumentResponse]
2669
+ def post_append_document(name, opts = {})
2670
+ data, _status_code, _headers = post_append_document_with_http_info(name, opts)
2671
+ return data
2672
+ end
2673
+
2674
+ # Append document to existing one.
2675
+ #
2676
+ # @param name The original document name.
2677
+ # @param [Hash] opts the optional parameters
2678
+ # @option opts [AppendDocument] :append_document with the append document data.
2679
+ # @option opts [String] :append_file Append file server path.
2680
+ # @option opts [Integer] :start_page Appending start page.
2681
+ # @option opts [Integer] :end_page Appending end page.
2682
+ # @option opts [String] :storage The documents storage.
2683
+ # @option opts [String] :folder The original document folder.
2684
+ # @return [Array<(DocumentResponse, Fixnum, Hash)>] DocumentResponse data, response status code and response headers
2685
+ def post_append_document_with_http_info(name, opts = {})
2686
+ if @api_client.config.debugging
2687
+ @api_client.config.logger.debug "Calling API: PdfApi.post_append_document ..."
2688
+ end
2689
+ # verify the required parameter 'name' is set
2690
+ if @api_client.config.client_side_validation && name.nil?
2691
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_append_document"
2579
2692
  end
2580
2693
  # resource path
2581
- local_var_path = "/pdf/{name}/pages/{pageNumber}/movePage".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
2694
+ local_var_path = "/pdf/{name}/appendDocument".sub('{' + 'name' + '}', name.to_s)
2582
2695
 
2583
2696
  # query parameters
2584
2697
  query_params = {}
2585
- query_params[:'newIndex'] = new_index
2698
+ query_params[:'appendFile'] = opts[:'append_file'] if !opts[:'append_file'].nil?
2699
+ query_params[:'startPage'] = opts[:'start_page'] if !opts[:'start_page'].nil?
2700
+ query_params[:'endPage'] = opts[:'end_page'] if !opts[:'end_page'].nil?
2586
2701
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2587
2702
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2588
2703
 
@@ -2597,7 +2712,7 @@ module AsposePdfCloud
2597
2712
  form_params = {}
2598
2713
 
2599
2714
  # http body (model)
2600
- post_body = nil
2715
+ post_body = @api_client.object_to_http_body(opts[:'append_document'])
2601
2716
  auth_names = []
2602
2717
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2603
2718
  :header_params => header_params,
@@ -2605,47 +2720,54 @@ module AsposePdfCloud
2605
2720
  :form_params => form_params,
2606
2721
  :body => post_body,
2607
2722
  :auth_names => auth_names,
2608
- :return_type => 'SaaSposeResponse')
2723
+ :return_type => 'DocumentResponse')
2609
2724
  if @api_client.config.debugging
2610
- @api_client.config.logger.debug "API called: PdfApi#post_move_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2725
+ @api_client.config.logger.debug "API called: PdfApi#post_append_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2611
2726
  end
2612
2727
  return data, status_code, headers
2613
2728
  end
2614
2729
 
2615
- # Optimize document.
2730
+ # Create field.
2616
2731
  #
2617
2732
  # @param name The document name.
2733
+ # @param page Document page number.
2618
2734
  # @param [Hash] opts the optional parameters
2619
- # @option opts [OptimizeOptions] :options The optimization options.
2735
+ # @option opts [Field] :field with the field data.
2620
2736
  # @option opts [String] :storage The document storage.
2621
2737
  # @option opts [String] :folder The document folder.
2622
2738
  # @return [SaaSposeResponse]
2623
- def post_optimize_document(name, opts = {})
2624
- data, _status_code, _headers = post_optimize_document_with_http_info(name, opts)
2739
+ def post_create_field(name, page, opts = {})
2740
+ data, _status_code, _headers = post_create_field_with_http_info(name, page, opts)
2625
2741
  return data
2626
2742
  end
2627
2743
 
2628
- # Optimize document.
2744
+ # Create field.
2629
2745
  #
2630
2746
  # @param name The document name.
2747
+ # @param page Document page number.
2631
2748
  # @param [Hash] opts the optional parameters
2632
- # @option opts [OptimizeOptions] :options The optimization options.
2749
+ # @option opts [Field] :field with the field data.
2633
2750
  # @option opts [String] :storage The document storage.
2634
2751
  # @option opts [String] :folder The document folder.
2635
2752
  # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
2636
- def post_optimize_document_with_http_info(name, opts = {})
2753
+ def post_create_field_with_http_info(name, page, opts = {})
2637
2754
  if @api_client.config.debugging
2638
- @api_client.config.logger.debug "Calling API: PdfApi.post_optimize_document ..."
2755
+ @api_client.config.logger.debug "Calling API: PdfApi.post_create_field ..."
2639
2756
  end
2640
2757
  # verify the required parameter 'name' is set
2641
2758
  if @api_client.config.client_side_validation && name.nil?
2642
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_optimize_document"
2759
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_create_field"
2760
+ end
2761
+ # verify the required parameter 'page' is set
2762
+ if @api_client.config.client_side_validation && page.nil?
2763
+ fail ArgumentError, "Missing the required parameter 'page' when calling PdfApi.post_create_field"
2643
2764
  end
2644
2765
  # resource path
2645
- local_var_path = "/pdf/{name}/optimize".sub('{' + 'name' + '}', name.to_s)
2766
+ local_var_path = "/pdf/{name}/fields".sub('{' + 'name' + '}', name.to_s)
2646
2767
 
2647
2768
  # query parameters
2648
2769
  query_params = {}
2770
+ query_params[:'page'] = page
2649
2771
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2650
2772
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2651
2773
 
@@ -2660,7 +2782,7 @@ module AsposePdfCloud
2660
2782
  form_params = {}
2661
2783
 
2662
2784
  # http body (model)
2663
- post_body = @api_client.object_to_http_body(opts[:'options'])
2785
+ post_body = @api_client.object_to_http_body(opts[:'field'])
2664
2786
  auth_names = []
2665
2787
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2666
2788
  :header_params => header_params,
@@ -2670,52 +2792,46 @@ module AsposePdfCloud
2670
2792
  :auth_names => auth_names,
2671
2793
  :return_type => 'SaaSposeResponse')
2672
2794
  if @api_client.config.debugging
2673
- @api_client.config.logger.debug "API called: PdfApi#post_optimize_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2795
+ @api_client.config.logger.debug "API called: PdfApi#post_create_field\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2674
2796
  end
2675
2797
  return data, status_code, headers
2676
2798
  end
2677
2799
 
2678
- # Page's replace text method. Deprecated
2800
+ # Document's replace text method. Deprecated
2679
2801
  #
2680
2802
  # @param name
2681
- # @param page_number
2682
2803
  # @param text_replace
2683
2804
  # @param [Hash] opts the optional parameters
2684
2805
  # @option opts [String] :storage
2685
2806
  # @option opts [String] :folder
2686
- # @return [PageTextReplaceResponse]
2687
- def post_page_replace_text(name, page_number, text_replace, opts = {})
2688
- data, _status_code, _headers = post_page_replace_text_with_http_info(name, page_number, text_replace, opts)
2807
+ # @return [DocumentTextReplaceResponse]
2808
+ def post_document_replace_text(name, text_replace, opts = {})
2809
+ data, _status_code, _headers = post_document_replace_text_with_http_info(name, text_replace, opts)
2689
2810
  return data
2690
2811
  end
2691
2812
 
2692
- # Page&#39;s replace text method. Deprecated
2813
+ # Document&#39;s replace text method. Deprecated
2693
2814
  #
2694
2815
  # @param name
2695
- # @param page_number
2696
2816
  # @param text_replace
2697
2817
  # @param [Hash] opts the optional parameters
2698
2818
  # @option opts [String] :storage
2699
2819
  # @option opts [String] :folder
2700
- # @return [Array<(PageTextReplaceResponse, Fixnum, Hash)>] PageTextReplaceResponse data, response status code and response headers
2701
- def post_page_replace_text_with_http_info(name, page_number, text_replace, opts = {})
2820
+ # @return [Array<(DocumentTextReplaceResponse, Fixnum, Hash)>] DocumentTextReplaceResponse data, response status code and response headers
2821
+ def post_document_replace_text_with_http_info(name, text_replace, opts = {})
2702
2822
  if @api_client.config.debugging
2703
- @api_client.config.logger.debug "Calling API: PdfApi.post_page_replace_text ..."
2823
+ @api_client.config.logger.debug "Calling API: PdfApi.post_document_replace_text ..."
2704
2824
  end
2705
2825
  # verify the required parameter 'name' is set
2706
2826
  if @api_client.config.client_side_validation && name.nil?
2707
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_replace_text"
2708
- end
2709
- # verify the required parameter 'page_number' is set
2710
- if @api_client.config.client_side_validation && page_number.nil?
2711
- fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_replace_text"
2827
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_replace_text"
2712
2828
  end
2713
2829
  # verify the required parameter 'text_replace' is set
2714
2830
  if @api_client.config.client_side_validation && text_replace.nil?
2715
- fail ArgumentError, "Missing the required parameter 'text_replace' when calling PdfApi.post_page_replace_text"
2831
+ fail ArgumentError, "Missing the required parameter 'text_replace' when calling PdfApi.post_document_replace_text"
2716
2832
  end
2717
2833
  # resource path
2718
- local_var_path = "/pdf/{name}/pages/{pageNumber}/replaceText".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
2834
+ local_var_path = "/pdf/{name}/replaceText".sub('{' + 'name' + '}', name.to_s)
2719
2835
 
2720
2836
  # query parameters
2721
2837
  query_params = {}
@@ -2741,54 +2857,48 @@ module AsposePdfCloud
2741
2857
  :form_params => form_params,
2742
2858
  :body => post_body,
2743
2859
  :auth_names => auth_names,
2744
- :return_type => 'PageTextReplaceResponse')
2860
+ :return_type => 'DocumentTextReplaceResponse')
2745
2861
  if @api_client.config.debugging
2746
- @api_client.config.logger.debug "API called: PdfApi#post_page_replace_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2862
+ @api_client.config.logger.debug "API called: PdfApi#post_document_replace_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2747
2863
  end
2748
2864
  return data, status_code, headers
2749
2865
  end
2750
2866
 
2751
- # Page's replace text method. Deprecated
2867
+ # Document's replace text method. Deprecated
2752
2868
  #
2753
2869
  # @param name
2754
- # @param page_number
2755
2870
  # @param text_replace_list_request
2756
2871
  # @param [Hash] opts the optional parameters
2757
2872
  # @option opts [String] :storage
2758
2873
  # @option opts [String] :folder
2759
- # @return [PageTextReplaceResponse]
2760
- def post_page_replace_text_list(name, page_number, text_replace_list_request, opts = {})
2761
- data, _status_code, _headers = post_page_replace_text_list_with_http_info(name, page_number, text_replace_list_request, opts)
2874
+ # @return [DocumentTextReplaceResponse]
2875
+ def post_document_replace_text_list(name, text_replace_list_request, opts = {})
2876
+ data, _status_code, _headers = post_document_replace_text_list_with_http_info(name, text_replace_list_request, opts)
2762
2877
  return data
2763
2878
  end
2764
2879
 
2765
- # Page&#39;s replace text method. Deprecated
2880
+ # Document&#39;s replace text method. Deprecated
2766
2881
  #
2767
2882
  # @param name
2768
- # @param page_number
2769
2883
  # @param text_replace_list_request
2770
2884
  # @param [Hash] opts the optional parameters
2771
2885
  # @option opts [String] :storage
2772
2886
  # @option opts [String] :folder
2773
- # @return [Array<(PageTextReplaceResponse, Fixnum, Hash)>] PageTextReplaceResponse data, response status code and response headers
2774
- def post_page_replace_text_list_with_http_info(name, page_number, text_replace_list_request, opts = {})
2887
+ # @return [Array<(DocumentTextReplaceResponse, Fixnum, Hash)>] DocumentTextReplaceResponse data, response status code and response headers
2888
+ def post_document_replace_text_list_with_http_info(name, text_replace_list_request, opts = {})
2775
2889
  if @api_client.config.debugging
2776
- @api_client.config.logger.debug "Calling API: PdfApi.post_page_replace_text_list ..."
2890
+ @api_client.config.logger.debug "Calling API: PdfApi.post_document_replace_text_list ..."
2777
2891
  end
2778
2892
  # verify the required parameter 'name' is set
2779
2893
  if @api_client.config.client_side_validation && name.nil?
2780
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_replace_text_list"
2781
- end
2782
- # verify the required parameter 'page_number' is set
2783
- if @api_client.config.client_side_validation && page_number.nil?
2784
- fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_replace_text_list"
2894
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_replace_text_list"
2785
2895
  end
2786
2896
  # verify the required parameter 'text_replace_list_request' is set
2787
2897
  if @api_client.config.client_side_validation && text_replace_list_request.nil?
2788
- fail ArgumentError, "Missing the required parameter 'text_replace_list_request' when calling PdfApi.post_page_replace_text_list"
2898
+ fail ArgumentError, "Missing the required parameter 'text_replace_list_request' when calling PdfApi.post_document_replace_text_list"
2789
2899
  end
2790
2900
  # resource path
2791
- local_var_path = "/pdf/{name}/pages/{pageNumber}/replaceTextList".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
2901
+ local_var_path = "/pdf/{name}/replaceTextList".sub('{' + 'name' + '}', name.to_s)
2792
2902
 
2793
2903
  # query parameters
2794
2904
  query_params = {}
@@ -2814,54 +2924,48 @@ module AsposePdfCloud
2814
2924
  :form_params => form_params,
2815
2925
  :body => post_body,
2816
2926
  :auth_names => auth_names,
2817
- :return_type => 'PageTextReplaceResponse')
2927
+ :return_type => 'DocumentTextReplaceResponse')
2818
2928
  if @api_client.config.debugging
2819
- @api_client.config.logger.debug "API called: PdfApi#post_page_replace_text_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2929
+ @api_client.config.logger.debug "API called: PdfApi#post_document_replace_text_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2820
2930
  end
2821
2931
  return data, status_code, headers
2822
2932
  end
2823
2933
 
2824
- # Page's replace text method.
2934
+ # Document's replace text method.
2825
2935
  #
2826
2936
  # @param name
2827
- # @param page_number
2828
- # @param text_replace_list_request
2937
+ # @param text_replace
2829
2938
  # @param [Hash] opts the optional parameters
2830
2939
  # @option opts [String] :storage
2831
2940
  # @option opts [String] :folder
2832
2941
  # @return [TextReplaceResponse]
2833
- def post_page_text_replace(name, page_number, text_replace_list_request, opts = {})
2834
- data, _status_code, _headers = post_page_text_replace_with_http_info(name, page_number, text_replace_list_request, opts)
2942
+ def post_document_text_replace(name, text_replace, opts = {})
2943
+ data, _status_code, _headers = post_document_text_replace_with_http_info(name, text_replace, opts)
2835
2944
  return data
2836
2945
  end
2837
2946
 
2838
- # Page&#39;s replace text method.
2947
+ # Document&#39;s replace text method.
2839
2948
  #
2840
2949
  # @param name
2841
- # @param page_number
2842
- # @param text_replace_list_request
2950
+ # @param text_replace
2843
2951
  # @param [Hash] opts the optional parameters
2844
2952
  # @option opts [String] :storage
2845
2953
  # @option opts [String] :folder
2846
2954
  # @return [Array<(TextReplaceResponse, Fixnum, Hash)>] TextReplaceResponse data, response status code and response headers
2847
- def post_page_text_replace_with_http_info(name, page_number, text_replace_list_request, opts = {})
2955
+ def post_document_text_replace_with_http_info(name, text_replace, opts = {})
2848
2956
  if @api_client.config.debugging
2849
- @api_client.config.logger.debug "Calling API: PdfApi.post_page_text_replace ..."
2957
+ @api_client.config.logger.debug "Calling API: PdfApi.post_document_text_replace ..."
2850
2958
  end
2851
2959
  # verify the required parameter 'name' is set
2852
2960
  if @api_client.config.client_side_validation && name.nil?
2853
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_text_replace"
2854
- end
2855
- # verify the required parameter 'page_number' is set
2856
- if @api_client.config.client_side_validation && page_number.nil?
2857
- fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_text_replace"
2961
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_text_replace"
2858
2962
  end
2859
- # verify the required parameter 'text_replace_list_request' is set
2860
- if @api_client.config.client_side_validation && text_replace_list_request.nil?
2861
- fail ArgumentError, "Missing the required parameter 'text_replace_list_request' when calling PdfApi.post_page_text_replace"
2963
+ # verify the required parameter 'text_replace' is set
2964
+ if @api_client.config.client_side_validation && text_replace.nil?
2965
+ fail ArgumentError, "Missing the required parameter 'text_replace' when calling PdfApi.post_document_text_replace"
2862
2966
  end
2863
2967
  # resource path
2864
- local_var_path = "/pdf/{name}/pages/{pageNumber}/text/replace".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
2968
+ local_var_path = "/pdf/{name}/text/replace".sub('{' + 'name' + '}', name.to_s)
2865
2969
 
2866
2970
  # query parameters
2867
2971
  query_params = {}
@@ -2879,7 +2983,7 @@ module AsposePdfCloud
2879
2983
  form_params = {}
2880
2984
 
2881
2985
  # http body (model)
2882
- post_body = @api_client.object_to_http_body(text_replace_list_request)
2986
+ post_body = @api_client.object_to_http_body(text_replace)
2883
2987
  auth_names = []
2884
2988
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2885
2989
  :header_params => header_params,
@@ -2889,58 +2993,56 @@ module AsposePdfCloud
2889
2993
  :auth_names => auth_names,
2890
2994
  :return_type => 'TextReplaceResponse')
2891
2995
  if @api_client.config.debugging
2892
- @api_client.config.logger.debug "API called: PdfApi#post_page_text_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2996
+ @api_client.config.logger.debug "API called: PdfApi#post_document_text_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2893
2997
  end
2894
2998
  return data, status_code, headers
2895
2999
  end
2896
3000
 
2897
- # Replace document image.
3001
+ # Move page to new position.
2898
3002
  #
2899
3003
  # @param name The document name.
2900
3004
  # @param page_number The page number.
2901
- # @param image_number The image number.
3005
+ # @param new_index The new page position/index.
2902
3006
  # @param [Hash] opts the optional parameters
2903
- # @option opts [String] :image_file Path to image file if specified. Request content is used otherwise.
2904
3007
  # @option opts [String] :storage The document storage.
2905
3008
  # @option opts [String] :folder The document folder.
2906
- # @return [ImageResponse]
2907
- def post_replace_image(name, page_number, image_number, opts = {})
2908
- data, _status_code, _headers = post_replace_image_with_http_info(name, page_number, image_number, opts)
3009
+ # @return [SaaSposeResponse]
3010
+ def post_move_page(name, page_number, new_index, opts = {})
3011
+ data, _status_code, _headers = post_move_page_with_http_info(name, page_number, new_index, opts)
2909
3012
  return data
2910
3013
  end
2911
3014
 
2912
- # Replace document image.
3015
+ # Move page to new position.
2913
3016
  #
2914
3017
  # @param name The document name.
2915
3018
  # @param page_number The page number.
2916
- # @param image_number The image number.
3019
+ # @param new_index The new page position/index.
2917
3020
  # @param [Hash] opts the optional parameters
2918
- # @option opts [String] :image_file Path to image file if specified. Request content is used otherwise.
2919
3021
  # @option opts [String] :storage The document storage.
2920
3022
  # @option opts [String] :folder The document folder.
2921
- # @return [Array<(ImageResponse, Fixnum, Hash)>] ImageResponse data, response status code and response headers
2922
- def post_replace_image_with_http_info(name, page_number, image_number, opts = {})
3023
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
3024
+ def post_move_page_with_http_info(name, page_number, new_index, opts = {})
2923
3025
  if @api_client.config.debugging
2924
- @api_client.config.logger.debug "Calling API: PdfApi.post_replace_image ..."
3026
+ @api_client.config.logger.debug "Calling API: PdfApi.post_move_page ..."
2925
3027
  end
2926
3028
  # verify the required parameter 'name' is set
2927
3029
  if @api_client.config.client_side_validation && name.nil?
2928
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_replace_image"
3030
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_move_page"
2929
3031
  end
2930
3032
  # verify the required parameter 'page_number' is set
2931
3033
  if @api_client.config.client_side_validation && page_number.nil?
2932
- fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_replace_image"
3034
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_move_page"
2933
3035
  end
2934
- # verify the required parameter 'image_number' is set
2935
- if @api_client.config.client_side_validation && image_number.nil?
2936
- fail ArgumentError, "Missing the required parameter 'image_number' when calling PdfApi.post_replace_image"
3036
+ # verify the required parameter 'new_index' is set
3037
+ if @api_client.config.client_side_validation && new_index.nil?
3038
+ fail ArgumentError, "Missing the required parameter 'new_index' when calling PdfApi.post_move_page"
2937
3039
  end
2938
3040
  # resource path
2939
- local_var_path = "/pdf/{name}/pages/{pageNumber}/images/{imageNumber}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'imageNumber' + '}', image_number.to_s)
3041
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/movePage".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
2940
3042
 
2941
3043
  # query parameters
2942
3044
  query_params = {}
2943
- query_params[:'imageFile'] = opts[:'image_file'] if !opts[:'image_file'].nil?
3045
+ query_params[:'newIndex'] = new_index
2944
3046
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2945
3047
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2946
3048
 
@@ -2949,7 +3051,7 @@ module AsposePdfCloud
2949
3051
  # HTTP header 'Accept' (if needed)
2950
3052
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2951
3053
  # HTTP header 'Content-Type'
2952
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3054
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2953
3055
 
2954
3056
  # form parameters
2955
3057
  form_params = {}
@@ -2963,44 +3065,44 @@ module AsposePdfCloud
2963
3065
  :form_params => form_params,
2964
3066
  :body => post_body,
2965
3067
  :auth_names => auth_names,
2966
- :return_type => 'ImageResponse')
3068
+ :return_type => 'SaaSposeResponse')
2967
3069
  if @api_client.config.debugging
2968
- @api_client.config.logger.debug "API called: PdfApi#post_replace_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3070
+ @api_client.config.logger.debug "API called: PdfApi#post_move_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2969
3071
  end
2970
3072
  return data, status_code, headers
2971
3073
  end
2972
3074
 
2973
- # Sign document.
3075
+ # Optimize document.
2974
3076
  #
2975
3077
  # @param name The document name.
2976
3078
  # @param [Hash] opts the optional parameters
2977
- # @option opts [Signature] :signature Signature object containing signature data.
3079
+ # @option opts [OptimizeOptions] :options The optimization options.
2978
3080
  # @option opts [String] :storage The document storage.
2979
3081
  # @option opts [String] :folder The document folder.
2980
3082
  # @return [SaaSposeResponse]
2981
- def post_sign_document(name, opts = {})
2982
- data, _status_code, _headers = post_sign_document_with_http_info(name, opts)
3083
+ def post_optimize_document(name, opts = {})
3084
+ data, _status_code, _headers = post_optimize_document_with_http_info(name, opts)
2983
3085
  return data
2984
3086
  end
2985
3087
 
2986
- # Sign document.
3088
+ # Optimize document.
2987
3089
  #
2988
3090
  # @param name The document name.
2989
3091
  # @param [Hash] opts the optional parameters
2990
- # @option opts [Signature] :signature Signature object containing signature data.
3092
+ # @option opts [OptimizeOptions] :options The optimization options.
2991
3093
  # @option opts [String] :storage The document storage.
2992
3094
  # @option opts [String] :folder The document folder.
2993
3095
  # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
2994
- def post_sign_document_with_http_info(name, opts = {})
3096
+ def post_optimize_document_with_http_info(name, opts = {})
2995
3097
  if @api_client.config.debugging
2996
- @api_client.config.logger.debug "Calling API: PdfApi.post_sign_document ..."
3098
+ @api_client.config.logger.debug "Calling API: PdfApi.post_optimize_document ..."
2997
3099
  end
2998
3100
  # verify the required parameter 'name' is set
2999
3101
  if @api_client.config.client_side_validation && name.nil?
3000
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_sign_document"
3102
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_optimize_document"
3001
3103
  end
3002
3104
  # resource path
3003
- local_var_path = "/pdf/{name}/sign".sub('{' + 'name' + '}', name.to_s)
3105
+ local_var_path = "/pdf/{name}/optimize".sub('{' + 'name' + '}', name.to_s)
3004
3106
 
3005
3107
  # query parameters
3006
3108
  query_params = {}
@@ -3018,7 +3120,7 @@ module AsposePdfCloud
3018
3120
  form_params = {}
3019
3121
 
3020
3122
  # http body (model)
3021
- post_body = @api_client.object_to_http_body(opts[:'signature'])
3123
+ post_body = @api_client.object_to_http_body(opts[:'options'])
3022
3124
  auth_names = []
3023
3125
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3024
3126
  :header_params => header_params,
@@ -3028,48 +3130,52 @@ module AsposePdfCloud
3028
3130
  :auth_names => auth_names,
3029
3131
  :return_type => 'SaaSposeResponse')
3030
3132
  if @api_client.config.debugging
3031
- @api_client.config.logger.debug "API called: PdfApi#post_sign_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3133
+ @api_client.config.logger.debug "API called: PdfApi#post_optimize_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3032
3134
  end
3033
3135
  return data, status_code, headers
3034
3136
  end
3035
3137
 
3036
- # Sign page.
3138
+ # Page's replace text method. Deprecated
3037
3139
  #
3038
- # @param name The document name.
3039
- # @param page_number The page number.
3140
+ # @param name
3141
+ # @param page_number
3142
+ # @param text_replace
3040
3143
  # @param [Hash] opts the optional parameters
3041
- # @option opts [Signature] :signature Signature object containing signature data.
3042
- # @option opts [String] :storage The document storage.
3043
- # @option opts [String] :folder The document folder.
3044
- # @return [SaaSposeResponse]
3045
- def post_sign_page(name, page_number, opts = {})
3046
- data, _status_code, _headers = post_sign_page_with_http_info(name, page_number, opts)
3144
+ # @option opts [String] :storage
3145
+ # @option opts [String] :folder
3146
+ # @return [PageTextReplaceResponse]
3147
+ def post_page_replace_text(name, page_number, text_replace, opts = {})
3148
+ data, _status_code, _headers = post_page_replace_text_with_http_info(name, page_number, text_replace, opts)
3047
3149
  return data
3048
3150
  end
3049
3151
 
3050
- # Sign page.
3152
+ # Page&#39;s replace text method. Deprecated
3051
3153
  #
3052
- # @param name The document name.
3053
- # @param page_number The page number.
3154
+ # @param name
3155
+ # @param page_number
3156
+ # @param text_replace
3054
3157
  # @param [Hash] opts the optional parameters
3055
- # @option opts [Signature] :signature Signature object containing signature data.
3056
- # @option opts [String] :storage The document storage.
3057
- # @option opts [String] :folder The document folder.
3058
- # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
3059
- def post_sign_page_with_http_info(name, page_number, opts = {})
3158
+ # @option opts [String] :storage
3159
+ # @option opts [String] :folder
3160
+ # @return [Array<(PageTextReplaceResponse, Fixnum, Hash)>] PageTextReplaceResponse data, response status code and response headers
3161
+ def post_page_replace_text_with_http_info(name, page_number, text_replace, opts = {})
3060
3162
  if @api_client.config.debugging
3061
- @api_client.config.logger.debug "Calling API: PdfApi.post_sign_page ..."
3163
+ @api_client.config.logger.debug "Calling API: PdfApi.post_page_replace_text ..."
3062
3164
  end
3063
3165
  # verify the required parameter 'name' is set
3064
3166
  if @api_client.config.client_side_validation && name.nil?
3065
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_sign_page"
3167
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_replace_text"
3066
3168
  end
3067
3169
  # verify the required parameter 'page_number' is set
3068
3170
  if @api_client.config.client_side_validation && page_number.nil?
3069
- fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_sign_page"
3171
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_replace_text"
3172
+ end
3173
+ # verify the required parameter 'text_replace' is set
3174
+ if @api_client.config.client_side_validation && text_replace.nil?
3175
+ fail ArgumentError, "Missing the required parameter 'text_replace' when calling PdfApi.post_page_replace_text"
3070
3176
  end
3071
3177
  # resource path
3072
- local_var_path = "/pdf/{name}/pages/{pageNumber}/sign".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
3178
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/replaceText".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
3073
3179
 
3074
3180
  # query parameters
3075
3181
  query_params = {}
@@ -3087,7 +3193,7 @@ module AsposePdfCloud
3087
3193
  form_params = {}
3088
3194
 
3089
3195
  # http body (model)
3090
- post_body = @api_client.object_to_http_body(opts[:'signature'])
3196
+ post_body = @api_client.object_to_http_body(text_replace)
3091
3197
  auth_names = []
3092
3198
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3093
3199
  :header_params => header_params,
@@ -3095,54 +3201,57 @@ module AsposePdfCloud
3095
3201
  :form_params => form_params,
3096
3202
  :body => post_body,
3097
3203
  :auth_names => auth_names,
3098
- :return_type => 'SaaSposeResponse')
3204
+ :return_type => 'PageTextReplaceResponse')
3099
3205
  if @api_client.config.debugging
3100
- @api_client.config.logger.debug "API called: PdfApi#post_sign_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3206
+ @api_client.config.logger.debug "API called: PdfApi#post_page_replace_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3101
3207
  end
3102
3208
  return data, status_code, headers
3103
3209
  end
3104
3210
 
3105
- # Split document to parts.
3211
+ # Page's replace text method. Deprecated
3106
3212
  #
3107
- # @param name Document name.
3213
+ # @param name
3214
+ # @param page_number
3215
+ # @param text_replace_list_request
3108
3216
  # @param [Hash] opts the optional parameters
3109
- # @option opts [String] :format Resulting documents format.
3110
- # @option opts [Integer] :from Start page if defined.
3111
- # @option opts [Integer] :to End page if defined.
3112
- # @option opts [String] :storage The document storage.
3113
- # @option opts [String] :folder The document folder.
3114
- # @return [SplitResultResponse]
3115
- def post_split_document(name, opts = {})
3116
- data, _status_code, _headers = post_split_document_with_http_info(name, opts)
3217
+ # @option opts [String] :storage
3218
+ # @option opts [String] :folder
3219
+ # @return [PageTextReplaceResponse]
3220
+ def post_page_replace_text_list(name, page_number, text_replace_list_request, opts = {})
3221
+ data, _status_code, _headers = post_page_replace_text_list_with_http_info(name, page_number, text_replace_list_request, opts)
3117
3222
  return data
3118
3223
  end
3119
3224
 
3120
- # Split document to parts.
3225
+ # Page&#39;s replace text method. Deprecated
3121
3226
  #
3122
- # @param name Document name.
3227
+ # @param name
3228
+ # @param page_number
3229
+ # @param text_replace_list_request
3123
3230
  # @param [Hash] opts the optional parameters
3124
- # @option opts [String] :format Resulting documents format.
3125
- # @option opts [Integer] :from Start page if defined.
3126
- # @option opts [Integer] :to End page if defined.
3127
- # @option opts [String] :storage The document storage.
3128
- # @option opts [String] :folder The document folder.
3129
- # @return [Array<(SplitResultResponse, Fixnum, Hash)>] SplitResultResponse data, response status code and response headers
3130
- def post_split_document_with_http_info(name, opts = {})
3231
+ # @option opts [String] :storage
3232
+ # @option opts [String] :folder
3233
+ # @return [Array<(PageTextReplaceResponse, Fixnum, Hash)>] PageTextReplaceResponse data, response status code and response headers
3234
+ def post_page_replace_text_list_with_http_info(name, page_number, text_replace_list_request, opts = {})
3131
3235
  if @api_client.config.debugging
3132
- @api_client.config.logger.debug "Calling API: PdfApi.post_split_document ..."
3236
+ @api_client.config.logger.debug "Calling API: PdfApi.post_page_replace_text_list ..."
3133
3237
  end
3134
3238
  # verify the required parameter 'name' is set
3135
3239
  if @api_client.config.client_side_validation && name.nil?
3136
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_split_document"
3240
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_replace_text_list"
3241
+ end
3242
+ # verify the required parameter 'page_number' is set
3243
+ if @api_client.config.client_side_validation && page_number.nil?
3244
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_replace_text_list"
3245
+ end
3246
+ # verify the required parameter 'text_replace_list_request' is set
3247
+ if @api_client.config.client_side_validation && text_replace_list_request.nil?
3248
+ fail ArgumentError, "Missing the required parameter 'text_replace_list_request' when calling PdfApi.post_page_replace_text_list"
3137
3249
  end
3138
3250
  # resource path
3139
- local_var_path = "/pdf/{name}/split".sub('{' + 'name' + '}', name.to_s)
3251
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/replaceTextList".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
3140
3252
 
3141
3253
  # query parameters
3142
3254
  query_params = {}
3143
- query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
3144
- query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
3145
- query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
3146
3255
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3147
3256
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3148
3257
 
@@ -3157,7 +3266,7 @@ module AsposePdfCloud
3157
3266
  form_params = {}
3158
3267
 
3159
3268
  # http body (model)
3160
- post_body = nil
3269
+ post_body = @api_client.object_to_http_body(text_replace_list_request)
3161
3270
  auth_names = []
3162
3271
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3163
3272
  :header_params => header_params,
@@ -3165,45 +3274,135 @@ module AsposePdfCloud
3165
3274
  :form_params => form_params,
3166
3275
  :body => post_body,
3167
3276
  :auth_names => auth_names,
3168
- :return_type => 'SplitResultResponse')
3277
+ :return_type => 'PageTextReplaceResponse')
3169
3278
  if @api_client.config.debugging
3170
- @api_client.config.logger.debug "API called: PdfApi#post_split_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3279
+ @api_client.config.logger.debug "API called: PdfApi#post_page_replace_text_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3171
3280
  end
3172
3281
  return data, status_code, headers
3173
3282
  end
3174
3283
 
3175
- # Add new page to end of the document.
3284
+ # Page's replace text method.
3176
3285
  #
3177
- # @param name The document name.
3286
+ # @param name
3287
+ # @param page_number
3288
+ # @param text_replace_list_request
3178
3289
  # @param [Hash] opts the optional parameters
3179
- # @option opts [String] :storage The document storage.
3180
- # @option opts [String] :folder The document folder.
3181
- # @return [DocumentPagesResponse]
3182
- def put_add_new_page(name, opts = {})
3183
- data, _status_code, _headers = put_add_new_page_with_http_info(name, opts)
3290
+ # @option opts [String] :storage
3291
+ # @option opts [String] :folder
3292
+ # @return [TextReplaceResponse]
3293
+ def post_page_text_replace(name, page_number, text_replace_list_request, opts = {})
3294
+ data, _status_code, _headers = post_page_text_replace_with_http_info(name, page_number, text_replace_list_request, opts)
3184
3295
  return data
3185
3296
  end
3186
3297
 
3187
- # Add new page to end of the document.
3298
+ # Page&#39;s replace text method.
3299
+ #
3300
+ # @param name
3301
+ # @param page_number
3302
+ # @param text_replace_list_request
3303
+ # @param [Hash] opts the optional parameters
3304
+ # @option opts [String] :storage
3305
+ # @option opts [String] :folder
3306
+ # @return [Array<(TextReplaceResponse, Fixnum, Hash)>] TextReplaceResponse data, response status code and response headers
3307
+ def post_page_text_replace_with_http_info(name, page_number, text_replace_list_request, opts = {})
3308
+ if @api_client.config.debugging
3309
+ @api_client.config.logger.debug "Calling API: PdfApi.post_page_text_replace ..."
3310
+ end
3311
+ # verify the required parameter 'name' is set
3312
+ if @api_client.config.client_side_validation && name.nil?
3313
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_text_replace"
3314
+ end
3315
+ # verify the required parameter 'page_number' is set
3316
+ if @api_client.config.client_side_validation && page_number.nil?
3317
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_text_replace"
3318
+ end
3319
+ # verify the required parameter 'text_replace_list_request' is set
3320
+ if @api_client.config.client_side_validation && text_replace_list_request.nil?
3321
+ fail ArgumentError, "Missing the required parameter 'text_replace_list_request' when calling PdfApi.post_page_text_replace"
3322
+ end
3323
+ # resource path
3324
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/text/replace".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
3325
+
3326
+ # query parameters
3327
+ query_params = {}
3328
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3329
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3330
+
3331
+ # header parameters
3332
+ header_params = {}
3333
+ # HTTP header 'Accept' (if needed)
3334
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3335
+ # HTTP header 'Content-Type'
3336
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3337
+
3338
+ # form parameters
3339
+ form_params = {}
3340
+
3341
+ # http body (model)
3342
+ post_body = @api_client.object_to_http_body(text_replace_list_request)
3343
+ auth_names = []
3344
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3345
+ :header_params => header_params,
3346
+ :query_params => query_params,
3347
+ :form_params => form_params,
3348
+ :body => post_body,
3349
+ :auth_names => auth_names,
3350
+ :return_type => 'TextReplaceResponse')
3351
+ if @api_client.config.debugging
3352
+ @api_client.config.logger.debug "API called: PdfApi#post_page_text_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3353
+ end
3354
+ return data, status_code, headers
3355
+ end
3356
+
3357
+ # Replace document image.
3188
3358
  #
3189
3359
  # @param name The document name.
3360
+ # @param page_number The page number.
3361
+ # @param image_number The image number.
3190
3362
  # @param [Hash] opts the optional parameters
3363
+ # @option opts [String] :image_file Path to image file if specified. Request content is used otherwise.
3191
3364
  # @option opts [String] :storage The document storage.
3192
3365
  # @option opts [String] :folder The document folder.
3193
- # @return [Array<(DocumentPagesResponse, Fixnum, Hash)>] DocumentPagesResponse data, response status code and response headers
3194
- def put_add_new_page_with_http_info(name, opts = {})
3366
+ # @option opts [File] :image Image file.
3367
+ # @return [ImageResponse]
3368
+ def post_replace_image(name, page_number, image_number, opts = {})
3369
+ data, _status_code, _headers = post_replace_image_with_http_info(name, page_number, image_number, opts)
3370
+ return data
3371
+ end
3372
+
3373
+ # Replace document image.
3374
+ #
3375
+ # @param name The document name.
3376
+ # @param page_number The page number.
3377
+ # @param image_number The image number.
3378
+ # @param [Hash] opts the optional parameters
3379
+ # @option opts [String] :image_file Path to image file if specified. Request content is used otherwise.
3380
+ # @option opts [String] :storage The document storage.
3381
+ # @option opts [String] :folder The document folder.
3382
+ # @option opts [File] :image Image file.
3383
+ # @return [Array<(ImageResponse, Fixnum, Hash)>] ImageResponse data, response status code and response headers
3384
+ def post_replace_image_with_http_info(name, page_number, image_number, opts = {})
3195
3385
  if @api_client.config.debugging
3196
- @api_client.config.logger.debug "Calling API: PdfApi.put_add_new_page ..."
3386
+ @api_client.config.logger.debug "Calling API: PdfApi.post_replace_image ..."
3197
3387
  end
3198
3388
  # verify the required parameter 'name' is set
3199
3389
  if @api_client.config.client_side_validation && name.nil?
3200
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_add_new_page"
3390
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_replace_image"
3391
+ end
3392
+ # verify the required parameter 'page_number' is set
3393
+ if @api_client.config.client_side_validation && page_number.nil?
3394
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_replace_image"
3395
+ end
3396
+ # verify the required parameter 'image_number' is set
3397
+ if @api_client.config.client_side_validation && image_number.nil?
3398
+ fail ArgumentError, "Missing the required parameter 'image_number' when calling PdfApi.post_replace_image"
3201
3399
  end
3202
3400
  # resource path
3203
- local_var_path = "/pdf/{name}/pages".sub('{' + 'name' + '}', name.to_s)
3401
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/images/{imageNumber}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'imageNumber' + '}', image_number.to_s)
3204
3402
 
3205
3403
  # query parameters
3206
3404
  query_params = {}
3405
+ query_params[:'imageFile'] = opts[:'image_file'] if !opts[:'image_file'].nil?
3207
3406
  query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3208
3407
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3209
3408
 
@@ -3212,64 +3411,59 @@ module AsposePdfCloud
3212
3411
  # HTTP header 'Accept' (if needed)
3213
3412
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3214
3413
  # HTTP header 'Content-Type'
3215
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3414
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3216
3415
 
3217
3416
  # form parameters
3218
3417
  form_params = {}
3418
+ form_params["image"] = opts[:'image'] if !opts[:'image'].nil?
3219
3419
 
3220
3420
  # http body (model)
3221
3421
  post_body = nil
3222
3422
  auth_names = []
3223
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3423
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3224
3424
  :header_params => header_params,
3225
3425
  :query_params => query_params,
3226
3426
  :form_params => form_params,
3227
3427
  :body => post_body,
3228
3428
  :auth_names => auth_names,
3229
- :return_type => 'DocumentPagesResponse')
3429
+ :return_type => 'ImageResponse')
3230
3430
  if @api_client.config.debugging
3231
- @api_client.config.logger.debug "API called: PdfApi#put_add_new_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3431
+ @api_client.config.logger.debug "API called: PdfApi#post_replace_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3232
3432
  end
3233
3433
  return data, status_code, headers
3234
3434
  end
3235
3435
 
3236
- # Add text to PDF document page. Deprecate
3436
+ # Sign document.
3237
3437
  #
3238
- # @param name Name of the document to which text should be added.
3239
- # @param page_number Number of page (starting with 1) to which text should be added.
3438
+ # @param name The document name.
3240
3439
  # @param [Hash] opts the optional parameters
3241
- # @option opts [Paragraph] :paragraph Paragraph data.
3242
- # @option opts [String] :storage File storage to be used.
3243
- # @option opts [String] :folder Document folder.
3440
+ # @option opts [Signature] :signature Signature object containing signature data.
3441
+ # @option opts [String] :storage The document storage.
3442
+ # @option opts [String] :folder The document folder.
3244
3443
  # @return [SaaSposeResponse]
3245
- def put_add_paragraph(name, page_number, opts = {})
3246
- data, _status_code, _headers = put_add_paragraph_with_http_info(name, page_number, opts)
3444
+ def post_sign_document(name, opts = {})
3445
+ data, _status_code, _headers = post_sign_document_with_http_info(name, opts)
3247
3446
  return data
3248
3447
  end
3249
3448
 
3250
- # Add text to PDF document page. Deprecate
3449
+ # Sign document.
3251
3450
  #
3252
- # @param name Name of the document to which text should be added.
3253
- # @param page_number Number of page (starting with 1) to which text should be added.
3451
+ # @param name The document name.
3254
3452
  # @param [Hash] opts the optional parameters
3255
- # @option opts [Paragraph] :paragraph Paragraph data.
3256
- # @option opts [String] :storage File storage to be used.
3257
- # @option opts [String] :folder Document folder.
3453
+ # @option opts [Signature] :signature Signature object containing signature data.
3454
+ # @option opts [String] :storage The document storage.
3455
+ # @option opts [String] :folder The document folder.
3258
3456
  # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
3259
- def put_add_paragraph_with_http_info(name, page_number, opts = {})
3457
+ def post_sign_document_with_http_info(name, opts = {})
3260
3458
  if @api_client.config.debugging
3261
- @api_client.config.logger.debug "Calling API: PdfApi.put_add_paragraph ..."
3459
+ @api_client.config.logger.debug "Calling API: PdfApi.post_sign_document ..."
3262
3460
  end
3263
3461
  # verify the required parameter 'name' is set
3264
3462
  if @api_client.config.client_side_validation && name.nil?
3265
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_add_paragraph"
3266
- end
3267
- # verify the required parameter 'page_number' is set
3268
- if @api_client.config.client_side_validation && page_number.nil?
3269
- fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.put_add_paragraph"
3463
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_sign_document"
3270
3464
  end
3271
3465
  # resource path
3272
- local_var_path = "/pdf/{name}/pages/{pageNumber}/paragraph".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
3466
+ local_var_path = "/pdf/{name}/sign".sub('{' + 'name' + '}', name.to_s)
3273
3467
 
3274
3468
  # query parameters
3275
3469
  query_params = {}
@@ -3287,9 +3481,9 @@ module AsposePdfCloud
3287
3481
  form_params = {}
3288
3482
 
3289
3483
  # http body (model)
3290
- post_body = @api_client.object_to_http_body(opts[:'paragraph'])
3484
+ post_body = @api_client.object_to_http_body(opts[:'signature'])
3291
3485
  auth_names = []
3292
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3486
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3293
3487
  :header_params => header_params,
3294
3488
  :query_params => query_params,
3295
3489
  :form_params => form_params,
@@ -3297,48 +3491,48 @@ module AsposePdfCloud
3297
3491
  :auth_names => auth_names,
3298
3492
  :return_type => 'SaaSposeResponse')
3299
3493
  if @api_client.config.debugging
3300
- @api_client.config.logger.debug "API called: PdfApi#put_add_paragraph\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3494
+ @api_client.config.logger.debug "API called: PdfApi#post_sign_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3301
3495
  end
3302
3496
  return data, status_code, headers
3303
3497
  end
3304
3498
 
3305
- # Add text to PDF document page.
3499
+ # Sign page.
3306
3500
  #
3307
- # @param name Name of the document to which text should be added.
3308
- # @param page_number Number of page (starting with 1) to which text should be added.
3501
+ # @param name The document name.
3502
+ # @param page_number The page number.
3309
3503
  # @param [Hash] opts the optional parameters
3310
- # @option opts [Paragraph] :paragraph Paragraph data.
3311
- # @option opts [String] :storage File storage to be used.
3312
- # @option opts [String] :folder Document folder.
3504
+ # @option opts [Signature] :signature Signature object containing signature data.
3505
+ # @option opts [String] :storage The document storage.
3506
+ # @option opts [String] :folder The document folder.
3313
3507
  # @return [SaaSposeResponse]
3314
- def put_add_text(name, page_number, opts = {})
3315
- data, _status_code, _headers = put_add_text_with_http_info(name, page_number, opts)
3508
+ def post_sign_page(name, page_number, opts = {})
3509
+ data, _status_code, _headers = post_sign_page_with_http_info(name, page_number, opts)
3316
3510
  return data
3317
3511
  end
3318
3512
 
3319
- # Add text to PDF document page.
3513
+ # Sign page.
3320
3514
  #
3321
- # @param name Name of the document to which text should be added.
3322
- # @param page_number Number of page (starting with 1) to which text should be added.
3515
+ # @param name The document name.
3516
+ # @param page_number The page number.
3323
3517
  # @param [Hash] opts the optional parameters
3324
- # @option opts [Paragraph] :paragraph Paragraph data.
3325
- # @option opts [String] :storage File storage to be used.
3326
- # @option opts [String] :folder Document folder.
3518
+ # @option opts [Signature] :signature Signature object containing signature data.
3519
+ # @option opts [String] :storage The document storage.
3520
+ # @option opts [String] :folder The document folder.
3327
3521
  # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
3328
- def put_add_text_with_http_info(name, page_number, opts = {})
3522
+ def post_sign_page_with_http_info(name, page_number, opts = {})
3329
3523
  if @api_client.config.debugging
3330
- @api_client.config.logger.debug "Calling API: PdfApi.put_add_text ..."
3524
+ @api_client.config.logger.debug "Calling API: PdfApi.post_sign_page ..."
3331
3525
  end
3332
3526
  # verify the required parameter 'name' is set
3333
3527
  if @api_client.config.client_side_validation && name.nil?
3334
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_add_text"
3528
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_sign_page"
3335
3529
  end
3336
3530
  # verify the required parameter 'page_number' is set
3337
3531
  if @api_client.config.client_side_validation && page_number.nil?
3338
- fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.put_add_text"
3532
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_sign_page"
3339
3533
  end
3340
3534
  # resource path
3341
- local_var_path = "/pdf/{name}/pages/{pageNumber}/text".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
3535
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/sign".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
3342
3536
 
3343
3537
  # query parameters
3344
3538
  query_params = {}
@@ -3356,7 +3550,1171 @@ module AsposePdfCloud
3356
3550
  form_params = {}
3357
3551
 
3358
3552
  # http body (model)
3359
- post_body = @api_client.object_to_http_body(opts[:'paragraph'])
3553
+ post_body = @api_client.object_to_http_body(opts[:'signature'])
3554
+ auth_names = []
3555
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3556
+ :header_params => header_params,
3557
+ :query_params => query_params,
3558
+ :form_params => form_params,
3559
+ :body => post_body,
3560
+ :auth_names => auth_names,
3561
+ :return_type => 'SaaSposeResponse')
3562
+ if @api_client.config.debugging
3563
+ @api_client.config.logger.debug "API called: PdfApi#post_sign_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3564
+ end
3565
+ return data, status_code, headers
3566
+ end
3567
+
3568
+ # Split document to parts.
3569
+ #
3570
+ # @param name Document name.
3571
+ # @param [Hash] opts the optional parameters
3572
+ # @option opts [String] :format Resulting documents format.
3573
+ # @option opts [Integer] :from Start page if defined.
3574
+ # @option opts [Integer] :to End page if defined.
3575
+ # @option opts [String] :storage The document storage.
3576
+ # @option opts [String] :folder The document folder.
3577
+ # @return [SplitResultResponse]
3578
+ def post_split_document(name, opts = {})
3579
+ data, _status_code, _headers = post_split_document_with_http_info(name, opts)
3580
+ return data
3581
+ end
3582
+
3583
+ # Split document to parts.
3584
+ #
3585
+ # @param name Document name.
3586
+ # @param [Hash] opts the optional parameters
3587
+ # @option opts [String] :format Resulting documents format.
3588
+ # @option opts [Integer] :from Start page if defined.
3589
+ # @option opts [Integer] :to End page if defined.
3590
+ # @option opts [String] :storage The document storage.
3591
+ # @option opts [String] :folder The document folder.
3592
+ # @return [Array<(SplitResultResponse, Fixnum, Hash)>] SplitResultResponse data, response status code and response headers
3593
+ def post_split_document_with_http_info(name, opts = {})
3594
+ if @api_client.config.debugging
3595
+ @api_client.config.logger.debug "Calling API: PdfApi.post_split_document ..."
3596
+ end
3597
+ # verify the required parameter 'name' is set
3598
+ if @api_client.config.client_side_validation && name.nil?
3599
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_split_document"
3600
+ end
3601
+ # resource path
3602
+ local_var_path = "/pdf/{name}/split".sub('{' + 'name' + '}', name.to_s)
3603
+
3604
+ # query parameters
3605
+ query_params = {}
3606
+ query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
3607
+ query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
3608
+ query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
3609
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3610
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3611
+
3612
+ # header parameters
3613
+ header_params = {}
3614
+ # HTTP header 'Accept' (if needed)
3615
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3616
+ # HTTP header 'Content-Type'
3617
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3618
+
3619
+ # form parameters
3620
+ form_params = {}
3621
+
3622
+ # http body (model)
3623
+ post_body = nil
3624
+ auth_names = []
3625
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3626
+ :header_params => header_params,
3627
+ :query_params => query_params,
3628
+ :form_params => form_params,
3629
+ :body => post_body,
3630
+ :auth_names => auth_names,
3631
+ :return_type => 'SplitResultResponse')
3632
+ if @api_client.config.debugging
3633
+ @api_client.config.logger.debug "API called: PdfApi#post_split_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3634
+ end
3635
+ return data, status_code, headers
3636
+ end
3637
+
3638
+ # Add new page to end of the document.
3639
+ #
3640
+ # @param name The document name.
3641
+ # @param [Hash] opts the optional parameters
3642
+ # @option opts [String] :storage The document storage.
3643
+ # @option opts [String] :folder The document folder.
3644
+ # @return [DocumentPagesResponse]
3645
+ def put_add_new_page(name, opts = {})
3646
+ data, _status_code, _headers = put_add_new_page_with_http_info(name, opts)
3647
+ return data
3648
+ end
3649
+
3650
+ # Add new page to end of the document.
3651
+ #
3652
+ # @param name The document name.
3653
+ # @param [Hash] opts the optional parameters
3654
+ # @option opts [String] :storage The document storage.
3655
+ # @option opts [String] :folder The document folder.
3656
+ # @return [Array<(DocumentPagesResponse, Fixnum, Hash)>] DocumentPagesResponse data, response status code and response headers
3657
+ def put_add_new_page_with_http_info(name, opts = {})
3658
+ if @api_client.config.debugging
3659
+ @api_client.config.logger.debug "Calling API: PdfApi.put_add_new_page ..."
3660
+ end
3661
+ # verify the required parameter 'name' is set
3662
+ if @api_client.config.client_side_validation && name.nil?
3663
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_add_new_page"
3664
+ end
3665
+ # resource path
3666
+ local_var_path = "/pdf/{name}/pages".sub('{' + 'name' + '}', name.to_s)
3667
+
3668
+ # query parameters
3669
+ query_params = {}
3670
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3671
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3672
+
3673
+ # header parameters
3674
+ header_params = {}
3675
+ # HTTP header 'Accept' (if needed)
3676
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3677
+ # HTTP header 'Content-Type'
3678
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3679
+
3680
+ # form parameters
3681
+ form_params = {}
3682
+
3683
+ # http body (model)
3684
+ post_body = nil
3685
+ auth_names = []
3686
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3687
+ :header_params => header_params,
3688
+ :query_params => query_params,
3689
+ :form_params => form_params,
3690
+ :body => post_body,
3691
+ :auth_names => auth_names,
3692
+ :return_type => 'DocumentPagesResponse')
3693
+ if @api_client.config.debugging
3694
+ @api_client.config.logger.debug "API called: PdfApi#put_add_new_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3695
+ end
3696
+ return data, status_code, headers
3697
+ end
3698
+
3699
+ # Add text to PDF document page. Deprecated
3700
+ #
3701
+ # @param name Name of the document to which text should be added.
3702
+ # @param page_number Number of page (starting with 1) to which text should be added.
3703
+ # @param [Hash] opts the optional parameters
3704
+ # @option opts [Paragraph] :paragraph Paragraph data.
3705
+ # @option opts [String] :storage File storage to be used.
3706
+ # @option opts [String] :folder Document folder.
3707
+ # @return [SaaSposeResponse]
3708
+ def put_add_paragraph(name, page_number, opts = {})
3709
+ data, _status_code, _headers = put_add_paragraph_with_http_info(name, page_number, opts)
3710
+ return data
3711
+ end
3712
+
3713
+ # Add text to PDF document page. Deprecated
3714
+ #
3715
+ # @param name Name of the document to which text should be added.
3716
+ # @param page_number Number of page (starting with 1) to which text should be added.
3717
+ # @param [Hash] opts the optional parameters
3718
+ # @option opts [Paragraph] :paragraph Paragraph data.
3719
+ # @option opts [String] :storage File storage to be used.
3720
+ # @option opts [String] :folder Document folder.
3721
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
3722
+ def put_add_paragraph_with_http_info(name, page_number, opts = {})
3723
+ if @api_client.config.debugging
3724
+ @api_client.config.logger.debug "Calling API: PdfApi.put_add_paragraph ..."
3725
+ end
3726
+ # verify the required parameter 'name' is set
3727
+ if @api_client.config.client_side_validation && name.nil?
3728
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_add_paragraph"
3729
+ end
3730
+ # verify the required parameter 'page_number' is set
3731
+ if @api_client.config.client_side_validation && page_number.nil?
3732
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.put_add_paragraph"
3733
+ end
3734
+ # resource path
3735
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/paragraph".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
3736
+
3737
+ # query parameters
3738
+ query_params = {}
3739
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3740
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3741
+
3742
+ # header parameters
3743
+ header_params = {}
3744
+ # HTTP header 'Accept' (if needed)
3745
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3746
+ # HTTP header 'Content-Type'
3747
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3748
+
3749
+ # form parameters
3750
+ form_params = {}
3751
+
3752
+ # http body (model)
3753
+ post_body = @api_client.object_to_http_body(opts[:'paragraph'])
3754
+ auth_names = []
3755
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3756
+ :header_params => header_params,
3757
+ :query_params => query_params,
3758
+ :form_params => form_params,
3759
+ :body => post_body,
3760
+ :auth_names => auth_names,
3761
+ :return_type => 'SaaSposeResponse')
3762
+ if @api_client.config.debugging
3763
+ @api_client.config.logger.debug "API called: PdfApi#put_add_paragraph\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3764
+ end
3765
+ return data, status_code, headers
3766
+ end
3767
+
3768
+ # Add text to PDF document page.
3769
+ #
3770
+ # @param name The document name.
3771
+ # @param page_number Number of page (starting from 1).
3772
+ # @param [Hash] opts the optional parameters
3773
+ # @option opts [Paragraph] :paragraph Paragraph data.
3774
+ # @option opts [String] :folder Document folder.
3775
+ # @return [SaaSposeResponse]
3776
+ def put_add_text(name, page_number, opts = {})
3777
+ data, _status_code, _headers = put_add_text_with_http_info(name, page_number, opts)
3778
+ return data
3779
+ end
3780
+
3781
+ # Add text to PDF document page.
3782
+ #
3783
+ # @param name The document name.
3784
+ # @param page_number Number of page (starting from 1).
3785
+ # @param [Hash] opts the optional parameters
3786
+ # @option opts [Paragraph] :paragraph Paragraph data.
3787
+ # @option opts [String] :folder Document folder.
3788
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
3789
+ def put_add_text_with_http_info(name, page_number, opts = {})
3790
+ if @api_client.config.debugging
3791
+ @api_client.config.logger.debug "Calling API: PdfApi.put_add_text ..."
3792
+ end
3793
+ # verify the required parameter 'name' is set
3794
+ if @api_client.config.client_side_validation && name.nil?
3795
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_add_text"
3796
+ end
3797
+ # verify the required parameter 'page_number' is set
3798
+ if @api_client.config.client_side_validation && page_number.nil?
3799
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.put_add_text"
3800
+ end
3801
+ # resource path
3802
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/text".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
3803
+
3804
+ # query parameters
3805
+ query_params = {}
3806
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3807
+
3808
+ # header parameters
3809
+ header_params = {}
3810
+ # HTTP header 'Accept' (if needed)
3811
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3812
+ # HTTP header 'Content-Type'
3813
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3814
+
3815
+ # form parameters
3816
+ form_params = {}
3817
+
3818
+ # http body (model)
3819
+ post_body = @api_client.object_to_http_body(opts[:'paragraph'])
3820
+ auth_names = []
3821
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3822
+ :header_params => header_params,
3823
+ :query_params => query_params,
3824
+ :form_params => form_params,
3825
+ :body => post_body,
3826
+ :auth_names => auth_names,
3827
+ :return_type => 'SaaSposeResponse')
3828
+ if @api_client.config.debugging
3829
+ @api_client.config.logger.debug "API called: PdfApi#put_add_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3830
+ end
3831
+ return data, status_code, headers
3832
+ end
3833
+
3834
+ # Convert document from request content to format specified.
3835
+ #
3836
+ # @param [Hash] opts the optional parameters
3837
+ # @option opts [String] :format The format to convert.
3838
+ # @option opts [String] :url
3839
+ # @option opts [String] :out_path Path to save result
3840
+ # @option opts [File] :file A file to be converted.
3841
+ # @return [File]
3842
+ def put_convert_document(opts = {})
3843
+ data, _status_code, _headers = put_convert_document_with_http_info(opts)
3844
+ return data
3845
+ end
3846
+
3847
+ # Convert document from request content to format specified.
3848
+ #
3849
+ # @param [Hash] opts the optional parameters
3850
+ # @option opts [String] :format The format to convert.
3851
+ # @option opts [String] :url
3852
+ # @option opts [String] :out_path Path to save result
3853
+ # @option opts [File] :file A file to be converted.
3854
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
3855
+ def put_convert_document_with_http_info(opts = {})
3856
+ if @api_client.config.debugging
3857
+ @api_client.config.logger.debug "Calling API: PdfApi.put_convert_document ..."
3858
+ end
3859
+ # resource path
3860
+ local_var_path = "/pdf/convert"
3861
+
3862
+ # query parameters
3863
+ query_params = {}
3864
+ query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
3865
+ query_params[:'url'] = opts[:'url'] if !opts[:'url'].nil?
3866
+ query_params[:'outPath'] = opts[:'out_path'] if !opts[:'out_path'].nil?
3867
+
3868
+ # header parameters
3869
+ header_params = {}
3870
+ # HTTP header 'Accept' (if needed)
3871
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
3872
+ # HTTP header 'Content-Type'
3873
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3874
+
3875
+ # form parameters
3876
+ form_params = {}
3877
+ form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
3878
+
3879
+ # http body (model)
3880
+ post_body = nil
3881
+ auth_names = []
3882
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3883
+ :header_params => header_params,
3884
+ :query_params => query_params,
3885
+ :form_params => form_params,
3886
+ :body => post_body,
3887
+ :auth_names => auth_names,
3888
+ :return_type => 'File')
3889
+ if @api_client.config.debugging
3890
+ @api_client.config.logger.debug "API called: PdfApi#put_convert_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3891
+ end
3892
+ return data, status_code, headers
3893
+ end
3894
+
3895
+ # Create new document.
3896
+ #
3897
+ # @param name The new document name.
3898
+ # @param [Hash] opts the optional parameters
3899
+ # @option opts [String] :template_file The template file server path if defined.
3900
+ # @option opts [String] :data_file The data file path (for xml template only).
3901
+ # @option opts [String] :template_type The template type, can be xml, html, bmp, jpg, png, tiff, emf, cgm, tex.
3902
+ # @option opts [String] :storage The document storage.
3903
+ # @option opts [String] :folder The new document folder.
3904
+ # @option opts [String] :url The url of web page if defined.
3905
+ # @option opts [BOOLEAN] :fit_size Draw a margin around content in resulting pdf. (default to false)
3906
+ # @return [DocumentResponse]
3907
+ def put_create_document(name, opts = {})
3908
+ data, _status_code, _headers = put_create_document_with_http_info(name, opts)
3909
+ return data
3910
+ end
3911
+
3912
+ # Create new document.
3913
+ #
3914
+ # @param name The new document name.
3915
+ # @param [Hash] opts the optional parameters
3916
+ # @option opts [String] :template_file The template file server path if defined.
3917
+ # @option opts [String] :data_file The data file path (for xml template only).
3918
+ # @option opts [String] :template_type The template type, can be xml, html, bmp, jpg, png, tiff, emf, cgm, tex.
3919
+ # @option opts [String] :storage The document storage.
3920
+ # @option opts [String] :folder The new document folder.
3921
+ # @option opts [String] :url The url of web page if defined.
3922
+ # @option opts [BOOLEAN] :fit_size Draw a margin around content in resulting pdf.
3923
+ # @return [Array<(DocumentResponse, Fixnum, Hash)>] DocumentResponse data, response status code and response headers
3924
+ def put_create_document_with_http_info(name, opts = {})
3925
+ if @api_client.config.debugging
3926
+ @api_client.config.logger.debug "Calling API: PdfApi.put_create_document ..."
3927
+ end
3928
+ # verify the required parameter 'name' is set
3929
+ if @api_client.config.client_side_validation && name.nil?
3930
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_create_document"
3931
+ end
3932
+ # resource path
3933
+ local_var_path = "/pdf/{name}".sub('{' + 'name' + '}', name.to_s)
3934
+
3935
+ # query parameters
3936
+ query_params = {}
3937
+ query_params[:'templateFile'] = opts[:'template_file'] if !opts[:'template_file'].nil?
3938
+ query_params[:'dataFile'] = opts[:'data_file'] if !opts[:'data_file'].nil?
3939
+ query_params[:'templateType'] = opts[:'template_type'] if !opts[:'template_type'].nil?
3940
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3941
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3942
+ query_params[:'url'] = opts[:'url'] if !opts[:'url'].nil?
3943
+ query_params[:'fitSize'] = opts[:'fit_size'] if !opts[:'fit_size'].nil?
3944
+
3945
+ # header parameters
3946
+ header_params = {}
3947
+ # HTTP header 'Accept' (if needed)
3948
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3949
+ # HTTP header 'Content-Type'
3950
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3951
+
3952
+ # form parameters
3953
+ form_params = {}
3954
+
3955
+ # http body (model)
3956
+ post_body = nil
3957
+ auth_names = []
3958
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3959
+ :header_params => header_params,
3960
+ :query_params => query_params,
3961
+ :form_params => form_params,
3962
+ :body => post_body,
3963
+ :auth_names => auth_names,
3964
+ :return_type => 'DocumentResponse')
3965
+ if @api_client.config.debugging
3966
+ @api_client.config.logger.debug "API called: PdfApi#put_create_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3967
+ end
3968
+ return data, status_code, headers
3969
+ end
3970
+
3971
+ # Create new document from images.
3972
+ #
3973
+ # @param name The new document name.
3974
+ # @param [Hash] opts the optional parameters
3975
+ # @option opts [ImagesListRequest] :images The images file paths set.
3976
+ # @option opts [BOOLEAN] :ocr To create OCR layer for image or not. (default to false)
3977
+ # @option opts [String] :ocr_lang The language which is defined for OCR engine. Default is eng. (default to eng)
3978
+ # @option opts [String] :storage The document storage.
3979
+ # @option opts [String] :folder The new document folder.
3980
+ # @return [DocumentResponse]
3981
+ def put_create_document_from_images(name, opts = {})
3982
+ data, _status_code, _headers = put_create_document_from_images_with_http_info(name, opts)
3983
+ return data
3984
+ end
3985
+
3986
+ # Create new document from images.
3987
+ #
3988
+ # @param name The new document name.
3989
+ # @param [Hash] opts the optional parameters
3990
+ # @option opts [ImagesListRequest] :images The images file paths set.
3991
+ # @option opts [BOOLEAN] :ocr To create OCR layer for image or not.
3992
+ # @option opts [String] :ocr_lang The language which is defined for OCR engine. Default is eng.
3993
+ # @option opts [String] :storage The document storage.
3994
+ # @option opts [String] :folder The new document folder.
3995
+ # @return [Array<(DocumentResponse, Fixnum, Hash)>] DocumentResponse data, response status code and response headers
3996
+ def put_create_document_from_images_with_http_info(name, opts = {})
3997
+ if @api_client.config.debugging
3998
+ @api_client.config.logger.debug "Calling API: PdfApi.put_create_document_from_images ..."
3999
+ end
4000
+ # verify the required parameter 'name' is set
4001
+ if @api_client.config.client_side_validation && name.nil?
4002
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_create_document_from_images"
4003
+ end
4004
+ # resource path
4005
+ local_var_path = "/pdf/{name}/fromimages".sub('{' + 'name' + '}', name.to_s)
4006
+
4007
+ # query parameters
4008
+ query_params = {}
4009
+ query_params[:'ocr'] = opts[:'ocr'] if !opts[:'ocr'].nil?
4010
+ query_params[:'ocrLang'] = opts[:'ocr_lang'] if !opts[:'ocr_lang'].nil?
4011
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
4012
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
4013
+
4014
+ # header parameters
4015
+ header_params = {}
4016
+ # HTTP header 'Accept' (if needed)
4017
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4018
+ # HTTP header 'Content-Type'
4019
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4020
+
4021
+ # form parameters
4022
+ form_params = {}
4023
+
4024
+ # http body (model)
4025
+ post_body = @api_client.object_to_http_body(opts[:'images'])
4026
+ auth_names = []
4027
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4028
+ :header_params => header_params,
4029
+ :query_params => query_params,
4030
+ :form_params => form_params,
4031
+ :body => post_body,
4032
+ :auth_names => auth_names,
4033
+ :return_type => 'DocumentResponse')
4034
+ if @api_client.config.debugging
4035
+ @api_client.config.logger.debug "API called: PdfApi#put_create_document_from_images\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4036
+ end
4037
+ return data, status_code, headers
4038
+ end
4039
+
4040
+ # Save document as Tiff image.
4041
+ #
4042
+ # @param name The document name.
4043
+ # @param [Hash] opts the optional parameters
4044
+ # @option opts [TiffExportOptions] :export_options with tiff export options.
4045
+ # @option opts [String] :result_file The resulting file.
4046
+ # @option opts [Float] :brightness The image brightness.
4047
+ # @option opts [String] :compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
4048
+ # @option opts [String] :color_depth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
4049
+ # @option opts [Integer] :left_margin Left image margin.
4050
+ # @option opts [Integer] :right_margin Right image margin.
4051
+ # @option opts [Integer] :top_margin Top image margin.
4052
+ # @option opts [Integer] :bottom_margin Bottom image margin.
4053
+ # @option opts [String] :orientation Image orientation. Possible values are: None, Landscape, Portait.
4054
+ # @option opts [BOOLEAN] :skip_blank_pages Skip blank pages flag.
4055
+ # @option opts [Integer] :width Image width.
4056
+ # @option opts [Integer] :height Image height.
4057
+ # @option opts [Integer] :x_resolution Horizontal resolution.
4058
+ # @option opts [Integer] :y_resolution Vertical resolution.
4059
+ # @option opts [Integer] :page_index Start page to export.
4060
+ # @option opts [Integer] :page_count Number of pages to export.
4061
+ # @option opts [String] :storage The document storage.
4062
+ # @option opts [String] :folder The document folder.
4063
+ # @return [SaaSposeResponse]
4064
+ def put_document_save_as_tiff(name, opts = {})
4065
+ data, _status_code, _headers = put_document_save_as_tiff_with_http_info(name, opts)
4066
+ return data
4067
+ end
4068
+
4069
+ # Save document as Tiff image.
4070
+ #
4071
+ # @param name The document name.
4072
+ # @param [Hash] opts the optional parameters
4073
+ # @option opts [TiffExportOptions] :export_options with tiff export options.
4074
+ # @option opts [String] :result_file The resulting file.
4075
+ # @option opts [Float] :brightness The image brightness.
4076
+ # @option opts [String] :compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
4077
+ # @option opts [String] :color_depth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
4078
+ # @option opts [Integer] :left_margin Left image margin.
4079
+ # @option opts [Integer] :right_margin Right image margin.
4080
+ # @option opts [Integer] :top_margin Top image margin.
4081
+ # @option opts [Integer] :bottom_margin Bottom image margin.
4082
+ # @option opts [String] :orientation Image orientation. Possible values are: None, Landscape, Portait.
4083
+ # @option opts [BOOLEAN] :skip_blank_pages Skip blank pages flag.
4084
+ # @option opts [Integer] :width Image width.
4085
+ # @option opts [Integer] :height Image height.
4086
+ # @option opts [Integer] :x_resolution Horizontal resolution.
4087
+ # @option opts [Integer] :y_resolution Vertical resolution.
4088
+ # @option opts [Integer] :page_index Start page to export.
4089
+ # @option opts [Integer] :page_count Number of pages to export.
4090
+ # @option opts [String] :storage The document storage.
4091
+ # @option opts [String] :folder The document folder.
4092
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
4093
+ def put_document_save_as_tiff_with_http_info(name, opts = {})
4094
+ if @api_client.config.debugging
4095
+ @api_client.config.logger.debug "Calling API: PdfApi.put_document_save_as_tiff ..."
4096
+ end
4097
+ # verify the required parameter 'name' is set
4098
+ if @api_client.config.client_side_validation && name.nil?
4099
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_document_save_as_tiff"
4100
+ end
4101
+ # resource path
4102
+ local_var_path = "/pdf/{name}/SaveAs/tiff".sub('{' + 'name' + '}', name.to_s)
4103
+
4104
+ # query parameters
4105
+ query_params = {}
4106
+ query_params[:'resultFile'] = opts[:'result_file'] if !opts[:'result_file'].nil?
4107
+ query_params[:'brightness'] = opts[:'brightness'] if !opts[:'brightness'].nil?
4108
+ query_params[:'compression'] = opts[:'compression'] if !opts[:'compression'].nil?
4109
+ query_params[:'colorDepth'] = opts[:'color_depth'] if !opts[:'color_depth'].nil?
4110
+ query_params[:'leftMargin'] = opts[:'left_margin'] if !opts[:'left_margin'].nil?
4111
+ query_params[:'rightMargin'] = opts[:'right_margin'] if !opts[:'right_margin'].nil?
4112
+ query_params[:'topMargin'] = opts[:'top_margin'] if !opts[:'top_margin'].nil?
4113
+ query_params[:'bottomMargin'] = opts[:'bottom_margin'] if !opts[:'bottom_margin'].nil?
4114
+ query_params[:'orientation'] = opts[:'orientation'] if !opts[:'orientation'].nil?
4115
+ query_params[:'skipBlankPages'] = opts[:'skip_blank_pages'] if !opts[:'skip_blank_pages'].nil?
4116
+ query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
4117
+ query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
4118
+ query_params[:'xResolution'] = opts[:'x_resolution'] if !opts[:'x_resolution'].nil?
4119
+ query_params[:'yResolution'] = opts[:'y_resolution'] if !opts[:'y_resolution'].nil?
4120
+ query_params[:'pageIndex'] = opts[:'page_index'] if !opts[:'page_index'].nil?
4121
+ query_params[:'pageCount'] = opts[:'page_count'] if !opts[:'page_count'].nil?
4122
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
4123
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
4124
+
4125
+ # header parameters
4126
+ header_params = {}
4127
+ # HTTP header 'Accept' (if needed)
4128
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4129
+ # HTTP header 'Content-Type'
4130
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4131
+
4132
+ # form parameters
4133
+ form_params = {}
4134
+
4135
+ # http body (model)
4136
+ post_body = @api_client.object_to_http_body(opts[:'export_options'])
4137
+ auth_names = []
4138
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4139
+ :header_params => header_params,
4140
+ :query_params => query_params,
4141
+ :form_params => form_params,
4142
+ :body => post_body,
4143
+ :auth_names => auth_names,
4144
+ :return_type => 'SaaSposeResponse')
4145
+ if @api_client.config.debugging
4146
+ @api_client.config.logger.debug "API called: PdfApi#put_document_save_as_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4147
+ end
4148
+ return data, status_code, headers
4149
+ end
4150
+
4151
+ # Merge a list of documents.
4152
+ #
4153
+ # @param name Resulting documen name.
4154
+ # @param [Hash] opts the optional parameters
4155
+ # @option opts [MergeDocuments] :merge_documents with a list of documents.
4156
+ # @option opts [String] :storage Resulting document storage.
4157
+ # @option opts [String] :folder Resulting document folder.
4158
+ # @return [DocumentResponse]
4159
+ def put_merge_documents(name, opts = {})
4160
+ data, _status_code, _headers = put_merge_documents_with_http_info(name, opts)
4161
+ return data
4162
+ end
4163
+
4164
+ # Merge a list of documents.
4165
+ #
4166
+ # @param name Resulting documen name.
4167
+ # @param [Hash] opts the optional parameters
4168
+ # @option opts [MergeDocuments] :merge_documents with a list of documents.
4169
+ # @option opts [String] :storage Resulting document storage.
4170
+ # @option opts [String] :folder Resulting document folder.
4171
+ # @return [Array<(DocumentResponse, Fixnum, Hash)>] DocumentResponse data, response status code and response headers
4172
+ def put_merge_documents_with_http_info(name, opts = {})
4173
+ if @api_client.config.debugging
4174
+ @api_client.config.logger.debug "Calling API: PdfApi.put_merge_documents ..."
4175
+ end
4176
+ # verify the required parameter 'name' is set
4177
+ if @api_client.config.client_side_validation && name.nil?
4178
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_merge_documents"
4179
+ end
4180
+ # resource path
4181
+ local_var_path = "/pdf/{name}/merge".sub('{' + 'name' + '}', name.to_s)
4182
+
4183
+ # query parameters
4184
+ query_params = {}
4185
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
4186
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
4187
+
4188
+ # header parameters
4189
+ header_params = {}
4190
+ # HTTP header 'Accept' (if needed)
4191
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4192
+ # HTTP header 'Content-Type'
4193
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4194
+
4195
+ # form parameters
4196
+ form_params = {}
4197
+
4198
+ # http body (model)
4199
+ post_body = @api_client.object_to_http_body(opts[:'merge_documents'])
4200
+ auth_names = []
4201
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4202
+ :header_params => header_params,
4203
+ :query_params => query_params,
4204
+ :form_params => form_params,
4205
+ :body => post_body,
4206
+ :auth_names => auth_names,
4207
+ :return_type => 'DocumentResponse')
4208
+ if @api_client.config.debugging
4209
+ @api_client.config.logger.debug "API called: PdfApi#put_merge_documents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4210
+ end
4211
+ return data, status_code, headers
4212
+ end
4213
+
4214
+ # Add page stamp.
4215
+ #
4216
+ # @param name The document name.
4217
+ # @param page_number The page number.
4218
+ # @param stamp with data.
4219
+ # @param [Hash] opts the optional parameters
4220
+ # @option opts [String] :storage The document storage.
4221
+ # @option opts [String] :folder The document folder.
4222
+ # @return [SaaSposeResponse]
4223
+ def put_page_add_stamp(name, page_number, stamp, opts = {})
4224
+ data, _status_code, _headers = put_page_add_stamp_with_http_info(name, page_number, stamp, opts)
4225
+ return data
4226
+ end
4227
+
4228
+ # Add page stamp.
4229
+ #
4230
+ # @param name The document name.
4231
+ # @param page_number The page number.
4232
+ # @param stamp with data.
4233
+ # @param [Hash] opts the optional parameters
4234
+ # @option opts [String] :storage The document storage.
4235
+ # @option opts [String] :folder The document folder.
4236
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
4237
+ def put_page_add_stamp_with_http_info(name, page_number, stamp, opts = {})
4238
+ if @api_client.config.debugging
4239
+ @api_client.config.logger.debug "Calling API: PdfApi.put_page_add_stamp ..."
4240
+ end
4241
+ # verify the required parameter 'name' is set
4242
+ if @api_client.config.client_side_validation && name.nil?
4243
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_page_add_stamp"
4244
+ end
4245
+ # verify the required parameter 'page_number' is set
4246
+ if @api_client.config.client_side_validation && page_number.nil?
4247
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.put_page_add_stamp"
4248
+ end
4249
+ # verify the required parameter 'stamp' is set
4250
+ if @api_client.config.client_side_validation && stamp.nil?
4251
+ fail ArgumentError, "Missing the required parameter 'stamp' when calling PdfApi.put_page_add_stamp"
4252
+ end
4253
+ # resource path
4254
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/stamp".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
4255
+
4256
+ # query parameters
4257
+ query_params = {}
4258
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
4259
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
4260
+
4261
+ # header parameters
4262
+ header_params = {}
4263
+ # HTTP header 'Accept' (if needed)
4264
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4265
+ # HTTP header 'Content-Type'
4266
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4267
+
4268
+ # form parameters
4269
+ form_params = {}
4270
+
4271
+ # http body (model)
4272
+ post_body = @api_client.object_to_http_body(stamp)
4273
+ auth_names = []
4274
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4275
+ :header_params => header_params,
4276
+ :query_params => query_params,
4277
+ :form_params => form_params,
4278
+ :body => post_body,
4279
+ :auth_names => auth_names,
4280
+ :return_type => 'SaaSposeResponse')
4281
+ if @api_client.config.debugging
4282
+ @api_client.config.logger.debug "API called: PdfApi#put_page_add_stamp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4283
+ end
4284
+ return data, status_code, headers
4285
+ end
4286
+
4287
+ # Converts PDF document (in request content) to DOC format and uploads resulting file to storage.
4288
+ #
4289
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
4290
+ # @param [Hash] opts the optional parameters
4291
+ # @option opts [BOOLEAN] :add_return_to_line_end Add return to line end.
4292
+ # @option opts [String] :format Allows to specify .doc or .docx file format.
4293
+ # @option opts [Integer] :image_resolution_x Image resolution X.
4294
+ # @option opts [Integer] :image_resolution_y Image resolution Y.
4295
+ # @option opts [Integer] :max_distance_between_text_lines Max distance between text lines.
4296
+ # @option opts [String] :mode Allows to control how a PDF document is converted into a word processing document.
4297
+ # @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
4298
+ # @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
4299
+ # @option opts [File] :file A file to be converted.
4300
+ # @return [File]
4301
+ def put_pdf_in_request_to_doc(out_path, opts = {})
4302
+ data, _status_code, _headers = put_pdf_in_request_to_doc_with_http_info(out_path, opts)
4303
+ return data
4304
+ end
4305
+
4306
+ # Converts PDF document (in request content) to DOC format and uploads resulting file to storage.
4307
+ #
4308
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
4309
+ # @param [Hash] opts the optional parameters
4310
+ # @option opts [BOOLEAN] :add_return_to_line_end Add return to line end.
4311
+ # @option opts [String] :format Allows to specify .doc or .docx file format.
4312
+ # @option opts [Integer] :image_resolution_x Image resolution X.
4313
+ # @option opts [Integer] :image_resolution_y Image resolution Y.
4314
+ # @option opts [Integer] :max_distance_between_text_lines Max distance between text lines.
4315
+ # @option opts [String] :mode Allows to control how a PDF document is converted into a word processing document.
4316
+ # @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
4317
+ # @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
4318
+ # @option opts [File] :file A file to be converted.
4319
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
4320
+ def put_pdf_in_request_to_doc_with_http_info(out_path, opts = {})
4321
+ if @api_client.config.debugging
4322
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_doc ..."
4323
+ end
4324
+ # verify the required parameter 'out_path' is set
4325
+ if @api_client.config.client_side_validation && out_path.nil?
4326
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_request_to_doc"
4327
+ end
4328
+ # resource path
4329
+ local_var_path = "/pdf/convert/doc"
4330
+
4331
+ # query parameters
4332
+ query_params = {}
4333
+ query_params[:'outPath'] = out_path
4334
+ query_params[:'addReturnToLineEnd'] = opts[:'add_return_to_line_end'] if !opts[:'add_return_to_line_end'].nil?
4335
+ query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
4336
+ query_params[:'imageResolutionX'] = opts[:'image_resolution_x'] if !opts[:'image_resolution_x'].nil?
4337
+ query_params[:'imageResolutionY'] = opts[:'image_resolution_y'] if !opts[:'image_resolution_y'].nil?
4338
+ query_params[:'maxDistanceBetweenTextLines'] = opts[:'max_distance_between_text_lines'] if !opts[:'max_distance_between_text_lines'].nil?
4339
+ query_params[:'mode'] = opts[:'mode'] if !opts[:'mode'].nil?
4340
+ query_params[:'recognizeBullets'] = opts[:'recognize_bullets'] if !opts[:'recognize_bullets'].nil?
4341
+ query_params[:'relativeHorizontalProximity'] = opts[:'relative_horizontal_proximity'] if !opts[:'relative_horizontal_proximity'].nil?
4342
+
4343
+ # header parameters
4344
+ header_params = {}
4345
+ # HTTP header 'Accept' (if needed)
4346
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4347
+ # HTTP header 'Content-Type'
4348
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4349
+
4350
+ # form parameters
4351
+ form_params = {}
4352
+ form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
4353
+
4354
+ # http body (model)
4355
+ post_body = nil
4356
+ auth_names = []
4357
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4358
+ :header_params => header_params,
4359
+ :query_params => query_params,
4360
+ :form_params => form_params,
4361
+ :body => post_body,
4362
+ :auth_names => auth_names,
4363
+ :return_type => 'File')
4364
+ if @api_client.config.debugging
4365
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_doc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4366
+ end
4367
+ return data, status_code, headers
4368
+ end
4369
+
4370
+ # Converts PDF document (in request content) to PdfA format and uploads resulting file to storage.
4371
+ #
4372
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
4373
+ # @param type Type of PdfA format.
4374
+ # @param [Hash] opts the optional parameters
4375
+ # @option opts [File] :file A file to be converted.
4376
+ # @return [File]
4377
+ def put_pdf_in_request_to_pdf_a(out_path, type, opts = {})
4378
+ data, _status_code, _headers = put_pdf_in_request_to_pdf_a_with_http_info(out_path, type, opts)
4379
+ return data
4380
+ end
4381
+
4382
+ # Converts PDF document (in request content) to PdfA format and uploads resulting file to storage.
4383
+ #
4384
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
4385
+ # @param type Type of PdfA format.
4386
+ # @param [Hash] opts the optional parameters
4387
+ # @option opts [File] :file A file to be converted.
4388
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
4389
+ def put_pdf_in_request_to_pdf_a_with_http_info(out_path, type, opts = {})
4390
+ if @api_client.config.debugging
4391
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_pdf_a ..."
4392
+ end
4393
+ # verify the required parameter 'out_path' is set
4394
+ if @api_client.config.client_side_validation && out_path.nil?
4395
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_request_to_pdf_a"
4396
+ end
4397
+ # verify the required parameter 'type' is set
4398
+ if @api_client.config.client_side_validation && type.nil?
4399
+ fail ArgumentError, "Missing the required parameter 'type' when calling PdfApi.put_pdf_in_request_to_pdf_a"
4400
+ end
4401
+ # resource path
4402
+ local_var_path = "/pdf/convert/pdfa"
4403
+
4404
+ # query parameters
4405
+ query_params = {}
4406
+ query_params[:'outPath'] = out_path
4407
+ query_params[:'type'] = type
4408
+
4409
+ # header parameters
4410
+ header_params = {}
4411
+ # HTTP header 'Accept' (if needed)
4412
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4413
+ # HTTP header 'Content-Type'
4414
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4415
+
4416
+ # form parameters
4417
+ form_params = {}
4418
+ form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
4419
+
4420
+ # http body (model)
4421
+ post_body = nil
4422
+ auth_names = []
4423
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4424
+ :header_params => header_params,
4425
+ :query_params => query_params,
4426
+ :form_params => form_params,
4427
+ :body => post_body,
4428
+ :auth_names => auth_names,
4429
+ :return_type => 'File')
4430
+ if @api_client.config.debugging
4431
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_pdf_a\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4432
+ end
4433
+ return data, status_code, headers
4434
+ end
4435
+
4436
+ # Converts PDF document (in request content) to SVG format and uploads resulting file to storage.
4437
+ #
4438
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.svg)
4439
+ # @param [Hash] opts the optional parameters
4440
+ # @option opts [BOOLEAN] :compress_output_to_zip_archive Specifies whether output will be created as one zip-archive.
4441
+ # @option opts [File] :file A file to be converted.
4442
+ # @return [File]
4443
+ def put_pdf_in_request_to_svg(out_path, opts = {})
4444
+ data, _status_code, _headers = put_pdf_in_request_to_svg_with_http_info(out_path, opts)
4445
+ return data
4446
+ end
4447
+
4448
+ # Converts PDF document (in request content) to SVG format and uploads resulting file to storage.
4449
+ #
4450
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.svg)
4451
+ # @param [Hash] opts the optional parameters
4452
+ # @option opts [BOOLEAN] :compress_output_to_zip_archive Specifies whether output will be created as one zip-archive.
4453
+ # @option opts [File] :file A file to be converted.
4454
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
4455
+ def put_pdf_in_request_to_svg_with_http_info(out_path, opts = {})
4456
+ if @api_client.config.debugging
4457
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_svg ..."
4458
+ end
4459
+ # verify the required parameter 'out_path' is set
4460
+ if @api_client.config.client_side_validation && out_path.nil?
4461
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_request_to_svg"
4462
+ end
4463
+ # resource path
4464
+ local_var_path = "/pdf/convert/svg"
4465
+
4466
+ # query parameters
4467
+ query_params = {}
4468
+ query_params[:'outPath'] = out_path
4469
+ query_params[:'compressOutputToZipArchive'] = opts[:'compress_output_to_zip_archive'] if !opts[:'compress_output_to_zip_archive'].nil?
4470
+
4471
+ # header parameters
4472
+ header_params = {}
4473
+ # HTTP header 'Accept' (if needed)
4474
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4475
+ # HTTP header 'Content-Type'
4476
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4477
+
4478
+ # form parameters
4479
+ form_params = {}
4480
+ form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
4481
+
4482
+ # http body (model)
4483
+ post_body = nil
4484
+ auth_names = []
4485
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4486
+ :header_params => header_params,
4487
+ :query_params => query_params,
4488
+ :form_params => form_params,
4489
+ :body => post_body,
4490
+ :auth_names => auth_names,
4491
+ :return_type => 'File')
4492
+ if @api_client.config.debugging
4493
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_svg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4494
+ end
4495
+ return data, status_code, headers
4496
+ end
4497
+
4498
+ # Converts PDF document (in request content) to TIFF format and uploads resulting file to storage.
4499
+ #
4500
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.tiff)
4501
+ # @param [Hash] opts the optional parameters
4502
+ # @option opts [Float] :brightness Image brightness.
4503
+ # @option opts [String] :compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
4504
+ # @option opts [String] :color_depth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
4505
+ # @option opts [Integer] :left_margin Left image margin.
4506
+ # @option opts [Integer] :right_margin Right image margin.
4507
+ # @option opts [Integer] :top_margin Top image margin.
4508
+ # @option opts [Integer] :bottom_margin Bottom image margin.
4509
+ # @option opts [String] :orientation Image orientation. Possible values are: None, Landscape, Portait.
4510
+ # @option opts [BOOLEAN] :skip_blank_pages Skip blank pages flag.
4511
+ # @option opts [Integer] :width Image width.
4512
+ # @option opts [Integer] :height Image height.
4513
+ # @option opts [Integer] :x_resolution Horizontal resolution.
4514
+ # @option opts [Integer] :y_resolution Vertical resolution.
4515
+ # @option opts [Integer] :page_index Start page to export.
4516
+ # @option opts [Integer] :page_count Number of pages to export.
4517
+ # @option opts [File] :file A file to be converted.
4518
+ # @return [File]
4519
+ def put_pdf_in_request_to_tiff(out_path, opts = {})
4520
+ data, _status_code, _headers = put_pdf_in_request_to_tiff_with_http_info(out_path, opts)
4521
+ return data
4522
+ end
4523
+
4524
+ # Converts PDF document (in request content) to TIFF format and uploads resulting file to storage.
4525
+ #
4526
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.tiff)
4527
+ # @param [Hash] opts the optional parameters
4528
+ # @option opts [Float] :brightness Image brightness.
4529
+ # @option opts [String] :compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
4530
+ # @option opts [String] :color_depth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
4531
+ # @option opts [Integer] :left_margin Left image margin.
4532
+ # @option opts [Integer] :right_margin Right image margin.
4533
+ # @option opts [Integer] :top_margin Top image margin.
4534
+ # @option opts [Integer] :bottom_margin Bottom image margin.
4535
+ # @option opts [String] :orientation Image orientation. Possible values are: None, Landscape, Portait.
4536
+ # @option opts [BOOLEAN] :skip_blank_pages Skip blank pages flag.
4537
+ # @option opts [Integer] :width Image width.
4538
+ # @option opts [Integer] :height Image height.
4539
+ # @option opts [Integer] :x_resolution Horizontal resolution.
4540
+ # @option opts [Integer] :y_resolution Vertical resolution.
4541
+ # @option opts [Integer] :page_index Start page to export.
4542
+ # @option opts [Integer] :page_count Number of pages to export.
4543
+ # @option opts [File] :file A file to be converted.
4544
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
4545
+ def put_pdf_in_request_to_tiff_with_http_info(out_path, opts = {})
4546
+ if @api_client.config.debugging
4547
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_tiff ..."
4548
+ end
4549
+ # verify the required parameter 'out_path' is set
4550
+ if @api_client.config.client_side_validation && out_path.nil?
4551
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_request_to_tiff"
4552
+ end
4553
+ # resource path
4554
+ local_var_path = "/pdf/convert/tiff"
4555
+
4556
+ # query parameters
4557
+ query_params = {}
4558
+ query_params[:'outPath'] = out_path
4559
+ query_params[:'brightness'] = opts[:'brightness'] if !opts[:'brightness'].nil?
4560
+ query_params[:'compression'] = opts[:'compression'] if !opts[:'compression'].nil?
4561
+ query_params[:'colorDepth'] = opts[:'color_depth'] if !opts[:'color_depth'].nil?
4562
+ query_params[:'leftMargin'] = opts[:'left_margin'] if !opts[:'left_margin'].nil?
4563
+ query_params[:'rightMargin'] = opts[:'right_margin'] if !opts[:'right_margin'].nil?
4564
+ query_params[:'topMargin'] = opts[:'top_margin'] if !opts[:'top_margin'].nil?
4565
+ query_params[:'bottomMargin'] = opts[:'bottom_margin'] if !opts[:'bottom_margin'].nil?
4566
+ query_params[:'orientation'] = opts[:'orientation'] if !opts[:'orientation'].nil?
4567
+ query_params[:'skipBlankPages'] = opts[:'skip_blank_pages'] if !opts[:'skip_blank_pages'].nil?
4568
+ query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
4569
+ query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
4570
+ query_params[:'xResolution'] = opts[:'x_resolution'] if !opts[:'x_resolution'].nil?
4571
+ query_params[:'yResolution'] = opts[:'y_resolution'] if !opts[:'y_resolution'].nil?
4572
+ query_params[:'pageIndex'] = opts[:'page_index'] if !opts[:'page_index'].nil?
4573
+ query_params[:'pageCount'] = opts[:'page_count'] if !opts[:'page_count'].nil?
4574
+
4575
+ # header parameters
4576
+ header_params = {}
4577
+ # HTTP header 'Accept' (if needed)
4578
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4579
+ # HTTP header 'Content-Type'
4580
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4581
+
4582
+ # form parameters
4583
+ form_params = {}
4584
+ form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
4585
+
4586
+ # http body (model)
4587
+ post_body = nil
4588
+ auth_names = []
4589
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4590
+ :header_params => header_params,
4591
+ :query_params => query_params,
4592
+ :form_params => form_params,
4593
+ :body => post_body,
4594
+ :auth_names => auth_names,
4595
+ :return_type => 'File')
4596
+ if @api_client.config.debugging
4597
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4598
+ end
4599
+ return data, status_code, headers
4600
+ end
4601
+
4602
+ # Converts PDF document (in request content) to XLS format and uploads resulting file to storage.
4603
+ #
4604
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.xls)
4605
+ # @param [Hash] opts the optional parameters
4606
+ # @option opts [BOOLEAN] :insert_blank_column_at_first Insert blank column at first
4607
+ # @option opts [BOOLEAN] :minimize_the_number_of_worksheets Minimize the number of worksheets
4608
+ # @option opts [Float] :scale_factor Scale factor
4609
+ # @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
4610
+ # @option opts [File] :file A file to be converted.
4611
+ # @return [File]
4612
+ def put_pdf_in_request_to_xls(out_path, opts = {})
4613
+ data, _status_code, _headers = put_pdf_in_request_to_xls_with_http_info(out_path, opts)
4614
+ return data
4615
+ end
4616
+
4617
+ # Converts PDF document (in request content) to XLS format and uploads resulting file to storage.
4618
+ #
4619
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.xls)
4620
+ # @param [Hash] opts the optional parameters
4621
+ # @option opts [BOOLEAN] :insert_blank_column_at_first Insert blank column at first
4622
+ # @option opts [BOOLEAN] :minimize_the_number_of_worksheets Minimize the number of worksheets
4623
+ # @option opts [Float] :scale_factor Scale factor
4624
+ # @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
4625
+ # @option opts [File] :file A file to be converted.
4626
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
4627
+ def put_pdf_in_request_to_xls_with_http_info(out_path, opts = {})
4628
+ if @api_client.config.debugging
4629
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_xls ..."
4630
+ end
4631
+ # verify the required parameter 'out_path' is set
4632
+ if @api_client.config.client_side_validation && out_path.nil?
4633
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_request_to_xls"
4634
+ end
4635
+ # resource path
4636
+ local_var_path = "/pdf/convert/xls"
4637
+
4638
+ # query parameters
4639
+ query_params = {}
4640
+ query_params[:'outPath'] = out_path
4641
+ query_params[:'insertBlankColumnAtFirst'] = opts[:'insert_blank_column_at_first'] if !opts[:'insert_blank_column_at_first'].nil?
4642
+ query_params[:'minimizeTheNumberOfWorksheets'] = opts[:'minimize_the_number_of_worksheets'] if !opts[:'minimize_the_number_of_worksheets'].nil?
4643
+ query_params[:'scaleFactor'] = opts[:'scale_factor'] if !opts[:'scale_factor'].nil?
4644
+ query_params[:'uniformWorksheets'] = opts[:'uniform_worksheets'] if !opts[:'uniform_worksheets'].nil?
4645
+
4646
+ # header parameters
4647
+ header_params = {}
4648
+ # HTTP header 'Accept' (if needed)
4649
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4650
+ # HTTP header 'Content-Type'
4651
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4652
+
4653
+ # form parameters
4654
+ form_params = {}
4655
+ form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
4656
+
4657
+ # http body (model)
4658
+ post_body = nil
4659
+ auth_names = []
4660
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4661
+ :header_params => header_params,
4662
+ :query_params => query_params,
4663
+ :form_params => form_params,
4664
+ :body => post_body,
4665
+ :auth_names => auth_names,
4666
+ :return_type => 'File')
4667
+ if @api_client.config.debugging
4668
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_xls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4669
+ end
4670
+ return data, status_code, headers
4671
+ end
4672
+
4673
+ # Converts PDF document (in request content) to XPS format and uploads resulting file to storage.
4674
+ #
4675
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.xps)
4676
+ # @param [Hash] opts the optional parameters
4677
+ # @option opts [File] :file A file to be converted.
4678
+ # @return [File]
4679
+ def put_pdf_in_request_to_xps(out_path, opts = {})
4680
+ data, _status_code, _headers = put_pdf_in_request_to_xps_with_http_info(out_path, opts)
4681
+ return data
4682
+ end
4683
+
4684
+ # Converts PDF document (in request content) to XPS format and uploads resulting file to storage.
4685
+ #
4686
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.xps)
4687
+ # @param [Hash] opts the optional parameters
4688
+ # @option opts [File] :file A file to be converted.
4689
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
4690
+ def put_pdf_in_request_to_xps_with_http_info(out_path, opts = {})
4691
+ if @api_client.config.debugging
4692
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_request_to_xps ..."
4693
+ end
4694
+ # verify the required parameter 'out_path' is set
4695
+ if @api_client.config.client_side_validation && out_path.nil?
4696
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_request_to_xps"
4697
+ end
4698
+ # resource path
4699
+ local_var_path = "/pdf/convert/xps"
4700
+
4701
+ # query parameters
4702
+ query_params = {}
4703
+ query_params[:'outPath'] = out_path
4704
+
4705
+ # header parameters
4706
+ header_params = {}
4707
+ # HTTP header 'Accept' (if needed)
4708
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4709
+ # HTTP header 'Content-Type'
4710
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4711
+
4712
+ # form parameters
4713
+ form_params = {}
4714
+ form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
4715
+
4716
+ # http body (model)
4717
+ post_body = nil
3360
4718
  auth_names = []
3361
4719
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3362
4720
  :header_params => header_params,
@@ -3364,51 +4722,82 @@ module AsposePdfCloud
3364
4722
  :form_params => form_params,
3365
4723
  :body => post_body,
3366
4724
  :auth_names => auth_names,
3367
- :return_type => 'SaaSposeResponse')
4725
+ :return_type => 'File')
3368
4726
  if @api_client.config.debugging
3369
- @api_client.config.logger.debug "API called: PdfApi#put_add_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4727
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_request_to_xps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3370
4728
  end
3371
4729
  return data, status_code, headers
3372
4730
  end
3373
4731
 
3374
- # Convert document from request content to format specified.
4732
+ # Converts PDF document (located on storage) to DOC format and uploads resulting file to storage
3375
4733
  #
4734
+ # @param name The document name.
4735
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
3376
4736
  # @param [Hash] opts the optional parameters
3377
- # @option opts [String] :format The format to convert.
3378
- # @option opts [String] :url
3379
- # @option opts [String] :out_path Path to save result
4737
+ # @option opts [BOOLEAN] :add_return_to_line_end Add return to line end.
4738
+ # @option opts [String] :format Allows to specify .doc or .docx file format.
4739
+ # @option opts [Integer] :image_resolution_x Image resolution X.
4740
+ # @option opts [Integer] :image_resolution_y Image resolution Y.
4741
+ # @option opts [Integer] :max_distance_between_text_lines Max distance between text lines.
4742
+ # @option opts [String] :mode Allows to control how a PDF document is converted into a word processing document.
4743
+ # @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
4744
+ # @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
4745
+ # @option opts [String] :folder The document folder.
3380
4746
  # @return [File]
3381
- def put_convert_document(opts = {})
3382
- data, _status_code, _headers = put_convert_document_with_http_info(opts)
4747
+ def put_pdf_in_storage_to_doc(name, out_path, opts = {})
4748
+ data, _status_code, _headers = put_pdf_in_storage_to_doc_with_http_info(name, out_path, opts)
3383
4749
  return data
3384
4750
  end
3385
4751
 
3386
- # Convert document from request content to format specified.
4752
+ # Converts PDF document (located on storage) to DOC format and uploads resulting file to storage
3387
4753
  #
4754
+ # @param name The document name.
4755
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.doc)
3388
4756
  # @param [Hash] opts the optional parameters
3389
- # @option opts [String] :format The format to convert.
3390
- # @option opts [String] :url
3391
- # @option opts [String] :out_path Path to save result
4757
+ # @option opts [BOOLEAN] :add_return_to_line_end Add return to line end.
4758
+ # @option opts [String] :format Allows to specify .doc or .docx file format.
4759
+ # @option opts [Integer] :image_resolution_x Image resolution X.
4760
+ # @option opts [Integer] :image_resolution_y Image resolution Y.
4761
+ # @option opts [Integer] :max_distance_between_text_lines Max distance between text lines.
4762
+ # @option opts [String] :mode Allows to control how a PDF document is converted into a word processing document.
4763
+ # @option opts [BOOLEAN] :recognize_bullets Recognize bullets.
4764
+ # @option opts [Float] :relative_horizontal_proximity Relative horizontal proximity.
4765
+ # @option opts [String] :folder The document folder.
3392
4766
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
3393
- def put_convert_document_with_http_info(opts = {})
4767
+ def put_pdf_in_storage_to_doc_with_http_info(name, out_path, opts = {})
3394
4768
  if @api_client.config.debugging
3395
- @api_client.config.logger.debug "Calling API: PdfApi.put_convert_document ..."
4769
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_doc ..."
4770
+ end
4771
+ # verify the required parameter 'name' is set
4772
+ if @api_client.config.client_side_validation && name.nil?
4773
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_doc"
4774
+ end
4775
+ # verify the required parameter 'out_path' is set
4776
+ if @api_client.config.client_side_validation && out_path.nil?
4777
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_doc"
3396
4778
  end
3397
4779
  # resource path
3398
- local_var_path = "/pdf/convert"
4780
+ local_var_path = "/pdf/{name}/convert/doc".sub('{' + 'name' + '}', name.to_s)
3399
4781
 
3400
4782
  # query parameters
3401
4783
  query_params = {}
4784
+ query_params[:'outPath'] = out_path
4785
+ query_params[:'addReturnToLineEnd'] = opts[:'add_return_to_line_end'] if !opts[:'add_return_to_line_end'].nil?
3402
4786
  query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
3403
- query_params[:'url'] = opts[:'url'] if !opts[:'url'].nil?
3404
- query_params[:'outPath'] = opts[:'out_path'] if !opts[:'out_path'].nil?
4787
+ query_params[:'imageResolutionX'] = opts[:'image_resolution_x'] if !opts[:'image_resolution_x'].nil?
4788
+ query_params[:'imageResolutionY'] = opts[:'image_resolution_y'] if !opts[:'image_resolution_y'].nil?
4789
+ query_params[:'maxDistanceBetweenTextLines'] = opts[:'max_distance_between_text_lines'] if !opts[:'max_distance_between_text_lines'].nil?
4790
+ query_params[:'mode'] = opts[:'mode'] if !opts[:'mode'].nil?
4791
+ query_params[:'recognizeBullets'] = opts[:'recognize_bullets'] if !opts[:'recognize_bullets'].nil?
4792
+ query_params[:'relativeHorizontalProximity'] = opts[:'relative_horizontal_proximity'] if !opts[:'relative_horizontal_proximity'].nil?
4793
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3405
4794
 
3406
4795
  # header parameters
3407
4796
  header_params = {}
3408
4797
  # HTTP header 'Accept' (if needed)
3409
- header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
4798
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3410
4799
  # HTTP header 'Content-Type'
3411
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4800
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3412
4801
 
3413
4802
  # form parameters
3414
4803
  form_params = {}
@@ -3424,60 +4813,56 @@ module AsposePdfCloud
3424
4813
  :auth_names => auth_names,
3425
4814
  :return_type => 'File')
3426
4815
  if @api_client.config.debugging
3427
- @api_client.config.logger.debug "API called: PdfApi#put_convert_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4816
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_doc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3428
4817
  end
3429
4818
  return data, status_code, headers
3430
4819
  end
3431
4820
 
3432
- # Create new document.
4821
+ # Converts PDF document (located on storage) to PdfA format and uploads resulting file to storage
3433
4822
  #
3434
- # @param name The new document name.
4823
+ # @param name The document name.
4824
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
4825
+ # @param type Type of PdfA format.
3435
4826
  # @param [Hash] opts the optional parameters
3436
- # @option opts [String] :template_file The template file server path if defined.
3437
- # @option opts [String] :data_file The data file path (for xml template only).
3438
- # @option opts [String] :template_type The template type, can be xml, html, bmp, jpg, png, tiff, emf, cgm, tex.
3439
- # @option opts [String] :storage The document storage.
3440
- # @option opts [String] :folder The new document folder.
3441
- # @option opts [String] :url The url of web page if defined.
3442
- # @option opts [BOOLEAN] :fit_size Draw a margin around content in resulting pdf. (default to false)
3443
- # @return [DocumentResponse]
3444
- def put_create_document(name, opts = {})
3445
- data, _status_code, _headers = put_create_document_with_http_info(name, opts)
4827
+ # @option opts [String] :folder The document folder.
4828
+ # @return [File]
4829
+ def put_pdf_in_storage_to_pdf_a(name, out_path, type, opts = {})
4830
+ data, _status_code, _headers = put_pdf_in_storage_to_pdf_a_with_http_info(name, out_path, type, opts)
3446
4831
  return data
3447
4832
  end
3448
4833
 
3449
- # Create new document.
4834
+ # Converts PDF document (located on storage) to PdfA format and uploads resulting file to storage
3450
4835
  #
3451
- # @param name The new document name.
4836
+ # @param name The document name.
4837
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.pdf)
4838
+ # @param type Type of PdfA format.
3452
4839
  # @param [Hash] opts the optional parameters
3453
- # @option opts [String] :template_file The template file server path if defined.
3454
- # @option opts [String] :data_file The data file path (for xml template only).
3455
- # @option opts [String] :template_type The template type, can be xml, html, bmp, jpg, png, tiff, emf, cgm, tex.
3456
- # @option opts [String] :storage The document storage.
3457
- # @option opts [String] :folder The new document folder.
3458
- # @option opts [String] :url The url of web page if defined.
3459
- # @option opts [BOOLEAN] :fit_size Draw a margin around content in resulting pdf.
3460
- # @return [Array<(DocumentResponse, Fixnum, Hash)>] DocumentResponse data, response status code and response headers
3461
- def put_create_document_with_http_info(name, opts = {})
4840
+ # @option opts [String] :folder The document folder.
4841
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
4842
+ def put_pdf_in_storage_to_pdf_a_with_http_info(name, out_path, type, opts = {})
3462
4843
  if @api_client.config.debugging
3463
- @api_client.config.logger.debug "Calling API: PdfApi.put_create_document ..."
4844
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_pdf_a ..."
3464
4845
  end
3465
4846
  # verify the required parameter 'name' is set
3466
4847
  if @api_client.config.client_side_validation && name.nil?
3467
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_create_document"
4848
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_pdf_a"
4849
+ end
4850
+ # verify the required parameter 'out_path' is set
4851
+ if @api_client.config.client_side_validation && out_path.nil?
4852
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_pdf_a"
4853
+ end
4854
+ # verify the required parameter 'type' is set
4855
+ if @api_client.config.client_side_validation && type.nil?
4856
+ fail ArgumentError, "Missing the required parameter 'type' when calling PdfApi.put_pdf_in_storage_to_pdf_a"
3468
4857
  end
3469
4858
  # resource path
3470
- local_var_path = "/pdf/{name}".sub('{' + 'name' + '}', name.to_s)
4859
+ local_var_path = "/pdf/{name}/convert/pdfa".sub('{' + 'name' + '}', name.to_s)
3471
4860
 
3472
4861
  # query parameters
3473
4862
  query_params = {}
3474
- query_params[:'templateFile'] = opts[:'template_file'] if !opts[:'template_file'].nil?
3475
- query_params[:'dataFile'] = opts[:'data_file'] if !opts[:'data_file'].nil?
3476
- query_params[:'templateType'] = opts[:'template_type'] if !opts[:'template_type'].nil?
3477
- query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
4863
+ query_params[:'outPath'] = out_path
4864
+ query_params[:'type'] = type
3478
4865
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3479
- query_params[:'url'] = opts[:'url'] if !opts[:'url'].nil?
3480
- query_params[:'fitSize'] = opts[:'fit_size'] if !opts[:'fit_size'].nil?
3481
4866
 
3482
4867
  # header parameters
3483
4868
  header_params = {}
@@ -3498,54 +4883,53 @@ module AsposePdfCloud
3498
4883
  :form_params => form_params,
3499
4884
  :body => post_body,
3500
4885
  :auth_names => auth_names,
3501
- :return_type => 'DocumentResponse')
4886
+ :return_type => 'File')
3502
4887
  if @api_client.config.debugging
3503
- @api_client.config.logger.debug "API called: PdfApi#put_create_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4888
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_pdf_a\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3504
4889
  end
3505
4890
  return data, status_code, headers
3506
4891
  end
3507
4892
 
3508
- # Create new document from images.
4893
+ # Converts PDF document (located on storage) to SVG format and uploads resulting file to storage
3509
4894
  #
3510
- # @param name The new document name.
4895
+ # @param name The document name.
4896
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.svg)
3511
4897
  # @param [Hash] opts the optional parameters
3512
- # @option opts [ImagesListRequest] :images The images file paths set.
3513
- # @option opts [BOOLEAN] :ocr To create OCR layer for image or not. (default to false)
3514
- # @option opts [String] :ocr_lang The language which is defined for OCR engine. Default is eng. (default to eng)
3515
- # @option opts [String] :storage The document storage.
3516
- # @option opts [String] :folder The new document folder.
3517
- # @return [DocumentResponse]
3518
- def put_create_document_from_images(name, opts = {})
3519
- data, _status_code, _headers = put_create_document_from_images_with_http_info(name, opts)
4898
+ # @option opts [BOOLEAN] :compress_output_to_zip_archive Specifies whether output will be created as one zip-archive.
4899
+ # @option opts [String] :folder The document folder.
4900
+ # @return [File]
4901
+ def put_pdf_in_storage_to_svg(name, out_path, opts = {})
4902
+ data, _status_code, _headers = put_pdf_in_storage_to_svg_with_http_info(name, out_path, opts)
3520
4903
  return data
3521
4904
  end
3522
4905
 
3523
- # Create new document from images.
4906
+ # Converts PDF document (located on storage) to SVG format and uploads resulting file to storage
3524
4907
  #
3525
- # @param name The new document name.
4908
+ # @param name The document name.
4909
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.svg)
3526
4910
  # @param [Hash] opts the optional parameters
3527
- # @option opts [ImagesListRequest] :images The images file paths set.
3528
- # @option opts [BOOLEAN] :ocr To create OCR layer for image or not.
3529
- # @option opts [String] :ocr_lang The language which is defined for OCR engine. Default is eng.
3530
- # @option opts [String] :storage The document storage.
3531
- # @option opts [String] :folder The new document folder.
3532
- # @return [Array<(DocumentResponse, Fixnum, Hash)>] DocumentResponse data, response status code and response headers
3533
- def put_create_document_from_images_with_http_info(name, opts = {})
4911
+ # @option opts [BOOLEAN] :compress_output_to_zip_archive Specifies whether output will be created as one zip-archive.
4912
+ # @option opts [String] :folder The document folder.
4913
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
4914
+ def put_pdf_in_storage_to_svg_with_http_info(name, out_path, opts = {})
3534
4915
  if @api_client.config.debugging
3535
- @api_client.config.logger.debug "Calling API: PdfApi.put_create_document_from_images ..."
4916
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_svg ..."
3536
4917
  end
3537
4918
  # verify the required parameter 'name' is set
3538
4919
  if @api_client.config.client_side_validation && name.nil?
3539
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_create_document_from_images"
4920
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_svg"
4921
+ end
4922
+ # verify the required parameter 'out_path' is set
4923
+ if @api_client.config.client_side_validation && out_path.nil?
4924
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_svg"
3540
4925
  end
3541
4926
  # resource path
3542
- local_var_path = "/pdf/{name}/fromimages".sub('{' + 'name' + '}', name.to_s)
4927
+ local_var_path = "/pdf/{name}/convert/svg".sub('{' + 'name' + '}', name.to_s)
3543
4928
 
3544
4929
  # query parameters
3545
4930
  query_params = {}
3546
- query_params[:'ocr'] = opts[:'ocr'] if !opts[:'ocr'].nil?
3547
- query_params[:'ocrLang'] = opts[:'ocr_lang'] if !opts[:'ocr_lang'].nil?
3548
- query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
4931
+ query_params[:'outPath'] = out_path
4932
+ query_params[:'compressOutputToZipArchive'] = opts[:'compress_output_to_zip_archive'] if !opts[:'compress_output_to_zip_archive'].nil?
3549
4933
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3550
4934
 
3551
4935
  # header parameters
@@ -3559,7 +4943,7 @@ module AsposePdfCloud
3559
4943
  form_params = {}
3560
4944
 
3561
4945
  # http body (model)
3562
- post_body = @api_client.object_to_http_body(opts[:'images'])
4946
+ post_body = nil
3563
4947
  auth_names = []
3564
4948
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3565
4949
  :header_params => header_params,
@@ -3567,20 +4951,19 @@ module AsposePdfCloud
3567
4951
  :form_params => form_params,
3568
4952
  :body => post_body,
3569
4953
  :auth_names => auth_names,
3570
- :return_type => 'DocumentResponse')
4954
+ :return_type => 'File')
3571
4955
  if @api_client.config.debugging
3572
- @api_client.config.logger.debug "API called: PdfApi#put_create_document_from_images\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4956
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_svg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3573
4957
  end
3574
4958
  return data, status_code, headers
3575
4959
  end
3576
4960
 
3577
- # Save document as Tiff image.
4961
+ # Converts PDF document (located on storage) to TIFF format and uploads resulting file to storage
3578
4962
  #
3579
4963
  # @param name The document name.
4964
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.tiff)
3580
4965
  # @param [Hash] opts the optional parameters
3581
- # @option opts [TiffExportOptions] :export_options with tiff export options.
3582
- # @option opts [String] :result_file The resulting file.
3583
- # @option opts [Float] :brightness The image brightness.
4966
+ # @option opts [Float] :brightness Image brightness.
3584
4967
  # @option opts [String] :compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
3585
4968
  # @option opts [String] :color_depth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
3586
4969
  # @option opts [Integer] :left_margin Left image margin.
@@ -3595,21 +4978,19 @@ module AsposePdfCloud
3595
4978
  # @option opts [Integer] :y_resolution Vertical resolution.
3596
4979
  # @option opts [Integer] :page_index Start page to export.
3597
4980
  # @option opts [Integer] :page_count Number of pages to export.
3598
- # @option opts [String] :storage The document storage.
3599
4981
  # @option opts [String] :folder The document folder.
3600
- # @return [SaaSposeResponse]
3601
- def put_document_save_as_tiff(name, opts = {})
3602
- data, _status_code, _headers = put_document_save_as_tiff_with_http_info(name, opts)
4982
+ # @return [File]
4983
+ def put_pdf_in_storage_to_tiff(name, out_path, opts = {})
4984
+ data, _status_code, _headers = put_pdf_in_storage_to_tiff_with_http_info(name, out_path, opts)
3603
4985
  return data
3604
4986
  end
3605
4987
 
3606
- # Save document as Tiff image.
4988
+ # Converts PDF document (located on storage) to TIFF format and uploads resulting file to storage
3607
4989
  #
3608
4990
  # @param name The document name.
4991
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.tiff)
3609
4992
  # @param [Hash] opts the optional parameters
3610
- # @option opts [TiffExportOptions] :export_options with tiff export options.
3611
- # @option opts [String] :result_file The resulting file.
3612
- # @option opts [Float] :brightness The image brightness.
4993
+ # @option opts [Float] :brightness Image brightness.
3613
4994
  # @option opts [String] :compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
3614
4995
  # @option opts [String] :color_depth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
3615
4996
  # @option opts [Integer] :left_margin Left image margin.
@@ -3624,23 +5005,26 @@ module AsposePdfCloud
3624
5005
  # @option opts [Integer] :y_resolution Vertical resolution.
3625
5006
  # @option opts [Integer] :page_index Start page to export.
3626
5007
  # @option opts [Integer] :page_count Number of pages to export.
3627
- # @option opts [String] :storage The document storage.
3628
5008
  # @option opts [String] :folder The document folder.
3629
- # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
3630
- def put_document_save_as_tiff_with_http_info(name, opts = {})
5009
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
5010
+ def put_pdf_in_storage_to_tiff_with_http_info(name, out_path, opts = {})
3631
5011
  if @api_client.config.debugging
3632
- @api_client.config.logger.debug "Calling API: PdfApi.put_document_save_as_tiff ..."
5012
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_tiff ..."
3633
5013
  end
3634
5014
  # verify the required parameter 'name' is set
3635
5015
  if @api_client.config.client_side_validation && name.nil?
3636
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_document_save_as_tiff"
5016
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_tiff"
5017
+ end
5018
+ # verify the required parameter 'out_path' is set
5019
+ if @api_client.config.client_side_validation && out_path.nil?
5020
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_tiff"
3637
5021
  end
3638
5022
  # resource path
3639
- local_var_path = "/pdf/{name}/SaveAs/tiff".sub('{' + 'name' + '}', name.to_s)
5023
+ local_var_path = "/pdf/{name}/convert/tiff".sub('{' + 'name' + '}', name.to_s)
3640
5024
 
3641
5025
  # query parameters
3642
5026
  query_params = {}
3643
- query_params[:'resultFile'] = opts[:'result_file'] if !opts[:'result_file'].nil?
5027
+ query_params[:'outPath'] = out_path
3644
5028
  query_params[:'brightness'] = opts[:'brightness'] if !opts[:'brightness'].nil?
3645
5029
  query_params[:'compression'] = opts[:'compression'] if !opts[:'compression'].nil?
3646
5030
  query_params[:'colorDepth'] = opts[:'color_depth'] if !opts[:'color_depth'].nil?
@@ -3656,7 +5040,6 @@ module AsposePdfCloud
3656
5040
  query_params[:'yResolution'] = opts[:'y_resolution'] if !opts[:'y_resolution'].nil?
3657
5041
  query_params[:'pageIndex'] = opts[:'page_index'] if !opts[:'page_index'].nil?
3658
5042
  query_params[:'pageCount'] = opts[:'page_count'] if !opts[:'page_count'].nil?
3659
- query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3660
5043
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3661
5044
 
3662
5045
  # header parameters
@@ -3670,7 +5053,7 @@ module AsposePdfCloud
3670
5053
  form_params = {}
3671
5054
 
3672
5055
  # http body (model)
3673
- post_body = @api_client.object_to_http_body(opts[:'export_options'])
5056
+ post_body = nil
3674
5057
  auth_names = []
3675
5058
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3676
5059
  :header_params => header_params,
@@ -3678,48 +5061,62 @@ module AsposePdfCloud
3678
5061
  :form_params => form_params,
3679
5062
  :body => post_body,
3680
5063
  :auth_names => auth_names,
3681
- :return_type => 'SaaSposeResponse')
5064
+ :return_type => 'File')
3682
5065
  if @api_client.config.debugging
3683
- @api_client.config.logger.debug "API called: PdfApi#put_document_save_as_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5066
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3684
5067
  end
3685
5068
  return data, status_code, headers
3686
5069
  end
3687
5070
 
3688
- # Merge a list of documents.
5071
+ # Converts PDF document (located on storage) to XLS format and uploads resulting file to storage
3689
5072
  #
3690
- # @param name Resulting documen name.
5073
+ # @param name The document name.
5074
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.xls)
3691
5075
  # @param [Hash] opts the optional parameters
3692
- # @option opts [MergeDocuments] :merge_documents with a list of documents.
3693
- # @option opts [String] :storage Resulting document storage.
3694
- # @option opts [String] :folder Resulting document folder.
3695
- # @return [DocumentResponse]
3696
- def put_merge_documents(name, opts = {})
3697
- data, _status_code, _headers = put_merge_documents_with_http_info(name, opts)
5076
+ # @option opts [BOOLEAN] :insert_blank_column_at_first Insert blank column at first
5077
+ # @option opts [BOOLEAN] :minimize_the_number_of_worksheets Minimize the number of worksheets
5078
+ # @option opts [Float] :scale_factor Scale factor
5079
+ # @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
5080
+ # @option opts [String] :folder The document folder.
5081
+ # @return [File]
5082
+ def put_pdf_in_storage_to_xls(name, out_path, opts = {})
5083
+ data, _status_code, _headers = put_pdf_in_storage_to_xls_with_http_info(name, out_path, opts)
3698
5084
  return data
3699
5085
  end
3700
5086
 
3701
- # Merge a list of documents.
5087
+ # Converts PDF document (located on storage) to XLS format and uploads resulting file to storage
3702
5088
  #
3703
- # @param name Resulting documen name.
5089
+ # @param name The document name.
5090
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.xls)
3704
5091
  # @param [Hash] opts the optional parameters
3705
- # @option opts [MergeDocuments] :merge_documents with a list of documents.
3706
- # @option opts [String] :storage Resulting document storage.
3707
- # @option opts [String] :folder Resulting document folder.
3708
- # @return [Array<(DocumentResponse, Fixnum, Hash)>] DocumentResponse data, response status code and response headers
3709
- def put_merge_documents_with_http_info(name, opts = {})
5092
+ # @option opts [BOOLEAN] :insert_blank_column_at_first Insert blank column at first
5093
+ # @option opts [BOOLEAN] :minimize_the_number_of_worksheets Minimize the number of worksheets
5094
+ # @option opts [Float] :scale_factor Scale factor
5095
+ # @option opts [BOOLEAN] :uniform_worksheets Uniform worksheets
5096
+ # @option opts [String] :folder The document folder.
5097
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
5098
+ def put_pdf_in_storage_to_xls_with_http_info(name, out_path, opts = {})
3710
5099
  if @api_client.config.debugging
3711
- @api_client.config.logger.debug "Calling API: PdfApi.put_merge_documents ..."
5100
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_xls ..."
3712
5101
  end
3713
5102
  # verify the required parameter 'name' is set
3714
5103
  if @api_client.config.client_side_validation && name.nil?
3715
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_merge_documents"
5104
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_xls"
5105
+ end
5106
+ # verify the required parameter 'out_path' is set
5107
+ if @api_client.config.client_side_validation && out_path.nil?
5108
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_xls"
3716
5109
  end
3717
5110
  # resource path
3718
- local_var_path = "/pdf/{name}/merge".sub('{' + 'name' + '}', name.to_s)
5111
+ local_var_path = "/pdf/{name}/convert/xls".sub('{' + 'name' + '}', name.to_s)
3719
5112
 
3720
5113
  # query parameters
3721
5114
  query_params = {}
3722
- query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
5115
+ query_params[:'outPath'] = out_path
5116
+ query_params[:'insertBlankColumnAtFirst'] = opts[:'insert_blank_column_at_first'] if !opts[:'insert_blank_column_at_first'].nil?
5117
+ query_params[:'minimizeTheNumberOfWorksheets'] = opts[:'minimize_the_number_of_worksheets'] if !opts[:'minimize_the_number_of_worksheets'].nil?
5118
+ query_params[:'scaleFactor'] = opts[:'scale_factor'] if !opts[:'scale_factor'].nil?
5119
+ query_params[:'uniformWorksheets'] = opts[:'uniform_worksheets'] if !opts[:'uniform_worksheets'].nil?
3723
5120
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3724
5121
 
3725
5122
  # header parameters
@@ -3733,7 +5130,7 @@ module AsposePdfCloud
3733
5130
  form_params = {}
3734
5131
 
3735
5132
  # http body (model)
3736
- post_body = @api_client.object_to_http_body(opts[:'merge_documents'])
5133
+ post_body = nil
3737
5134
  auth_names = []
3738
5135
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3739
5136
  :header_params => header_params,
@@ -3741,58 +5138,50 @@ module AsposePdfCloud
3741
5138
  :form_params => form_params,
3742
5139
  :body => post_body,
3743
5140
  :auth_names => auth_names,
3744
- :return_type => 'DocumentResponse')
5141
+ :return_type => 'File')
3745
5142
  if @api_client.config.debugging
3746
- @api_client.config.logger.debug "API called: PdfApi#put_merge_documents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5143
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_xls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3747
5144
  end
3748
5145
  return data, status_code, headers
3749
5146
  end
3750
5147
 
3751
- # Add page stamp.
5148
+ # Converts PDF document (located on storage) to XPS format and uploads resulting file to storage
3752
5149
  #
3753
5150
  # @param name The document name.
3754
- # @param page_number The page number.
3755
- # @param stamp with data.
5151
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.xps)
3756
5152
  # @param [Hash] opts the optional parameters
3757
- # @option opts [String] :storage The document storage.
3758
5153
  # @option opts [String] :folder The document folder.
3759
- # @return [SaaSposeResponse]
3760
- def put_page_add_stamp(name, page_number, stamp, opts = {})
3761
- data, _status_code, _headers = put_page_add_stamp_with_http_info(name, page_number, stamp, opts)
5154
+ # @return [File]
5155
+ def put_pdf_in_storage_to_xps(name, out_path, opts = {})
5156
+ data, _status_code, _headers = put_pdf_in_storage_to_xps_with_http_info(name, out_path, opts)
3762
5157
  return data
3763
5158
  end
3764
5159
 
3765
- # Add page stamp.
5160
+ # Converts PDF document (located on storage) to XPS format and uploads resulting file to storage
3766
5161
  #
3767
5162
  # @param name The document name.
3768
- # @param page_number The page number.
3769
- # @param stamp with data.
5163
+ # @param out_path Full resulting filename (ex. /folder1/folder2/result.xps)
3770
5164
  # @param [Hash] opts the optional parameters
3771
- # @option opts [String] :storage The document storage.
3772
5165
  # @option opts [String] :folder The document folder.
3773
- # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
3774
- def put_page_add_stamp_with_http_info(name, page_number, stamp, opts = {})
5166
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
5167
+ def put_pdf_in_storage_to_xps_with_http_info(name, out_path, opts = {})
3775
5168
  if @api_client.config.debugging
3776
- @api_client.config.logger.debug "Calling API: PdfApi.put_page_add_stamp ..."
5169
+ @api_client.config.logger.debug "Calling API: PdfApi.put_pdf_in_storage_to_xps ..."
3777
5170
  end
3778
5171
  # verify the required parameter 'name' is set
3779
5172
  if @api_client.config.client_side_validation && name.nil?
3780
- fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_page_add_stamp"
3781
- end
3782
- # verify the required parameter 'page_number' is set
3783
- if @api_client.config.client_side_validation && page_number.nil?
3784
- fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.put_page_add_stamp"
5173
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_pdf_in_storage_to_xps"
3785
5174
  end
3786
- # verify the required parameter 'stamp' is set
3787
- if @api_client.config.client_side_validation && stamp.nil?
3788
- fail ArgumentError, "Missing the required parameter 'stamp' when calling PdfApi.put_page_add_stamp"
5175
+ # verify the required parameter 'out_path' is set
5176
+ if @api_client.config.client_side_validation && out_path.nil?
5177
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling PdfApi.put_pdf_in_storage_to_xps"
3789
5178
  end
3790
5179
  # resource path
3791
- local_var_path = "/pdf/{name}/pages/{pageNumber}/stamp".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
5180
+ local_var_path = "/pdf/{name}/convert/xps".sub('{' + 'name' + '}', name.to_s)
3792
5181
 
3793
5182
  # query parameters
3794
5183
  query_params = {}
3795
- query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
5184
+ query_params[:'outPath'] = out_path
3796
5185
  query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3797
5186
 
3798
5187
  # header parameters
@@ -3806,7 +5195,7 @@ module AsposePdfCloud
3806
5195
  form_params = {}
3807
5196
 
3808
5197
  # http body (model)
3809
- post_body = @api_client.object_to_http_body(stamp)
5198
+ post_body = nil
3810
5199
  auth_names = []
3811
5200
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3812
5201
  :header_params => header_params,
@@ -3814,9 +5203,9 @@ module AsposePdfCloud
3814
5203
  :form_params => form_params,
3815
5204
  :body => post_body,
3816
5205
  :auth_names => auth_names,
3817
- :return_type => 'SaaSposeResponse')
5206
+ :return_type => 'File')
3818
5207
  if @api_client.config.debugging
3819
- @api_client.config.logger.debug "API called: PdfApi#put_page_add_stamp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5208
+ @api_client.config.logger.debug "API called: PdfApi#put_pdf_in_storage_to_xps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3820
5209
  end
3821
5210
  return data, status_code, headers
3822
5211
  end
@@ -3957,7 +5346,7 @@ module AsposePdfCloud
3957
5346
  # Update field.
3958
5347
  #
3959
5348
  # @param name The document name.
3960
- # @param field_name The field name/
5349
+ # @param field_name The name of a field to be updated.
3961
5350
  # @param [Hash] opts the optional parameters
3962
5351
  # @option opts [Field] :field with the field data.
3963
5352
  # @option opts [String] :storage The document storage.
@@ -3971,7 +5360,7 @@ module AsposePdfCloud
3971
5360
  # Update field.
3972
5361
  #
3973
5362
  # @param name The document name.
3974
- # @param field_name The field name/
5363
+ # @param field_name The name of a field to be updated.
3975
5364
  # @param [Hash] opts the optional parameters
3976
5365
  # @option opts [Field] :field with the field data.
3977
5366
  # @option opts [String] :storage The document storage.
@@ -4022,5 +5411,68 @@ module AsposePdfCloud
4022
5411
  end
4023
5412
  return data, status_code, headers
4024
5413
  end
5414
+
5415
+ # Update fields.
5416
+ #
5417
+ # @param name The document name.
5418
+ # @param [Hash] opts the optional parameters
5419
+ # @option opts [Fields] :fields with the fields data.
5420
+ # @option opts [String] :storage The document storage.
5421
+ # @option opts [String] :folder The document folder.
5422
+ # @return [FieldsResponse]
5423
+ def put_update_fields(name, opts = {})
5424
+ data, _status_code, _headers = put_update_fields_with_http_info(name, opts)
5425
+ return data
5426
+ end
5427
+
5428
+ # Update fields.
5429
+ #
5430
+ # @param name The document name.
5431
+ # @param [Hash] opts the optional parameters
5432
+ # @option opts [Fields] :fields with the fields data.
5433
+ # @option opts [String] :storage The document storage.
5434
+ # @option opts [String] :folder The document folder.
5435
+ # @return [Array<(FieldsResponse, Fixnum, Hash)>] FieldsResponse data, response status code and response headers
5436
+ def put_update_fields_with_http_info(name, opts = {})
5437
+ if @api_client.config.debugging
5438
+ @api_client.config.logger.debug "Calling API: PdfApi.put_update_fields ..."
5439
+ end
5440
+ # verify the required parameter 'name' is set
5441
+ if @api_client.config.client_side_validation && name.nil?
5442
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_update_fields"
5443
+ end
5444
+ # resource path
5445
+ local_var_path = "/pdf/{name}/fields".sub('{' + 'name' + '}', name.to_s)
5446
+
5447
+ # query parameters
5448
+ query_params = {}
5449
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
5450
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
5451
+
5452
+ # header parameters
5453
+ header_params = {}
5454
+ # HTTP header 'Accept' (if needed)
5455
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5456
+ # HTTP header 'Content-Type'
5457
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
5458
+
5459
+ # form parameters
5460
+ form_params = {}
5461
+
5462
+ # http body (model)
5463
+ post_body = @api_client.object_to_http_body(opts[:'fields'])
5464
+ auth_names = []
5465
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
5466
+ :header_params => header_params,
5467
+ :query_params => query_params,
5468
+ :form_params => form_params,
5469
+ :body => post_body,
5470
+ :auth_names => auth_names,
5471
+ :return_type => 'FieldsResponse')
5472
+ if @api_client.config.debugging
5473
+ @api_client.config.logger.debug "API called: PdfApi#put_update_fields\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5474
+ end
5475
+ return data, status_code, headers
5476
+ end
4025
5477
  end
4026
5478
  end