aspose_pdf_cloud 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +22 -0
- data/README.md +41 -0
- data/aspose_pdf_cloud.gemspec +26 -0
- data/lib/aspose_pdf_cloud.rb +91 -0
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +3318 -0
- data/lib/aspose_pdf_cloud/api_client.rb +335 -0
- data/lib/aspose_pdf_cloud/api_error.rb +24 -0
- data/lib/aspose_pdf_cloud/configuration.rb +166 -0
- data/lib/aspose_pdf_cloud/models/annotation.rb +87 -0
- data/lib/aspose_pdf_cloud/models/annotation_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/annotations.rb +49 -0
- data/lib/aspose_pdf_cloud/models/annotations_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/append_document.rb +53 -0
- data/lib/aspose_pdf_cloud/models/attachment.rb +95 -0
- data/lib/aspose_pdf_cloud/models/attachment_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/attachments.rb +49 -0
- data/lib/aspose_pdf_cloud/models/attachments_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/barcode_response_list.rb +45 -0
- data/lib/aspose_pdf_cloud/models/base_object.rb +86 -0
- data/lib/aspose_pdf_cloud/models/base_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/bookmarks.rb +49 -0
- data/lib/aspose_pdf_cloud/models/bookmarks_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/color.rb +61 -0
- data/lib/aspose_pdf_cloud/models/document.rb +55 -0
- data/lib/aspose_pdf_cloud/models/document_pages_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/document_properties.rb +49 -0
- data/lib/aspose_pdf_cloud/models/document_properties_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/document_property.rb +63 -0
- data/lib/aspose_pdf_cloud/models/document_property_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/document_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/document_text_replace_response.rb +69 -0
- data/lib/aspose_pdf_cloud/models/field.rb +83 -0
- data/lib/aspose_pdf_cloud/models/field_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/fields.rb +49 -0
- data/lib/aspose_pdf_cloud/models/fields_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/image.rb +55 -0
- data/lib/aspose_pdf_cloud/models/image_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/images.rb +49 -0
- data/lib/aspose_pdf_cloud/models/images_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/link.rb +61 -0
- data/lib/aspose_pdf_cloud/models/link_annotation.rb +71 -0
- data/lib/aspose_pdf_cloud/models/link_annotation_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/link_annotations.rb +49 -0
- data/lib/aspose_pdf_cloud/models/link_annotations_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/link_element.rb +39 -0
- data/lib/aspose_pdf_cloud/models/merge_documents.rb +39 -0
- data/lib/aspose_pdf_cloud/models/page.rb +63 -0
- data/lib/aspose_pdf_cloud/models/page_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/page_text_replace_response.rb +69 -0
- data/lib/aspose_pdf_cloud/models/page_word_count.rb +45 -0
- data/lib/aspose_pdf_cloud/models/pages.rb +49 -0
- data/lib/aspose_pdf_cloud/models/rectangle.rb +61 -0
- data/lib/aspose_pdf_cloud/models/signature.rb +109 -0
- data/lib/aspose_pdf_cloud/models/split_result.rb +39 -0
- data/lib/aspose_pdf_cloud/models/split_result_document.rb +69 -0
- data/lib/aspose_pdf_cloud/models/split_result_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/stamp.rb +205 -0
- data/lib/aspose_pdf_cloud/models/text_format.rb +63 -0
- data/lib/aspose_pdf_cloud/models/text_format_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/text_item.rb +55 -0
- data/lib/aspose_pdf_cloud/models/text_item_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/text_items.rb +49 -0
- data/lib/aspose_pdf_cloud/models/text_items_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/text_replace.rb +53 -0
- data/lib/aspose_pdf_cloud/models/text_replace_list_request.rb +39 -0
- data/lib/aspose_pdf_cloud/models/text_state.rb +69 -0
- data/lib/aspose_pdf_cloud/models/tiff_export_options.rb +157 -0
- data/lib/aspose_pdf_cloud/models/word_count.rb +39 -0
- data/lib/aspose_pdf_cloud/models/word_count_response.rb +61 -0
- data/lib/aspose_pdf_cloud/version.rb +3 -0
- data/test/data/Sample-Annotation-Property.pdf +0 -0
- data/test/data/Sample-Annotation.pdf +0 -0
- data/test/data/Sample-Bookmark.pdf +0 -0
- data/test/data/Sample.pdf +0 -0
- data/test/data/SampleAttachment.pdf +0 -0
- data/test/data/SampleBarCodeImage.pdf +0 -0
- data/test/data/SampleImage.pdf +0 -0
- data/test/data/aspose-cloud.png +0 -0
- data/test/data/pkc7-sample.pfx +0 -0
- data/test/data/sample-field.pdf +0 -0
- data/test/data/sample-home.jpg +0 -0
- data/test/data/sample-input-2.pdf +0 -0
- data/test/data/sample-input.pdf +0 -0
- data/test/data/sample-merged.pdf +0 -0
- data/test/data/sample.tiff +0 -0
- data/test/pdf_tests.rb +623 -0
- metadata +216 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 744a1c12ce6c742e22c036f1bab4de979462316f
|
4
|
+
data.tar.gz: 073d295cec7c6ba6da7581096ef7275b2d49c5f3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: da889638934a50ab46b4850976d96dfd28265e233fdea329b664668ad3dbef7d2b61b0f7b5048a13ca07389e94cd0750ed40b6091683921520a6f37d3f488844
|
7
|
+
data.tar.gz: 6d7ae735f25cfec0c60c0670ec321429a560e3c1485f95e7eaef1124c4415658e919e20c463909ef2efa0ffad5ab8871279b1838892ee452c4450f296e88722f
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2001-2014 Aspose Pty Ltd
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# Aspose.Pdf Cloud SDK For Ruby
|
2
|
+
This SDK lets you use [Aspose Cloud PDF APIs](http://www.aspose.com/cloud/pdf-api.aspx) in your web apps.
|
3
|
+
|
4
|
+
## Installing
|
5
|
+
You can simply install AsposePDFCloud with gem:
|
6
|
+
|
7
|
+
`gem install aspose_pdf_cloud`
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
APIs of this SDK can be called as follows:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'aspose_pdf_cloud'
|
14
|
+
|
15
|
+
class AsposePDFUsage
|
16
|
+
|
17
|
+
include AsposePDFCloud
|
18
|
+
include AsposeStorageCloud
|
19
|
+
|
20
|
+
def initialize
|
21
|
+
#Get App key and App SID from https://cloud.aspose.com
|
22
|
+
AsposeApp.app_key_and_sid("APP_KEY", "APP_SID")
|
23
|
+
@pdf_api = PdfApi.new
|
24
|
+
end
|
25
|
+
|
26
|
+
def convert_document_to_tiff
|
27
|
+
#Convert document from request content to tiff format.
|
28
|
+
file_name = "Sample.pdf"
|
29
|
+
response = @pdf_api.put_convert_document(File.open("data/" << file_name,"r") { |io| io.read }, {format: "tiff"})
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
```
|
34
|
+
## Unit Tests
|
35
|
+
Aspose PDF SDK includes a suite of unit tests within the [test](https://github.com/asposepdf/Aspose_Pdf_Cloud/blob/master/SDKs/Aspose.Pdf_Cloud_SDK_for_Ruby/test/pdf_tests.rb) subdirectory. These Unit Tests also serves as examples of how to use the Aspose PDF SDK.
|
36
|
+
|
37
|
+
## Contact
|
38
|
+
Your feedback is very important to us. Please email us all your queries and feedback at marketplace@aspose.com.
|
39
|
+
|
40
|
+
## License
|
41
|
+
Aspose PDF SDK is available under the MIT license. See the [LICENSE](https://github.com/asposepdf/Aspose_Pdf_Cloud/blob/master/SDKs/Aspose.Pdf_Cloud_SDK_for_Ruby/LICENSE) file for more info.
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "aspose_pdf_cloud/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "aspose_pdf_cloud"
|
7
|
+
s.version = AsposePDFCloud::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["M. Sohail Ismail"]
|
10
|
+
s.email = ["muhammad.sohail@aspose.com"]
|
11
|
+
s.homepage = "http://www.aspose.com/cloud/pdf-api.aspx"
|
12
|
+
s.summary = %q{Aspose.Pdf for Cloud}
|
13
|
+
s.description = %q{Aspose.Pdf for Cloud is a REST API for creating and editing PDF files. It can also be used to convert PDF files to different formats like DOC, HTML, XPS, TIFF and many more. Aspose.Pdf for Cloud gives you control: create PDFs from scratch or from HTML, XML, template, database, XPS or an image. Render PDFs to image formats such as JPEG, PNG, GIF, BMP, TIFF and many others. Aspose.Pdf for Cloud helps you manipulate elements of a PDF file like text, annotations, watermarks, signatures, bookmarks, stamps and so on. Its REST API also allows you to manage PDF pages by using features like merging, splitting, and inserting. Add images to a PDF file or convert PDF pages to images.}
|
14
|
+
s.license = "MIT"
|
15
|
+
|
16
|
+
s.add_runtime_dependency 'typhoeus', '~> 0.8'
|
17
|
+
s.add_runtime_dependency 'json', '~> 1.7'
|
18
|
+
s.add_runtime_dependency 'aspose_storage_cloud', '~> 1.0', '>= 1.0.0'
|
19
|
+
|
20
|
+
s.add_development_dependency 'minitest', '~> 5.8'
|
21
|
+
|
22
|
+
s.files = `git ls-files`.split("\n")
|
23
|
+
s.test_files = `git ls-files -- test/*`.split("\n")
|
24
|
+
s.executables = []
|
25
|
+
s.require_paths = ["lib"]
|
26
|
+
end
|
@@ -0,0 +1,91 @@
|
|
1
|
+
require 'aspose_storage_cloud'
|
2
|
+
|
3
|
+
# Common files
|
4
|
+
require_relative 'aspose_pdf_cloud/api_client'
|
5
|
+
require_relative 'aspose_pdf_cloud/api_error'
|
6
|
+
require_relative 'aspose_pdf_cloud/version'
|
7
|
+
require_relative 'aspose_pdf_cloud/configuration'
|
8
|
+
|
9
|
+
# Models
|
10
|
+
require_relative 'aspose_pdf_cloud/models/base_object'
|
11
|
+
require_relative 'aspose_pdf_cloud/models/document_pages_response'
|
12
|
+
require_relative 'aspose_pdf_cloud/models/pages'
|
13
|
+
require_relative 'aspose_pdf_cloud/models/page'
|
14
|
+
require_relative 'aspose_pdf_cloud/models/images'
|
15
|
+
require_relative 'aspose_pdf_cloud/models/rectangle'
|
16
|
+
require_relative 'aspose_pdf_cloud/models/image'
|
17
|
+
require_relative 'aspose_pdf_cloud/models/word_count_response'
|
18
|
+
require_relative 'aspose_pdf_cloud/models/word_count'
|
19
|
+
require_relative 'aspose_pdf_cloud/models/page_word_count'
|
20
|
+
require_relative 'aspose_pdf_cloud/models/signature'
|
21
|
+
require_relative 'aspose_pdf_cloud/models/stamp'
|
22
|
+
require_relative 'aspose_pdf_cloud/models/text_state'
|
23
|
+
require_relative 'aspose_pdf_cloud/models/color'
|
24
|
+
require_relative 'aspose_pdf_cloud/models/attachments_response'
|
25
|
+
require_relative 'aspose_pdf_cloud/models/attachments'
|
26
|
+
require_relative 'aspose_pdf_cloud/models/link_element'
|
27
|
+
require_relative 'aspose_pdf_cloud/models/attachment_response'
|
28
|
+
require_relative 'aspose_pdf_cloud/models/attachment'
|
29
|
+
require_relative 'aspose_pdf_cloud/models/fields_response'
|
30
|
+
require_relative 'aspose_pdf_cloud/models/fields'
|
31
|
+
require_relative 'aspose_pdf_cloud/models/field'
|
32
|
+
require_relative 'aspose_pdf_cloud/models/field_response'
|
33
|
+
require_relative 'aspose_pdf_cloud/models/bookmarks_response'
|
34
|
+
require_relative 'aspose_pdf_cloud/models/bookmarks'
|
35
|
+
require_relative 'aspose_pdf_cloud/models/annotations_response'
|
36
|
+
require_relative 'aspose_pdf_cloud/models/annotations'
|
37
|
+
require_relative 'aspose_pdf_cloud/models/annotation_response'
|
38
|
+
require_relative 'aspose_pdf_cloud/models/annotation'
|
39
|
+
require_relative 'aspose_pdf_cloud/models/document_response'
|
40
|
+
require_relative 'aspose_pdf_cloud/models/document'
|
41
|
+
require_relative 'aspose_pdf_cloud/models/document_properties'
|
42
|
+
require_relative 'aspose_pdf_cloud/models/document_property'
|
43
|
+
require_relative 'aspose_pdf_cloud/models/split_result_response'
|
44
|
+
require_relative 'aspose_pdf_cloud/models/split_result'
|
45
|
+
require_relative 'aspose_pdf_cloud/models/split_result_document'
|
46
|
+
require_relative 'aspose_pdf_cloud/models/link_annotations_response'
|
47
|
+
require_relative 'aspose_pdf_cloud/models/link_annotations'
|
48
|
+
require_relative 'aspose_pdf_cloud/models/link_annotation_response'
|
49
|
+
require_relative 'aspose_pdf_cloud/models/link_annotation'
|
50
|
+
require_relative 'aspose_pdf_cloud/models/images_response'
|
51
|
+
require_relative 'aspose_pdf_cloud/models/image_response'
|
52
|
+
require_relative 'aspose_pdf_cloud/models/append_document'
|
53
|
+
require_relative 'aspose_pdf_cloud/models/merge_documents'
|
54
|
+
require_relative 'aspose_pdf_cloud/models/text_replace'
|
55
|
+
require_relative 'aspose_pdf_cloud/models/document_text_replace_response'
|
56
|
+
require_relative 'aspose_pdf_cloud/models/page_text_replace_response'
|
57
|
+
require_relative 'aspose_pdf_cloud/models/text_replace_list_request'
|
58
|
+
require_relative 'aspose_pdf_cloud/models/tiff_export_options'
|
59
|
+
require_relative 'aspose_pdf_cloud/models/document_properties_response'
|
60
|
+
require_relative 'aspose_pdf_cloud/models/document_property_response'
|
61
|
+
require_relative 'aspose_pdf_cloud/models/text_items_response'
|
62
|
+
require_relative 'aspose_pdf_cloud/models/text_items'
|
63
|
+
require_relative 'aspose_pdf_cloud/models/text_item'
|
64
|
+
require_relative 'aspose_pdf_cloud/models/text_format'
|
65
|
+
require_relative 'aspose_pdf_cloud/models/text_format_response'
|
66
|
+
require_relative 'aspose_pdf_cloud/models/text_item_response'
|
67
|
+
require_relative 'aspose_pdf_cloud/models/link'
|
68
|
+
require_relative 'aspose_pdf_cloud/models/base_response'
|
69
|
+
require_relative 'aspose_pdf_cloud/models/barcode_response_list'
|
70
|
+
require_relative 'aspose_pdf_cloud/models/page_response'
|
71
|
+
|
72
|
+
# APIs
|
73
|
+
require_relative 'aspose_pdf_cloud/api/pdf_api'
|
74
|
+
|
75
|
+
module AsposePDFCloud
|
76
|
+
class << self
|
77
|
+
# Configure sdk using block.
|
78
|
+
# AsposePDFCloud.configure do |config|
|
79
|
+
# config.username = "xxx"
|
80
|
+
# config.password = "xxx"
|
81
|
+
# end
|
82
|
+
# If no block given, return the configuration singleton instance.
|
83
|
+
def configure
|
84
|
+
if block_given?
|
85
|
+
yield Configuration.instance
|
86
|
+
else
|
87
|
+
Configuration.instance
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,3318 @@
|
|
1
|
+
require "uri"
|
2
|
+
|
3
|
+
module AsposePDFCloud
|
4
|
+
class PdfApi
|
5
|
+
attr_accessor :api_client
|
6
|
+
|
7
|
+
def initialize(api_client = nil)
|
8
|
+
@api_client = api_client || Configuration.api_client
|
9
|
+
end
|
10
|
+
|
11
|
+
# Convert document from request content to format specified.
|
12
|
+
#
|
13
|
+
# @param file
|
14
|
+
# @param [Hash] opts the optional parameters
|
15
|
+
# @option opts [String] :format The format to convert.
|
16
|
+
# @option opts [String] :replace_resources_host_to
|
17
|
+
# @option opts [String] :out_path Path to save result
|
18
|
+
# @return [File]
|
19
|
+
def put_convert_document(file, opts = {})
|
20
|
+
if Configuration.debugging
|
21
|
+
Configuration.logger.debug "Calling API: PdfApi#put_convert_document ..."
|
22
|
+
end
|
23
|
+
|
24
|
+
# verify the required parameter 'file' is set
|
25
|
+
fail "Missing the required parameter 'file' when calling put_convert_document" if file.nil?
|
26
|
+
|
27
|
+
# resource path
|
28
|
+
path = "/pdf/convert".sub('{format}','json')
|
29
|
+
|
30
|
+
# query parameters
|
31
|
+
query_params = {}
|
32
|
+
query_params[:'format'] = opts[:'format'] if opts[:'format']
|
33
|
+
query_params[:'replaceResourcesHostTo'] = opts[:'replace_resources_host_to'] if opts[:'replace_resources_host_to']
|
34
|
+
query_params[:'outPath'] = opts[:'out_path'] if opts[:'out_path']
|
35
|
+
|
36
|
+
# header parameters
|
37
|
+
header_params = {}
|
38
|
+
|
39
|
+
# HTTP header 'Accept' (if needed)
|
40
|
+
_header_accept = []
|
41
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
42
|
+
|
43
|
+
# HTTP header 'Content-Type'
|
44
|
+
_header_content_type = ['multipart/form-data']
|
45
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
46
|
+
|
47
|
+
# form parameters
|
48
|
+
form_params = {}
|
49
|
+
form_params["file"] = file
|
50
|
+
|
51
|
+
# http body (model)
|
52
|
+
post_body = nil
|
53
|
+
|
54
|
+
|
55
|
+
auth_names = []
|
56
|
+
result = @api_client.call_api(:PUT, path,
|
57
|
+
:header_params => header_params,
|
58
|
+
:query_params => query_params,
|
59
|
+
:form_params => form_params,
|
60
|
+
:body => post_body,
|
61
|
+
:auth_names => auth_names,
|
62
|
+
:return_type => 'File')
|
63
|
+
if Configuration.debugging
|
64
|
+
Configuration.logger.debug "API called: PdfApi#put_convert_document. Result: #{result.inspect}"
|
65
|
+
end
|
66
|
+
return result
|
67
|
+
end
|
68
|
+
|
69
|
+
# Convert document to specified format
|
70
|
+
#
|
71
|
+
# @param name The document name.
|
72
|
+
# @param format Convert document to this format
|
73
|
+
# @param [Hash] opts the optional parameters
|
74
|
+
# @option opts [String] :out_path
|
75
|
+
# @option opts [String] :storage The document storage.
|
76
|
+
# @option opts [String] :folder The document folder.
|
77
|
+
# @return [File]
|
78
|
+
def get_document_with_format(name, format, opts = {})
|
79
|
+
if Configuration.debugging
|
80
|
+
Configuration.logger.debug "Calling API: PdfApi#get_document_with_format ..."
|
81
|
+
end
|
82
|
+
|
83
|
+
# verify the required parameter 'name' is set
|
84
|
+
fail "Missing the required parameter 'name' when calling get_document_with_format" if name.nil?
|
85
|
+
|
86
|
+
# verify the required parameter 'format' is set
|
87
|
+
fail "Missing the required parameter 'format' when calling get_document_with_format" if format.nil?
|
88
|
+
|
89
|
+
# resource path
|
90
|
+
path = "/pdf/{name}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
91
|
+
|
92
|
+
# query parameters
|
93
|
+
query_params = {}
|
94
|
+
query_params[:'format'] = format
|
95
|
+
query_params[:'outPath'] = opts[:'out_path'] if opts[:'out_path']
|
96
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
97
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
98
|
+
|
99
|
+
# header parameters
|
100
|
+
header_params = {}
|
101
|
+
|
102
|
+
# HTTP header 'Accept' (if needed)
|
103
|
+
_header_accept = []
|
104
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
105
|
+
|
106
|
+
# HTTP header 'Content-Type'
|
107
|
+
_header_content_type = ['application/json']
|
108
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
109
|
+
|
110
|
+
# form parameters
|
111
|
+
form_params = {}
|
112
|
+
|
113
|
+
# http body (model)
|
114
|
+
post_body = nil
|
115
|
+
|
116
|
+
|
117
|
+
auth_names = []
|
118
|
+
result = @api_client.call_api(:GET, path,
|
119
|
+
:header_params => header_params,
|
120
|
+
:query_params => query_params,
|
121
|
+
:form_params => form_params,
|
122
|
+
:body => post_body,
|
123
|
+
:auth_names => auth_names,
|
124
|
+
:return_type => 'File')
|
125
|
+
if Configuration.debugging
|
126
|
+
Configuration.logger.debug "API called: PdfApi#get_document_with_format. Result: #{result.inspect}"
|
127
|
+
end
|
128
|
+
return result
|
129
|
+
end
|
130
|
+
|
131
|
+
# Create new document.
|
132
|
+
#
|
133
|
+
# @param name The new document name.
|
134
|
+
# @param [Hash] opts the optional parameters
|
135
|
+
# @option opts [String] :template_file The template file server path if defined.
|
136
|
+
# @option opts [String] :data_file The data file path (for xml template only).
|
137
|
+
# @option opts [String] :template_type The template type, can be xml or html.
|
138
|
+
# @option opts [String] :storage The document storage.
|
139
|
+
# @option opts [String] :folder The new document folder.
|
140
|
+
# @return [DocumentResponse]
|
141
|
+
def put_create_document(name, opts = {})
|
142
|
+
if Configuration.debugging
|
143
|
+
Configuration.logger.debug "Calling API: PdfApi#put_create_document ..."
|
144
|
+
end
|
145
|
+
|
146
|
+
# verify the required parameter 'name' is set
|
147
|
+
fail "Missing the required parameter 'name' when calling put_create_document" if name.nil?
|
148
|
+
|
149
|
+
# resource path
|
150
|
+
path = "/pdf/{name}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
151
|
+
|
152
|
+
# query parameters
|
153
|
+
query_params = {}
|
154
|
+
query_params[:'templateFile'] = opts[:'template_file'] if opts[:'template_file']
|
155
|
+
query_params[:'dataFile'] = opts[:'data_file'] if opts[:'data_file']
|
156
|
+
query_params[:'templateType'] = opts[:'template_type'] if opts[:'template_type']
|
157
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
158
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
159
|
+
|
160
|
+
# header parameters
|
161
|
+
header_params = {}
|
162
|
+
|
163
|
+
# HTTP header 'Accept' (if needed)
|
164
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
165
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
166
|
+
|
167
|
+
# HTTP header 'Content-Type'
|
168
|
+
_header_content_type = []
|
169
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
170
|
+
|
171
|
+
# form parameters
|
172
|
+
form_params = {}
|
173
|
+
|
174
|
+
# http body (model)
|
175
|
+
post_body = nil
|
176
|
+
|
177
|
+
|
178
|
+
auth_names = []
|
179
|
+
result = @api_client.call_api(:PUT, path,
|
180
|
+
:header_params => header_params,
|
181
|
+
:query_params => query_params,
|
182
|
+
:form_params => form_params,
|
183
|
+
:body => post_body,
|
184
|
+
:auth_names => auth_names,
|
185
|
+
:return_type => 'DocumentResponse')
|
186
|
+
if Configuration.debugging
|
187
|
+
Configuration.logger.debug "API called: PdfApi#put_create_document. Result: #{result.inspect}"
|
188
|
+
end
|
189
|
+
return result
|
190
|
+
end
|
191
|
+
|
192
|
+
# Save document as Tiff image.
|
193
|
+
#
|
194
|
+
# @param name The document name.
|
195
|
+
# @param export_options {TiffExportOptions} with tiff export options.
|
196
|
+
# @param [Hash] opts the optional parameters
|
197
|
+
# @option opts [String] :result_file The resulting file.
|
198
|
+
# @option opts [Float] :brightness The image brightness.
|
199
|
+
# @option opts [String] :compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
|
200
|
+
# @option opts [String] :color_depth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
|
201
|
+
# @option opts [Integer] :left_margin Left image margin.
|
202
|
+
# @option opts [Integer] :right_margin Right image margin.
|
203
|
+
# @option opts [Integer] :top_margin Top image margin.
|
204
|
+
# @option opts [Integer] :bottom_margin Bottom image margin.
|
205
|
+
# @option opts [String] :orientation Image orientation. Possible values are: None, Landscape, Portait.
|
206
|
+
# @option opts [BOOLEAN] :skip_blank_pages Skip blank pages flag.
|
207
|
+
# @option opts [Integer] :width Image width.
|
208
|
+
# @option opts [Integer] :height Image height.
|
209
|
+
# @option opts [Integer] :x_resolution Horizontal resolution.
|
210
|
+
# @option opts [Integer] :y_resolution Vertical resolution.
|
211
|
+
# @option opts [Integer] :page_index Start page to export.
|
212
|
+
# @option opts [Integer] :page_count Number of pages to export.
|
213
|
+
# @option opts [String] :storage The document storage.
|
214
|
+
# @option opts [String] :folder The document folder.
|
215
|
+
# @return [BaseResponse]
|
216
|
+
def put_document_save_as_tiff(name, export_options, opts = {})
|
217
|
+
if Configuration.debugging
|
218
|
+
Configuration.logger.debug "Calling API: PdfApi#put_document_save_as_tiff ..."
|
219
|
+
end
|
220
|
+
|
221
|
+
# verify the required parameter 'name' is set
|
222
|
+
fail "Missing the required parameter 'name' when calling put_document_save_as_tiff" if name.nil?
|
223
|
+
|
224
|
+
# verify the required parameter 'export_options' is set
|
225
|
+
fail "Missing the required parameter 'export_options' when calling put_document_save_as_tiff" if export_options.nil?
|
226
|
+
|
227
|
+
# resource path
|
228
|
+
path = "/pdf/{name}/SaveAs/tiff".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
229
|
+
|
230
|
+
# query parameters
|
231
|
+
query_params = {}
|
232
|
+
query_params[:'resultFile'] = opts[:'result_file'] if opts[:'result_file']
|
233
|
+
query_params[:'brightness'] = opts[:'brightness'] if opts[:'brightness']
|
234
|
+
query_params[:'compression'] = opts[:'compression'] if opts[:'compression']
|
235
|
+
query_params[:'colorDepth'] = opts[:'color_depth'] if opts[:'color_depth']
|
236
|
+
query_params[:'leftMargin'] = opts[:'left_margin'] if opts[:'left_margin']
|
237
|
+
query_params[:'rightMargin'] = opts[:'right_margin'] if opts[:'right_margin']
|
238
|
+
query_params[:'topMargin'] = opts[:'top_margin'] if opts[:'top_margin']
|
239
|
+
query_params[:'bottomMargin'] = opts[:'bottom_margin'] if opts[:'bottom_margin']
|
240
|
+
query_params[:'orientation'] = opts[:'orientation'] if opts[:'orientation']
|
241
|
+
query_params[:'skipBlankPages'] = opts[:'skip_blank_pages'] if opts[:'skip_blank_pages']
|
242
|
+
query_params[:'width'] = opts[:'width'] if opts[:'width']
|
243
|
+
query_params[:'height'] = opts[:'height'] if opts[:'height']
|
244
|
+
query_params[:'xResolution'] = opts[:'x_resolution'] if opts[:'x_resolution']
|
245
|
+
query_params[:'yResolution'] = opts[:'y_resolution'] if opts[:'y_resolution']
|
246
|
+
query_params[:'pageIndex'] = opts[:'page_index'] if opts[:'page_index']
|
247
|
+
query_params[:'pageCount'] = opts[:'page_count'] if opts[:'page_count']
|
248
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
249
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
250
|
+
|
251
|
+
# header parameters
|
252
|
+
header_params = {}
|
253
|
+
|
254
|
+
# HTTP header 'Accept' (if needed)
|
255
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
256
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
257
|
+
|
258
|
+
# HTTP header 'Content-Type'
|
259
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
260
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
261
|
+
|
262
|
+
# form parameters
|
263
|
+
form_params = {}
|
264
|
+
|
265
|
+
# http body (model)
|
266
|
+
post_body = @api_client.object_to_http_body(export_options)
|
267
|
+
|
268
|
+
|
269
|
+
auth_names = []
|
270
|
+
result = @api_client.call_api(:PUT, path,
|
271
|
+
:header_params => header_params,
|
272
|
+
:query_params => query_params,
|
273
|
+
:form_params => form_params,
|
274
|
+
:body => post_body,
|
275
|
+
:auth_names => auth_names,
|
276
|
+
:return_type => 'BaseResponse')
|
277
|
+
if Configuration.debugging
|
278
|
+
Configuration.logger.debug "API called: PdfApi#put_document_save_as_tiff. Result: #{result.inspect}"
|
279
|
+
end
|
280
|
+
return result
|
281
|
+
end
|
282
|
+
|
283
|
+
# Append document to existing one.
|
284
|
+
#
|
285
|
+
# @param name The original document name.
|
286
|
+
# @param append_document {AppendDocument} with the append document data.
|
287
|
+
# @param [Hash] opts the optional parameters
|
288
|
+
# @option opts [String] :append_file Append file server path.
|
289
|
+
# @option opts [Integer] :start_page Appending start page.
|
290
|
+
# @option opts [Integer] :end_page Appending end page.
|
291
|
+
# @option opts [String] :storage The documents storage.
|
292
|
+
# @option opts [String] :folder The original document folder.
|
293
|
+
# @return [DocumentResponse]
|
294
|
+
def post_append_document(name, append_document, opts = {})
|
295
|
+
if Configuration.debugging
|
296
|
+
Configuration.logger.debug "Calling API: PdfApi#post_append_document ..."
|
297
|
+
end
|
298
|
+
|
299
|
+
# verify the required parameter 'name' is set
|
300
|
+
fail "Missing the required parameter 'name' when calling post_append_document" if name.nil?
|
301
|
+
|
302
|
+
# verify the required parameter 'append_document' is set
|
303
|
+
fail "Missing the required parameter 'append_document' when calling post_append_document" if append_document.nil?
|
304
|
+
|
305
|
+
# resource path
|
306
|
+
path = "/pdf/{name}/appendDocument".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
307
|
+
|
308
|
+
# query parameters
|
309
|
+
query_params = {}
|
310
|
+
query_params[:'appendFile'] = opts[:'append_file'] if opts[:'append_file']
|
311
|
+
query_params[:'startPage'] = opts[:'start_page'] if opts[:'start_page']
|
312
|
+
query_params[:'endPage'] = opts[:'end_page'] if opts[:'end_page']
|
313
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
314
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
315
|
+
|
316
|
+
# header parameters
|
317
|
+
header_params = {}
|
318
|
+
|
319
|
+
# HTTP header 'Accept' (if needed)
|
320
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
321
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
322
|
+
|
323
|
+
# HTTP header 'Content-Type'
|
324
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
325
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
326
|
+
|
327
|
+
# form parameters
|
328
|
+
form_params = {}
|
329
|
+
|
330
|
+
# http body (model)
|
331
|
+
post_body = @api_client.object_to_http_body(append_document)
|
332
|
+
|
333
|
+
|
334
|
+
auth_names = []
|
335
|
+
result = @api_client.call_api(:POST, path,
|
336
|
+
:header_params => header_params,
|
337
|
+
:query_params => query_params,
|
338
|
+
:form_params => form_params,
|
339
|
+
:body => post_body,
|
340
|
+
:auth_names => auth_names,
|
341
|
+
:return_type => 'DocumentResponse')
|
342
|
+
if Configuration.debugging
|
343
|
+
Configuration.logger.debug "API called: PdfApi#post_append_document. Result: #{result.inspect}"
|
344
|
+
end
|
345
|
+
return result
|
346
|
+
end
|
347
|
+
|
348
|
+
# Read document attachments info.
|
349
|
+
#
|
350
|
+
# @param name The document name.
|
351
|
+
# @param [Hash] opts the optional parameters
|
352
|
+
# @option opts [String] :storage The document storage.
|
353
|
+
# @option opts [String] :folder The document folder.
|
354
|
+
# @return [AttachmentsResponse]
|
355
|
+
def get_document_attachments(name, opts = {})
|
356
|
+
if Configuration.debugging
|
357
|
+
Configuration.logger.debug "Calling API: PdfApi#get_document_attachments ..."
|
358
|
+
end
|
359
|
+
|
360
|
+
# verify the required parameter 'name' is set
|
361
|
+
fail "Missing the required parameter 'name' when calling get_document_attachments" if name.nil?
|
362
|
+
|
363
|
+
# resource path
|
364
|
+
path = "/pdf/{name}/attachments".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
365
|
+
|
366
|
+
# query parameters
|
367
|
+
query_params = {}
|
368
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
369
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
370
|
+
|
371
|
+
# header parameters
|
372
|
+
header_params = {}
|
373
|
+
|
374
|
+
# HTTP header 'Accept' (if needed)
|
375
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
376
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
377
|
+
|
378
|
+
# HTTP header 'Content-Type'
|
379
|
+
_header_content_type = []
|
380
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
381
|
+
|
382
|
+
# form parameters
|
383
|
+
form_params = {}
|
384
|
+
|
385
|
+
# http body (model)
|
386
|
+
post_body = nil
|
387
|
+
|
388
|
+
|
389
|
+
auth_names = []
|
390
|
+
result = @api_client.call_api(:GET, path,
|
391
|
+
:header_params => header_params,
|
392
|
+
:query_params => query_params,
|
393
|
+
:form_params => form_params,
|
394
|
+
:body => post_body,
|
395
|
+
:auth_names => auth_names,
|
396
|
+
:return_type => 'AttachmentsResponse')
|
397
|
+
if Configuration.debugging
|
398
|
+
Configuration.logger.debug "API called: PdfApi#get_document_attachments. Result: #{result.inspect}"
|
399
|
+
end
|
400
|
+
return result
|
401
|
+
end
|
402
|
+
|
403
|
+
# Read document attachment info by its index.
|
404
|
+
#
|
405
|
+
# @param name The document name.
|
406
|
+
# @param attachment_index The attachment index.
|
407
|
+
# @param [Hash] opts the optional parameters
|
408
|
+
# @option opts [String] :storage The document storage.
|
409
|
+
# @option opts [String] :folder The document folder.
|
410
|
+
# @return [AttachmentResponse]
|
411
|
+
def get_document_attachment_by_index(name, attachment_index, opts = {})
|
412
|
+
if Configuration.debugging
|
413
|
+
Configuration.logger.debug "Calling API: PdfApi#get_document_attachment_by_index ..."
|
414
|
+
end
|
415
|
+
|
416
|
+
# verify the required parameter 'name' is set
|
417
|
+
fail "Missing the required parameter 'name' when calling get_document_attachment_by_index" if name.nil?
|
418
|
+
|
419
|
+
# verify the required parameter 'attachment_index' is set
|
420
|
+
fail "Missing the required parameter 'attachment_index' when calling get_document_attachment_by_index" if attachment_index.nil?
|
421
|
+
|
422
|
+
# resource path
|
423
|
+
path = "/pdf/{name}/attachments/{attachmentIndex}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'attachmentIndex' + '}', attachment_index.to_s)
|
424
|
+
|
425
|
+
# query parameters
|
426
|
+
query_params = {}
|
427
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
428
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
429
|
+
|
430
|
+
# header parameters
|
431
|
+
header_params = {}
|
432
|
+
|
433
|
+
# HTTP header 'Accept' (if needed)
|
434
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
435
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
436
|
+
|
437
|
+
# HTTP header 'Content-Type'
|
438
|
+
_header_content_type = []
|
439
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
440
|
+
|
441
|
+
# form parameters
|
442
|
+
form_params = {}
|
443
|
+
|
444
|
+
# http body (model)
|
445
|
+
post_body = nil
|
446
|
+
|
447
|
+
|
448
|
+
auth_names = []
|
449
|
+
result = @api_client.call_api(:GET, path,
|
450
|
+
:header_params => header_params,
|
451
|
+
:query_params => query_params,
|
452
|
+
:form_params => form_params,
|
453
|
+
:body => post_body,
|
454
|
+
:auth_names => auth_names,
|
455
|
+
:return_type => 'AttachmentResponse')
|
456
|
+
if Configuration.debugging
|
457
|
+
Configuration.logger.debug "API called: PdfApi#get_document_attachment_by_index. Result: #{result.inspect}"
|
458
|
+
end
|
459
|
+
return result
|
460
|
+
end
|
461
|
+
|
462
|
+
# Download document attachment content by its index.
|
463
|
+
#
|
464
|
+
# @param name The document name.
|
465
|
+
# @param attachment_index The attachment index.
|
466
|
+
# @param [Hash] opts the optional parameters
|
467
|
+
# @option opts [String] :storage The document storage.
|
468
|
+
# @option opts [String] :folder The document folder.
|
469
|
+
# @return [File]
|
470
|
+
def get_download_document_attachment_by_index(name, attachment_index, opts = {})
|
471
|
+
if Configuration.debugging
|
472
|
+
Configuration.logger.debug "Calling API: PdfApi#get_download_document_attachment_by_index ..."
|
473
|
+
end
|
474
|
+
|
475
|
+
# verify the required parameter 'name' is set
|
476
|
+
fail "Missing the required parameter 'name' when calling get_download_document_attachment_by_index" if name.nil?
|
477
|
+
|
478
|
+
# verify the required parameter 'attachment_index' is set
|
479
|
+
fail "Missing the required parameter 'attachment_index' when calling get_download_document_attachment_by_index" if attachment_index.nil?
|
480
|
+
|
481
|
+
# resource path
|
482
|
+
path = "/pdf/{name}/attachments/{attachmentIndex}/download".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'attachmentIndex' + '}', attachment_index.to_s)
|
483
|
+
|
484
|
+
# query parameters
|
485
|
+
query_params = {}
|
486
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
487
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
488
|
+
|
489
|
+
# header parameters
|
490
|
+
header_params = {}
|
491
|
+
|
492
|
+
# HTTP header 'Accept' (if needed)
|
493
|
+
_header_accept = ['multipart/form-data']
|
494
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
495
|
+
|
496
|
+
# HTTP header 'Content-Type'
|
497
|
+
_header_content_type = []
|
498
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
499
|
+
|
500
|
+
# form parameters
|
501
|
+
form_params = {}
|
502
|
+
|
503
|
+
# http body (model)
|
504
|
+
post_body = nil
|
505
|
+
|
506
|
+
|
507
|
+
auth_names = []
|
508
|
+
result = @api_client.call_api(:GET, path,
|
509
|
+
:header_params => header_params,
|
510
|
+
:query_params => query_params,
|
511
|
+
:form_params => form_params,
|
512
|
+
:body => post_body,
|
513
|
+
:auth_names => auth_names,
|
514
|
+
:return_type => 'File')
|
515
|
+
if Configuration.debugging
|
516
|
+
Configuration.logger.debug "API called: PdfApi#get_download_document_attachment_by_index. Result: #{result.inspect}"
|
517
|
+
end
|
518
|
+
return result
|
519
|
+
end
|
520
|
+
|
521
|
+
# Read document bookmarks.
|
522
|
+
#
|
523
|
+
# @param name The document name.
|
524
|
+
# @param [Hash] opts the optional parameters
|
525
|
+
# @option opts [String] :storage The document storage.
|
526
|
+
# @option opts [String] :folder The document folder.
|
527
|
+
# @return [BookmarksResponse]
|
528
|
+
def get_document_bookmarks(name, opts = {})
|
529
|
+
if Configuration.debugging
|
530
|
+
Configuration.logger.debug "Calling API: PdfApi#get_document_bookmarks ..."
|
531
|
+
end
|
532
|
+
|
533
|
+
# verify the required parameter 'name' is set
|
534
|
+
fail "Missing the required parameter 'name' when calling get_document_bookmarks" if name.nil?
|
535
|
+
|
536
|
+
# resource path
|
537
|
+
path = "/pdf/{name}/bookmarks".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
538
|
+
|
539
|
+
# query parameters
|
540
|
+
query_params = {}
|
541
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
542
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
543
|
+
|
544
|
+
# header parameters
|
545
|
+
header_params = {}
|
546
|
+
|
547
|
+
# HTTP header 'Accept' (if needed)
|
548
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
549
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
550
|
+
|
551
|
+
# HTTP header 'Content-Type'
|
552
|
+
_header_content_type = []
|
553
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
554
|
+
|
555
|
+
# form parameters
|
556
|
+
form_params = {}
|
557
|
+
|
558
|
+
# http body (model)
|
559
|
+
post_body = nil
|
560
|
+
|
561
|
+
|
562
|
+
auth_names = []
|
563
|
+
result = @api_client.call_api(:GET, path,
|
564
|
+
:header_params => header_params,
|
565
|
+
:query_params => query_params,
|
566
|
+
:form_params => form_params,
|
567
|
+
:body => post_body,
|
568
|
+
:auth_names => auth_names,
|
569
|
+
:return_type => 'BookmarksResponse')
|
570
|
+
if Configuration.debugging
|
571
|
+
Configuration.logger.debug "API called: PdfApi#get_document_bookmarks. Result: #{result.inspect}"
|
572
|
+
end
|
573
|
+
return result
|
574
|
+
end
|
575
|
+
|
576
|
+
# Read document bookmark/bookmarks (including children).
|
577
|
+
#
|
578
|
+
# @param name The document name.
|
579
|
+
# @param bookmark_path The bookmark path.
|
580
|
+
# @param [Hash] opts the optional parameters
|
581
|
+
# @option opts [String] :storage The document storage.
|
582
|
+
# @option opts [String] :folder The document folder.
|
583
|
+
# @return [BaseResponse]
|
584
|
+
def get_document_bookmarks_children(name, bookmark_path, opts = {})
|
585
|
+
if Configuration.debugging
|
586
|
+
Configuration.logger.debug "Calling API: PdfApi#get_document_bookmarks_children ..."
|
587
|
+
end
|
588
|
+
|
589
|
+
# verify the required parameter 'name' is set
|
590
|
+
fail "Missing the required parameter 'name' when calling get_document_bookmarks_children" if name.nil?
|
591
|
+
|
592
|
+
# verify the required parameter 'bookmark_path' is set
|
593
|
+
fail "Missing the required parameter 'bookmark_path' when calling get_document_bookmarks_children" if bookmark_path.nil?
|
594
|
+
|
595
|
+
# resource path
|
596
|
+
path = "/pdf/{name}/bookmarks/{bookmarkPath}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'bookmarkPath' + '}', bookmark_path.to_s)
|
597
|
+
|
598
|
+
# query parameters
|
599
|
+
query_params = {}
|
600
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
601
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
602
|
+
|
603
|
+
# header parameters
|
604
|
+
header_params = {}
|
605
|
+
|
606
|
+
# HTTP header 'Accept' (if needed)
|
607
|
+
_header_accept = ['application/json', 'text/json', 'text/javascript']
|
608
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
609
|
+
|
610
|
+
# HTTP header 'Content-Type'
|
611
|
+
_header_content_type = []
|
612
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
613
|
+
|
614
|
+
# form parameters
|
615
|
+
form_params = {}
|
616
|
+
|
617
|
+
# http body (model)
|
618
|
+
post_body = nil
|
619
|
+
|
620
|
+
|
621
|
+
auth_names = []
|
622
|
+
result = @api_client.call_api(:GET, path,
|
623
|
+
:header_params => header_params,
|
624
|
+
:query_params => query_params,
|
625
|
+
:form_params => form_params,
|
626
|
+
:body => post_body,
|
627
|
+
:auth_names => auth_names,
|
628
|
+
:return_type => 'BaseResponse')
|
629
|
+
if Configuration.debugging
|
630
|
+
Configuration.logger.debug "API called: PdfApi#get_document_bookmarks_children. Result: #{result.inspect}"
|
631
|
+
end
|
632
|
+
return result
|
633
|
+
end
|
634
|
+
|
635
|
+
# Read document properties.
|
636
|
+
#
|
637
|
+
# @param name
|
638
|
+
# @param [Hash] opts the optional parameters
|
639
|
+
# @option opts [String] :storage
|
640
|
+
# @option opts [String] :folder
|
641
|
+
# @return [DocumentPropertiesResponse]
|
642
|
+
def get_document_properties(name, opts = {})
|
643
|
+
if Configuration.debugging
|
644
|
+
Configuration.logger.debug "Calling API: PdfApi#get_document_properties ..."
|
645
|
+
end
|
646
|
+
|
647
|
+
# verify the required parameter 'name' is set
|
648
|
+
fail "Missing the required parameter 'name' when calling get_document_properties" if name.nil?
|
649
|
+
|
650
|
+
# resource path
|
651
|
+
path = "/pdf/{name}/documentproperties".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
652
|
+
|
653
|
+
# query parameters
|
654
|
+
query_params = {}
|
655
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
656
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
657
|
+
|
658
|
+
# header parameters
|
659
|
+
header_params = {}
|
660
|
+
|
661
|
+
# HTTP header 'Accept' (if needed)
|
662
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
663
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
664
|
+
|
665
|
+
# HTTP header 'Content-Type'
|
666
|
+
_header_content_type = []
|
667
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
668
|
+
|
669
|
+
# form parameters
|
670
|
+
form_params = {}
|
671
|
+
|
672
|
+
# http body (model)
|
673
|
+
post_body = nil
|
674
|
+
|
675
|
+
|
676
|
+
auth_names = []
|
677
|
+
result = @api_client.call_api(:GET, path,
|
678
|
+
:header_params => header_params,
|
679
|
+
:query_params => query_params,
|
680
|
+
:form_params => form_params,
|
681
|
+
:body => post_body,
|
682
|
+
:auth_names => auth_names,
|
683
|
+
:return_type => 'DocumentPropertiesResponse')
|
684
|
+
if Configuration.debugging
|
685
|
+
Configuration.logger.debug "API called: PdfApi#get_document_properties. Result: #{result.inspect}"
|
686
|
+
end
|
687
|
+
return result
|
688
|
+
end
|
689
|
+
|
690
|
+
# Delete document properties.
|
691
|
+
#
|
692
|
+
# @param name
|
693
|
+
# @param [Hash] opts the optional parameters
|
694
|
+
# @option opts [String] :storage
|
695
|
+
# @option opts [String] :folder
|
696
|
+
# @return [BaseResponse]
|
697
|
+
def delete_properties(name, opts = {})
|
698
|
+
if Configuration.debugging
|
699
|
+
Configuration.logger.debug "Calling API: PdfApi#delete_properties ..."
|
700
|
+
end
|
701
|
+
|
702
|
+
# verify the required parameter 'name' is set
|
703
|
+
fail "Missing the required parameter 'name' when calling delete_properties" if name.nil?
|
704
|
+
|
705
|
+
# resource path
|
706
|
+
path = "/pdf/{name}/documentproperties".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
707
|
+
|
708
|
+
# query parameters
|
709
|
+
query_params = {}
|
710
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
711
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
712
|
+
|
713
|
+
# header parameters
|
714
|
+
header_params = {}
|
715
|
+
|
716
|
+
# HTTP header 'Accept' (if needed)
|
717
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
718
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
719
|
+
|
720
|
+
# HTTP header 'Content-Type'
|
721
|
+
_header_content_type = []
|
722
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
723
|
+
|
724
|
+
# form parameters
|
725
|
+
form_params = {}
|
726
|
+
|
727
|
+
# http body (model)
|
728
|
+
post_body = nil
|
729
|
+
|
730
|
+
|
731
|
+
auth_names = []
|
732
|
+
result = @api_client.call_api(:DELETE, path,
|
733
|
+
:header_params => header_params,
|
734
|
+
:query_params => query_params,
|
735
|
+
:form_params => form_params,
|
736
|
+
:body => post_body,
|
737
|
+
:auth_names => auth_names,
|
738
|
+
:return_type => 'BaseResponse')
|
739
|
+
if Configuration.debugging
|
740
|
+
Configuration.logger.debug "API called: PdfApi#delete_properties. Result: #{result.inspect}"
|
741
|
+
end
|
742
|
+
return result
|
743
|
+
end
|
744
|
+
|
745
|
+
# Read document property by name.
|
746
|
+
#
|
747
|
+
# @param name
|
748
|
+
# @param property_name
|
749
|
+
# @param [Hash] opts the optional parameters
|
750
|
+
# @option opts [String] :storage
|
751
|
+
# @option opts [String] :folder
|
752
|
+
# @return [DocumentPropertyResponse]
|
753
|
+
def get_document_property(name, property_name, opts = {})
|
754
|
+
if Configuration.debugging
|
755
|
+
Configuration.logger.debug "Calling API: PdfApi#get_document_property ..."
|
756
|
+
end
|
757
|
+
|
758
|
+
# verify the required parameter 'name' is set
|
759
|
+
fail "Missing the required parameter 'name' when calling get_document_property" if name.nil?
|
760
|
+
|
761
|
+
# verify the required parameter 'property_name' is set
|
762
|
+
fail "Missing the required parameter 'property_name' when calling get_document_property" if property_name.nil?
|
763
|
+
|
764
|
+
# resource path
|
765
|
+
path = "/pdf/{name}/documentproperties/{propertyName}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'propertyName' + '}', property_name.to_s)
|
766
|
+
|
767
|
+
# query parameters
|
768
|
+
query_params = {}
|
769
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
770
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
771
|
+
|
772
|
+
# header parameters
|
773
|
+
header_params = {}
|
774
|
+
|
775
|
+
# HTTP header 'Accept' (if needed)
|
776
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
777
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
778
|
+
|
779
|
+
# HTTP header 'Content-Type'
|
780
|
+
_header_content_type = []
|
781
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
782
|
+
|
783
|
+
# form parameters
|
784
|
+
form_params = {}
|
785
|
+
|
786
|
+
# http body (model)
|
787
|
+
post_body = nil
|
788
|
+
|
789
|
+
|
790
|
+
auth_names = []
|
791
|
+
result = @api_client.call_api(:GET, path,
|
792
|
+
:header_params => header_params,
|
793
|
+
:query_params => query_params,
|
794
|
+
:form_params => form_params,
|
795
|
+
:body => post_body,
|
796
|
+
:auth_names => auth_names,
|
797
|
+
:return_type => 'DocumentPropertyResponse')
|
798
|
+
if Configuration.debugging
|
799
|
+
Configuration.logger.debug "API called: PdfApi#get_document_property. Result: #{result.inspect}"
|
800
|
+
end
|
801
|
+
return result
|
802
|
+
end
|
803
|
+
|
804
|
+
# Add/update document property.
|
805
|
+
#
|
806
|
+
# @param name
|
807
|
+
# @param property_name
|
808
|
+
# @param property
|
809
|
+
# @param [Hash] opts the optional parameters
|
810
|
+
# @option opts [String] :storage
|
811
|
+
# @option opts [String] :folder
|
812
|
+
# @return [DocumentPropertyResponse]
|
813
|
+
def put_set_property(name, property_name, property, opts = {})
|
814
|
+
if Configuration.debugging
|
815
|
+
Configuration.logger.debug "Calling API: PdfApi#put_set_property ..."
|
816
|
+
end
|
817
|
+
|
818
|
+
# verify the required parameter 'name' is set
|
819
|
+
fail "Missing the required parameter 'name' when calling put_set_property" if name.nil?
|
820
|
+
|
821
|
+
# verify the required parameter 'property_name' is set
|
822
|
+
fail "Missing the required parameter 'property_name' when calling put_set_property" if property_name.nil?
|
823
|
+
|
824
|
+
# verify the required parameter 'property' is set
|
825
|
+
fail "Missing the required parameter 'property' when calling put_set_property" if property.nil?
|
826
|
+
|
827
|
+
# resource path
|
828
|
+
path = "/pdf/{name}/documentproperties/{propertyName}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'propertyName' + '}', property_name.to_s)
|
829
|
+
|
830
|
+
# query parameters
|
831
|
+
query_params = {}
|
832
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
833
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
834
|
+
|
835
|
+
# header parameters
|
836
|
+
header_params = {}
|
837
|
+
|
838
|
+
# HTTP header 'Accept' (if needed)
|
839
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
840
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
841
|
+
|
842
|
+
# HTTP header 'Content-Type'
|
843
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
844
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
845
|
+
|
846
|
+
# form parameters
|
847
|
+
form_params = {}
|
848
|
+
|
849
|
+
# http body (model)
|
850
|
+
post_body = @api_client.object_to_http_body(property)
|
851
|
+
|
852
|
+
|
853
|
+
auth_names = []
|
854
|
+
result = @api_client.call_api(:PUT, path,
|
855
|
+
:header_params => header_params,
|
856
|
+
:query_params => query_params,
|
857
|
+
:form_params => form_params,
|
858
|
+
:body => post_body,
|
859
|
+
:auth_names => auth_names,
|
860
|
+
:return_type => 'DocumentPropertyResponse')
|
861
|
+
if Configuration.debugging
|
862
|
+
Configuration.logger.debug "API called: PdfApi#put_set_property. Result: #{result.inspect}"
|
863
|
+
end
|
864
|
+
return result
|
865
|
+
end
|
866
|
+
|
867
|
+
# Delete document property.
|
868
|
+
#
|
869
|
+
# @param name
|
870
|
+
# @param property_name
|
871
|
+
# @param [Hash] opts the optional parameters
|
872
|
+
# @option opts [String] :storage
|
873
|
+
# @option opts [String] :folder
|
874
|
+
# @return [BaseResponse]
|
875
|
+
def delete_property(name, property_name, opts = {})
|
876
|
+
if Configuration.debugging
|
877
|
+
Configuration.logger.debug "Calling API: PdfApi#delete_property ..."
|
878
|
+
end
|
879
|
+
|
880
|
+
# verify the required parameter 'name' is set
|
881
|
+
fail "Missing the required parameter 'name' when calling delete_property" if name.nil?
|
882
|
+
|
883
|
+
# verify the required parameter 'property_name' is set
|
884
|
+
fail "Missing the required parameter 'property_name' when calling delete_property" if property_name.nil?
|
885
|
+
|
886
|
+
# resource path
|
887
|
+
path = "/pdf/{name}/documentproperties/{propertyName}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'propertyName' + '}', property_name.to_s)
|
888
|
+
|
889
|
+
# query parameters
|
890
|
+
query_params = {}
|
891
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
892
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
893
|
+
|
894
|
+
# header parameters
|
895
|
+
header_params = {}
|
896
|
+
|
897
|
+
# HTTP header 'Accept' (if needed)
|
898
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
899
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
900
|
+
|
901
|
+
# HTTP header 'Content-Type'
|
902
|
+
_header_content_type = []
|
903
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
904
|
+
|
905
|
+
# form parameters
|
906
|
+
form_params = {}
|
907
|
+
|
908
|
+
# http body (model)
|
909
|
+
post_body = nil
|
910
|
+
|
911
|
+
|
912
|
+
auth_names = []
|
913
|
+
result = @api_client.call_api(:DELETE, path,
|
914
|
+
:header_params => header_params,
|
915
|
+
:query_params => query_params,
|
916
|
+
:form_params => form_params,
|
917
|
+
:body => post_body,
|
918
|
+
:auth_names => auth_names,
|
919
|
+
:return_type => 'BaseResponse')
|
920
|
+
if Configuration.debugging
|
921
|
+
Configuration.logger.debug "API called: PdfApi#delete_property. Result: #{result.inspect}"
|
922
|
+
end
|
923
|
+
return result
|
924
|
+
end
|
925
|
+
|
926
|
+
# Get document fields.
|
927
|
+
#
|
928
|
+
# @param name The document name.
|
929
|
+
# @param [Hash] opts the optional parameters
|
930
|
+
# @option opts [String] :storage The document storage.
|
931
|
+
# @option opts [String] :folder The document folder.
|
932
|
+
# @return [FieldsResponse]
|
933
|
+
def get_fields(name, opts = {})
|
934
|
+
if Configuration.debugging
|
935
|
+
Configuration.logger.debug "Calling API: PdfApi#get_fields ..."
|
936
|
+
end
|
937
|
+
|
938
|
+
# verify the required parameter 'name' is set
|
939
|
+
fail "Missing the required parameter 'name' when calling get_fields" if name.nil?
|
940
|
+
|
941
|
+
# resource path
|
942
|
+
path = "/pdf/{name}/fields".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
943
|
+
|
944
|
+
# query parameters
|
945
|
+
query_params = {}
|
946
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
947
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
948
|
+
|
949
|
+
# header parameters
|
950
|
+
header_params = {}
|
951
|
+
|
952
|
+
# HTTP header 'Accept' (if needed)
|
953
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
954
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
955
|
+
|
956
|
+
# HTTP header 'Content-Type'
|
957
|
+
_header_content_type = []
|
958
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
959
|
+
|
960
|
+
# form parameters
|
961
|
+
form_params = {}
|
962
|
+
|
963
|
+
# http body (model)
|
964
|
+
post_body = nil
|
965
|
+
|
966
|
+
|
967
|
+
auth_names = []
|
968
|
+
result = @api_client.call_api(:GET, path,
|
969
|
+
:header_params => header_params,
|
970
|
+
:query_params => query_params,
|
971
|
+
:form_params => form_params,
|
972
|
+
:body => post_body,
|
973
|
+
:auth_names => auth_names,
|
974
|
+
:return_type => 'FieldsResponse')
|
975
|
+
if Configuration.debugging
|
976
|
+
Configuration.logger.debug "API called: PdfApi#get_fields. Result: #{result.inspect}"
|
977
|
+
end
|
978
|
+
return result
|
979
|
+
end
|
980
|
+
|
981
|
+
# Update fields.
|
982
|
+
#
|
983
|
+
# @param name The document name.
|
984
|
+
# @param fields {Fields} with the fields data.
|
985
|
+
# @param [Hash] opts the optional parameters
|
986
|
+
# @option opts [String] :storage The document storage.
|
987
|
+
# @option opts [String] :folder The document folder.
|
988
|
+
# @return [FieldsResponse]
|
989
|
+
def put_update_fields(name, fields, opts = {})
|
990
|
+
if Configuration.debugging
|
991
|
+
Configuration.logger.debug "Calling API: PdfApi#put_update_fields ..."
|
992
|
+
end
|
993
|
+
|
994
|
+
# verify the required parameter 'name' is set
|
995
|
+
fail "Missing the required parameter 'name' when calling put_update_fields" if name.nil?
|
996
|
+
|
997
|
+
# verify the required parameter 'fields' is set
|
998
|
+
fail "Missing the required parameter 'fields' when calling put_update_fields" if fields.nil?
|
999
|
+
|
1000
|
+
# resource path
|
1001
|
+
path = "/pdf/{name}/fields".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
1002
|
+
|
1003
|
+
# query parameters
|
1004
|
+
query_params = {}
|
1005
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1006
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1007
|
+
|
1008
|
+
# header parameters
|
1009
|
+
header_params = {}
|
1010
|
+
|
1011
|
+
# HTTP header 'Accept' (if needed)
|
1012
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1013
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1014
|
+
|
1015
|
+
# HTTP header 'Content-Type'
|
1016
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
1017
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1018
|
+
|
1019
|
+
# form parameters
|
1020
|
+
form_params = {}
|
1021
|
+
|
1022
|
+
# http body (model)
|
1023
|
+
post_body = @api_client.object_to_http_body(fields)
|
1024
|
+
|
1025
|
+
|
1026
|
+
auth_names = []
|
1027
|
+
result = @api_client.call_api(:PUT, path,
|
1028
|
+
:header_params => header_params,
|
1029
|
+
:query_params => query_params,
|
1030
|
+
:form_params => form_params,
|
1031
|
+
:body => post_body,
|
1032
|
+
:auth_names => auth_names,
|
1033
|
+
:return_type => 'FieldsResponse')
|
1034
|
+
if Configuration.debugging
|
1035
|
+
Configuration.logger.debug "API called: PdfApi#put_update_fields. Result: #{result.inspect}"
|
1036
|
+
end
|
1037
|
+
return result
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
# Create field.
|
1041
|
+
#
|
1042
|
+
# @param name The document name.
|
1043
|
+
# @param page Document page number.
|
1044
|
+
# @param field {Field} with the field data.
|
1045
|
+
# @param [Hash] opts the optional parameters
|
1046
|
+
# @option opts [String] :storage The document storage.
|
1047
|
+
# @option opts [String] :folder The document folder.
|
1048
|
+
# @return [BaseResponse]
|
1049
|
+
def post_create_field(name, page, field, opts = {})
|
1050
|
+
if Configuration.debugging
|
1051
|
+
Configuration.logger.debug "Calling API: PdfApi#post_create_field ..."
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
# verify the required parameter 'name' is set
|
1055
|
+
fail "Missing the required parameter 'name' when calling post_create_field" if name.nil?
|
1056
|
+
|
1057
|
+
# verify the required parameter 'page' is set
|
1058
|
+
fail "Missing the required parameter 'page' when calling post_create_field" if page.nil?
|
1059
|
+
|
1060
|
+
# verify the required parameter 'field' is set
|
1061
|
+
fail "Missing the required parameter 'field' when calling post_create_field" if field.nil?
|
1062
|
+
|
1063
|
+
# resource path
|
1064
|
+
path = "/pdf/{name}/fields".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
1065
|
+
|
1066
|
+
# query parameters
|
1067
|
+
query_params = {}
|
1068
|
+
query_params[:'page'] = page
|
1069
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1070
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1071
|
+
|
1072
|
+
# header parameters
|
1073
|
+
header_params = {}
|
1074
|
+
|
1075
|
+
# HTTP header 'Accept' (if needed)
|
1076
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1077
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1078
|
+
|
1079
|
+
# HTTP header 'Content-Type'
|
1080
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
1081
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1082
|
+
|
1083
|
+
# form parameters
|
1084
|
+
form_params = {}
|
1085
|
+
|
1086
|
+
# http body (model)
|
1087
|
+
post_body = @api_client.object_to_http_body(field)
|
1088
|
+
|
1089
|
+
|
1090
|
+
auth_names = []
|
1091
|
+
result = @api_client.call_api(:POST, path,
|
1092
|
+
:header_params => header_params,
|
1093
|
+
:query_params => query_params,
|
1094
|
+
:form_params => form_params,
|
1095
|
+
:body => post_body,
|
1096
|
+
:auth_names => auth_names,
|
1097
|
+
:return_type => 'BaseResponse')
|
1098
|
+
if Configuration.debugging
|
1099
|
+
Configuration.logger.debug "API called: PdfApi#post_create_field. Result: #{result.inspect}"
|
1100
|
+
end
|
1101
|
+
return result
|
1102
|
+
end
|
1103
|
+
|
1104
|
+
# Get document field by name.
|
1105
|
+
#
|
1106
|
+
# @param name The document name.
|
1107
|
+
# @param field_name The field name/
|
1108
|
+
# @param [Hash] opts the optional parameters
|
1109
|
+
# @option opts [String] :storage The document storage.
|
1110
|
+
# @option opts [String] :folder The document folder.
|
1111
|
+
# @return [FieldResponse]
|
1112
|
+
def get_field(name, field_name, opts = {})
|
1113
|
+
if Configuration.debugging
|
1114
|
+
Configuration.logger.debug "Calling API: PdfApi#get_field ..."
|
1115
|
+
end
|
1116
|
+
|
1117
|
+
# verify the required parameter 'name' is set
|
1118
|
+
fail "Missing the required parameter 'name' when calling get_field" if name.nil?
|
1119
|
+
|
1120
|
+
# verify the required parameter 'field_name' is set
|
1121
|
+
fail "Missing the required parameter 'field_name' when calling get_field" if field_name.nil?
|
1122
|
+
|
1123
|
+
# resource path
|
1124
|
+
path = "/pdf/{name}/fields/{fieldName}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'fieldName' + '}', field_name.to_s)
|
1125
|
+
|
1126
|
+
# query parameters
|
1127
|
+
query_params = {}
|
1128
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1129
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1130
|
+
|
1131
|
+
# header parameters
|
1132
|
+
header_params = {}
|
1133
|
+
|
1134
|
+
# HTTP header 'Accept' (if needed)
|
1135
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1136
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1137
|
+
|
1138
|
+
# HTTP header 'Content-Type'
|
1139
|
+
_header_content_type = []
|
1140
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1141
|
+
|
1142
|
+
# form parameters
|
1143
|
+
form_params = {}
|
1144
|
+
|
1145
|
+
# http body (model)
|
1146
|
+
post_body = nil
|
1147
|
+
|
1148
|
+
|
1149
|
+
auth_names = []
|
1150
|
+
result = @api_client.call_api(:GET, path,
|
1151
|
+
:header_params => header_params,
|
1152
|
+
:query_params => query_params,
|
1153
|
+
:form_params => form_params,
|
1154
|
+
:body => post_body,
|
1155
|
+
:auth_names => auth_names,
|
1156
|
+
:return_type => 'FieldResponse')
|
1157
|
+
if Configuration.debugging
|
1158
|
+
Configuration.logger.debug "API called: PdfApi#get_field. Result: #{result.inspect}"
|
1159
|
+
end
|
1160
|
+
return result
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
# Update field.
|
1164
|
+
#
|
1165
|
+
# @param name The document name.
|
1166
|
+
# @param field {Field} with the field data.
|
1167
|
+
# @param field_name
|
1168
|
+
# @param [Hash] opts the optional parameters
|
1169
|
+
# @option opts [String] :storage The document storage.
|
1170
|
+
# @option opts [String] :folder The document folder.
|
1171
|
+
# @return [FieldResponse]
|
1172
|
+
def put_update_field(name, field, field_name, opts = {})
|
1173
|
+
if Configuration.debugging
|
1174
|
+
Configuration.logger.debug "Calling API: PdfApi#put_update_field ..."
|
1175
|
+
end
|
1176
|
+
|
1177
|
+
# verify the required parameter 'name' is set
|
1178
|
+
fail "Missing the required parameter 'name' when calling put_update_field" if name.nil?
|
1179
|
+
|
1180
|
+
# verify the required parameter 'field' is set
|
1181
|
+
fail "Missing the required parameter 'field' when calling put_update_field" if field.nil?
|
1182
|
+
|
1183
|
+
# verify the required parameter 'field_name' is set
|
1184
|
+
fail "Missing the required parameter 'field_name' when calling put_update_field" if field_name.nil?
|
1185
|
+
|
1186
|
+
# resource path
|
1187
|
+
path = "/pdf/{name}/fields/{fieldName}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'fieldName' + '}', field_name.to_s)
|
1188
|
+
|
1189
|
+
# query parameters
|
1190
|
+
query_params = {}
|
1191
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1192
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1193
|
+
|
1194
|
+
# header parameters
|
1195
|
+
header_params = {}
|
1196
|
+
|
1197
|
+
# HTTP header 'Accept' (if needed)
|
1198
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1199
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1200
|
+
|
1201
|
+
# HTTP header 'Content-Type'
|
1202
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
1203
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1204
|
+
|
1205
|
+
# form parameters
|
1206
|
+
form_params = {}
|
1207
|
+
|
1208
|
+
# http body (model)
|
1209
|
+
post_body = @api_client.object_to_http_body(field)
|
1210
|
+
|
1211
|
+
|
1212
|
+
auth_names = []
|
1213
|
+
result = @api_client.call_api(:PUT, path,
|
1214
|
+
:header_params => header_params,
|
1215
|
+
:query_params => query_params,
|
1216
|
+
:form_params => form_params,
|
1217
|
+
:body => post_body,
|
1218
|
+
:auth_names => auth_names,
|
1219
|
+
:return_type => 'FieldResponse')
|
1220
|
+
if Configuration.debugging
|
1221
|
+
Configuration.logger.debug "API called: PdfApi#put_update_field. Result: #{result.inspect}"
|
1222
|
+
end
|
1223
|
+
return result
|
1224
|
+
end
|
1225
|
+
|
1226
|
+
# Merge a list of documents.
|
1227
|
+
#
|
1228
|
+
# @param name Resulting documen name.
|
1229
|
+
# @param merge_documents {MergeDocuments} with a list of documents.
|
1230
|
+
# @param [Hash] opts the optional parameters
|
1231
|
+
# @option opts [String] :storage Resulting document storage.
|
1232
|
+
# @option opts [String] :folder Resulting document folder.
|
1233
|
+
# @return [DocumentResponse]
|
1234
|
+
def put_merge_documents(name, merge_documents, opts = {})
|
1235
|
+
if Configuration.debugging
|
1236
|
+
Configuration.logger.debug "Calling API: PdfApi#put_merge_documents ..."
|
1237
|
+
end
|
1238
|
+
|
1239
|
+
# verify the required parameter 'name' is set
|
1240
|
+
fail "Missing the required parameter 'name' when calling put_merge_documents" if name.nil?
|
1241
|
+
|
1242
|
+
# verify the required parameter 'merge_documents' is set
|
1243
|
+
fail "Missing the required parameter 'merge_documents' when calling put_merge_documents" if merge_documents.nil?
|
1244
|
+
|
1245
|
+
# resource path
|
1246
|
+
path = "/pdf/{name}/merge".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
1247
|
+
|
1248
|
+
# query parameters
|
1249
|
+
query_params = {}
|
1250
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1251
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1252
|
+
|
1253
|
+
# header parameters
|
1254
|
+
header_params = {}
|
1255
|
+
|
1256
|
+
# HTTP header 'Accept' (if needed)
|
1257
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1258
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1259
|
+
|
1260
|
+
# HTTP header 'Content-Type'
|
1261
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
1262
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1263
|
+
|
1264
|
+
# form parameters
|
1265
|
+
form_params = {}
|
1266
|
+
|
1267
|
+
# http body (model)
|
1268
|
+
post_body = @api_client.object_to_http_body(merge_documents)
|
1269
|
+
|
1270
|
+
|
1271
|
+
auth_names = []
|
1272
|
+
result = @api_client.call_api(:PUT, path,
|
1273
|
+
:header_params => header_params,
|
1274
|
+
:query_params => query_params,
|
1275
|
+
:form_params => form_params,
|
1276
|
+
:body => post_body,
|
1277
|
+
:auth_names => auth_names,
|
1278
|
+
:return_type => 'DocumentResponse')
|
1279
|
+
if Configuration.debugging
|
1280
|
+
Configuration.logger.debug "API called: PdfApi#put_merge_documents. Result: #{result.inspect}"
|
1281
|
+
end
|
1282
|
+
return result
|
1283
|
+
end
|
1284
|
+
|
1285
|
+
# Read document pages info.
|
1286
|
+
#
|
1287
|
+
# @param name The document name.
|
1288
|
+
# @param [Hash] opts the optional parameters
|
1289
|
+
# @option opts [String] :storage The document storage.
|
1290
|
+
# @option opts [String] :folder The document folder.
|
1291
|
+
# @return [DocumentPagesResponse]
|
1292
|
+
def get_pages(name, opts = {})
|
1293
|
+
if Configuration.debugging
|
1294
|
+
Configuration.logger.debug "Calling API: PdfApi#get_pages ..."
|
1295
|
+
end
|
1296
|
+
|
1297
|
+
# verify the required parameter 'name' is set
|
1298
|
+
fail "Missing the required parameter 'name' when calling get_pages" if name.nil?
|
1299
|
+
|
1300
|
+
# resource path
|
1301
|
+
path = "/pdf/{name}/pages".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
1302
|
+
|
1303
|
+
# query parameters
|
1304
|
+
query_params = {}
|
1305
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1306
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1307
|
+
|
1308
|
+
# header parameters
|
1309
|
+
header_params = {}
|
1310
|
+
|
1311
|
+
# HTTP header 'Accept' (if needed)
|
1312
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1313
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1314
|
+
|
1315
|
+
# HTTP header 'Content-Type'
|
1316
|
+
_header_content_type = []
|
1317
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1318
|
+
|
1319
|
+
# form parameters
|
1320
|
+
form_params = {}
|
1321
|
+
|
1322
|
+
# http body (model)
|
1323
|
+
post_body = nil
|
1324
|
+
|
1325
|
+
|
1326
|
+
auth_names = []
|
1327
|
+
result = @api_client.call_api(:GET, path,
|
1328
|
+
:header_params => header_params,
|
1329
|
+
:query_params => query_params,
|
1330
|
+
:form_params => form_params,
|
1331
|
+
:body => post_body,
|
1332
|
+
:auth_names => auth_names,
|
1333
|
+
:return_type => 'DocumentPagesResponse')
|
1334
|
+
if Configuration.debugging
|
1335
|
+
Configuration.logger.debug "API called: PdfApi#get_pages. Result: #{result.inspect}"
|
1336
|
+
end
|
1337
|
+
return result
|
1338
|
+
end
|
1339
|
+
|
1340
|
+
# Add new page to end of the document.
|
1341
|
+
#
|
1342
|
+
# @param name The document name.
|
1343
|
+
# @param [Hash] opts the optional parameters
|
1344
|
+
# @option opts [String] :storage The document storage.
|
1345
|
+
# @option opts [String] :folder The document folder.
|
1346
|
+
# @return [DocumentPagesResponse]
|
1347
|
+
def put_add_new_page(name, opts = {})
|
1348
|
+
if Configuration.debugging
|
1349
|
+
Configuration.logger.debug "Calling API: PdfApi#put_add_new_page ..."
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
# verify the required parameter 'name' is set
|
1353
|
+
fail "Missing the required parameter 'name' when calling put_add_new_page" if name.nil?
|
1354
|
+
|
1355
|
+
# resource path
|
1356
|
+
path = "/pdf/{name}/pages".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
1357
|
+
|
1358
|
+
# query parameters
|
1359
|
+
query_params = {}
|
1360
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1361
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1362
|
+
|
1363
|
+
# header parameters
|
1364
|
+
header_params = {}
|
1365
|
+
|
1366
|
+
# HTTP header 'Accept' (if needed)
|
1367
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1368
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1369
|
+
|
1370
|
+
# HTTP header 'Content-Type'
|
1371
|
+
_header_content_type = []
|
1372
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1373
|
+
|
1374
|
+
# form parameters
|
1375
|
+
form_params = {}
|
1376
|
+
|
1377
|
+
# http body (model)
|
1378
|
+
post_body = nil
|
1379
|
+
|
1380
|
+
|
1381
|
+
auth_names = []
|
1382
|
+
result = @api_client.call_api(:PUT, path,
|
1383
|
+
:header_params => header_params,
|
1384
|
+
:query_params => query_params,
|
1385
|
+
:form_params => form_params,
|
1386
|
+
:body => post_body,
|
1387
|
+
:auth_names => auth_names,
|
1388
|
+
:return_type => 'DocumentPagesResponse')
|
1389
|
+
if Configuration.debugging
|
1390
|
+
Configuration.logger.debug "API called: PdfApi#put_add_new_page. Result: #{result.inspect}"
|
1391
|
+
end
|
1392
|
+
return result
|
1393
|
+
end
|
1394
|
+
|
1395
|
+
# Get number of words per document page.
|
1396
|
+
#
|
1397
|
+
# @param name The document name.
|
1398
|
+
# @param [Hash] opts the optional parameters
|
1399
|
+
# @option opts [String] :storage The document storage.
|
1400
|
+
# @option opts [String] :folder The document folder.
|
1401
|
+
# @return [WordCountResponse]
|
1402
|
+
def get_words_per_page(name, opts = {})
|
1403
|
+
if Configuration.debugging
|
1404
|
+
Configuration.logger.debug "Calling API: PdfApi#get_words_per_page ..."
|
1405
|
+
end
|
1406
|
+
|
1407
|
+
# verify the required parameter 'name' is set
|
1408
|
+
fail "Missing the required parameter 'name' when calling get_words_per_page" if name.nil?
|
1409
|
+
|
1410
|
+
# resource path
|
1411
|
+
path = "/pdf/{name}/pages/wordCount".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
1412
|
+
|
1413
|
+
# query parameters
|
1414
|
+
query_params = {}
|
1415
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1416
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1417
|
+
|
1418
|
+
# header parameters
|
1419
|
+
header_params = {}
|
1420
|
+
|
1421
|
+
# HTTP header 'Accept' (if needed)
|
1422
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1423
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1424
|
+
|
1425
|
+
# HTTP header 'Content-Type'
|
1426
|
+
_header_content_type = []
|
1427
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1428
|
+
|
1429
|
+
# form parameters
|
1430
|
+
form_params = {}
|
1431
|
+
|
1432
|
+
# http body (model)
|
1433
|
+
post_body = nil
|
1434
|
+
|
1435
|
+
|
1436
|
+
auth_names = []
|
1437
|
+
result = @api_client.call_api(:GET, path,
|
1438
|
+
:header_params => header_params,
|
1439
|
+
:query_params => query_params,
|
1440
|
+
:form_params => form_params,
|
1441
|
+
:body => post_body,
|
1442
|
+
:auth_names => auth_names,
|
1443
|
+
:return_type => 'WordCountResponse')
|
1444
|
+
if Configuration.debugging
|
1445
|
+
Configuration.logger.debug "API called: PdfApi#get_words_per_page. Result: #{result.inspect}"
|
1446
|
+
end
|
1447
|
+
return result
|
1448
|
+
end
|
1449
|
+
|
1450
|
+
# Get page in specified format.
|
1451
|
+
#
|
1452
|
+
# @param name The document name.
|
1453
|
+
# @param page_number The page number.
|
1454
|
+
# @param format The page format.
|
1455
|
+
# @param [Hash] opts the optional parameters
|
1456
|
+
# @option opts [Integer] :width The page width.
|
1457
|
+
# @option opts [Integer] :height The page height.
|
1458
|
+
# @option opts [String] :storage The document storage.
|
1459
|
+
# @option opts [String] :folder The document folder.
|
1460
|
+
# @return [File]
|
1461
|
+
def get_page_with_format(name, page_number, format, opts = {})
|
1462
|
+
if Configuration.debugging
|
1463
|
+
Configuration.logger.debug "Calling API: PdfApi#get_page_with_format ..."
|
1464
|
+
end
|
1465
|
+
|
1466
|
+
# verify the required parameter 'name' is set
|
1467
|
+
fail "Missing the required parameter 'name' when calling get_page_with_format" if name.nil?
|
1468
|
+
|
1469
|
+
# verify the required parameter 'page_number' is set
|
1470
|
+
fail "Missing the required parameter 'page_number' when calling get_page_with_format" if page_number.nil?
|
1471
|
+
|
1472
|
+
# verify the required parameter 'format' is set
|
1473
|
+
fail "Missing the required parameter 'format' when calling get_page_with_format" if format.nil?
|
1474
|
+
|
1475
|
+
# resource path
|
1476
|
+
path = "/pdf/{name}/pages/{pageNumber}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
1477
|
+
|
1478
|
+
# query parameters
|
1479
|
+
query_params = {}
|
1480
|
+
query_params[:'format'] = format
|
1481
|
+
query_params[:'width'] = opts[:'width'] if opts[:'width']
|
1482
|
+
query_params[:'height'] = opts[:'height'] if opts[:'height']
|
1483
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1484
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1485
|
+
|
1486
|
+
# header parameters
|
1487
|
+
header_params = {}
|
1488
|
+
|
1489
|
+
# HTTP header 'Accept' (if needed)
|
1490
|
+
_header_accept = []
|
1491
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1492
|
+
|
1493
|
+
# HTTP header 'Content-Type'
|
1494
|
+
_header_content_type = ['application/json']
|
1495
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1496
|
+
|
1497
|
+
# form parameters
|
1498
|
+
form_params = {}
|
1499
|
+
|
1500
|
+
# http body (model)
|
1501
|
+
post_body = nil
|
1502
|
+
|
1503
|
+
|
1504
|
+
auth_names = []
|
1505
|
+
result = @api_client.call_api(:GET, path,
|
1506
|
+
:header_params => header_params,
|
1507
|
+
:query_params => query_params,
|
1508
|
+
:form_params => form_params,
|
1509
|
+
:body => post_body,
|
1510
|
+
:auth_names => auth_names,
|
1511
|
+
:return_type => 'File')
|
1512
|
+
if Configuration.debugging
|
1513
|
+
Configuration.logger.debug "API called: PdfApi#get_page_with_format. Result: #{result.inspect}"
|
1514
|
+
end
|
1515
|
+
return result
|
1516
|
+
end
|
1517
|
+
|
1518
|
+
# Delete document page by its number.
|
1519
|
+
#
|
1520
|
+
# @param name The document name.
|
1521
|
+
# @param page_number The page number.
|
1522
|
+
# @param [Hash] opts the optional parameters
|
1523
|
+
# @option opts [String] :storage The document storage.
|
1524
|
+
# @option opts [String] :folder The document folder.
|
1525
|
+
# @return [BaseResponse]
|
1526
|
+
def delete_page(name, page_number, opts = {})
|
1527
|
+
if Configuration.debugging
|
1528
|
+
Configuration.logger.debug "Calling API: PdfApi#delete_page ..."
|
1529
|
+
end
|
1530
|
+
|
1531
|
+
# verify the required parameter 'name' is set
|
1532
|
+
fail "Missing the required parameter 'name' when calling delete_page" if name.nil?
|
1533
|
+
|
1534
|
+
# verify the required parameter 'page_number' is set
|
1535
|
+
fail "Missing the required parameter 'page_number' when calling delete_page" if page_number.nil?
|
1536
|
+
|
1537
|
+
# resource path
|
1538
|
+
path = "/pdf/{name}/pages/{pageNumber}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
1539
|
+
|
1540
|
+
# query parameters
|
1541
|
+
query_params = {}
|
1542
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1543
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1544
|
+
|
1545
|
+
# header parameters
|
1546
|
+
header_params = {}
|
1547
|
+
|
1548
|
+
# HTTP header 'Accept' (if needed)
|
1549
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1550
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1551
|
+
|
1552
|
+
# HTTP header 'Content-Type'
|
1553
|
+
_header_content_type = []
|
1554
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1555
|
+
|
1556
|
+
# form parameters
|
1557
|
+
form_params = {}
|
1558
|
+
|
1559
|
+
# http body (model)
|
1560
|
+
post_body = nil
|
1561
|
+
|
1562
|
+
|
1563
|
+
auth_names = []
|
1564
|
+
result = @api_client.call_api(:DELETE, path,
|
1565
|
+
:header_params => header_params,
|
1566
|
+
:query_params => query_params,
|
1567
|
+
:form_params => form_params,
|
1568
|
+
:body => post_body,
|
1569
|
+
:auth_names => auth_names,
|
1570
|
+
:return_type => 'BaseResponse')
|
1571
|
+
if Configuration.debugging
|
1572
|
+
Configuration.logger.debug "API called: PdfApi#delete_page. Result: #{result.inspect}"
|
1573
|
+
end
|
1574
|
+
return result
|
1575
|
+
end
|
1576
|
+
|
1577
|
+
# Read documant page annotations.
|
1578
|
+
#
|
1579
|
+
# @param name The document name.
|
1580
|
+
# @param page_number The page number.
|
1581
|
+
# @param [Hash] opts the optional parameters
|
1582
|
+
# @option opts [String] :storage The document storage.
|
1583
|
+
# @option opts [String] :folder The document folder.
|
1584
|
+
# @return [AnnotationsResponse]
|
1585
|
+
def get_page_annotations(name, page_number, opts = {})
|
1586
|
+
if Configuration.debugging
|
1587
|
+
Configuration.logger.debug "Calling API: PdfApi#get_page_annotations ..."
|
1588
|
+
end
|
1589
|
+
|
1590
|
+
# verify the required parameter 'name' is set
|
1591
|
+
fail "Missing the required parameter 'name' when calling get_page_annotations" if name.nil?
|
1592
|
+
|
1593
|
+
# verify the required parameter 'page_number' is set
|
1594
|
+
fail "Missing the required parameter 'page_number' when calling get_page_annotations" if page_number.nil?
|
1595
|
+
|
1596
|
+
# resource path
|
1597
|
+
path = "/pdf/{name}/pages/{pageNumber}/annotations".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
1598
|
+
|
1599
|
+
# query parameters
|
1600
|
+
query_params = {}
|
1601
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1602
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1603
|
+
|
1604
|
+
# header parameters
|
1605
|
+
header_params = {}
|
1606
|
+
|
1607
|
+
# HTTP header 'Accept' (if needed)
|
1608
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1609
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1610
|
+
|
1611
|
+
# HTTP header 'Content-Type'
|
1612
|
+
_header_content_type = []
|
1613
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1614
|
+
|
1615
|
+
# form parameters
|
1616
|
+
form_params = {}
|
1617
|
+
|
1618
|
+
# http body (model)
|
1619
|
+
post_body = nil
|
1620
|
+
|
1621
|
+
|
1622
|
+
auth_names = []
|
1623
|
+
result = @api_client.call_api(:GET, path,
|
1624
|
+
:header_params => header_params,
|
1625
|
+
:query_params => query_params,
|
1626
|
+
:form_params => form_params,
|
1627
|
+
:body => post_body,
|
1628
|
+
:auth_names => auth_names,
|
1629
|
+
:return_type => 'AnnotationsResponse')
|
1630
|
+
if Configuration.debugging
|
1631
|
+
Configuration.logger.debug "API called: PdfApi#get_page_annotations. Result: #{result.inspect}"
|
1632
|
+
end
|
1633
|
+
return result
|
1634
|
+
end
|
1635
|
+
|
1636
|
+
# Read document page annotation by its number.
|
1637
|
+
#
|
1638
|
+
# @param name The document name.
|
1639
|
+
# @param page_number The page number.
|
1640
|
+
# @param annotation_number The annotation number.
|
1641
|
+
# @param [Hash] opts the optional parameters
|
1642
|
+
# @option opts [String] :storage The document storage.
|
1643
|
+
# @option opts [String] :folder The document folder.
|
1644
|
+
# @return [AnnotationResponse]
|
1645
|
+
def get_page_annotation(name, page_number, annotation_number, opts = {})
|
1646
|
+
if Configuration.debugging
|
1647
|
+
Configuration.logger.debug "Calling API: PdfApi#get_page_annotation ..."
|
1648
|
+
end
|
1649
|
+
|
1650
|
+
# verify the required parameter 'name' is set
|
1651
|
+
fail "Missing the required parameter 'name' when calling get_page_annotation" if name.nil?
|
1652
|
+
|
1653
|
+
# verify the required parameter 'page_number' is set
|
1654
|
+
fail "Missing the required parameter 'page_number' when calling get_page_annotation" if page_number.nil?
|
1655
|
+
|
1656
|
+
# verify the required parameter 'annotation_number' is set
|
1657
|
+
fail "Missing the required parameter 'annotation_number' when calling get_page_annotation" if annotation_number.nil?
|
1658
|
+
|
1659
|
+
# resource path
|
1660
|
+
path = "/pdf/{name}/pages/{pageNumber}/annotations/{annotationNumber}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'annotationNumber' + '}', annotation_number.to_s)
|
1661
|
+
|
1662
|
+
# query parameters
|
1663
|
+
query_params = {}
|
1664
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1665
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1666
|
+
|
1667
|
+
# header parameters
|
1668
|
+
header_params = {}
|
1669
|
+
|
1670
|
+
# HTTP header 'Accept' (if needed)
|
1671
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1672
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1673
|
+
|
1674
|
+
# HTTP header 'Content-Type'
|
1675
|
+
_header_content_type = []
|
1676
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1677
|
+
|
1678
|
+
# form parameters
|
1679
|
+
form_params = {}
|
1680
|
+
|
1681
|
+
# http body (model)
|
1682
|
+
post_body = nil
|
1683
|
+
|
1684
|
+
|
1685
|
+
auth_names = []
|
1686
|
+
result = @api_client.call_api(:GET, path,
|
1687
|
+
:header_params => header_params,
|
1688
|
+
:query_params => query_params,
|
1689
|
+
:form_params => form_params,
|
1690
|
+
:body => post_body,
|
1691
|
+
:auth_names => auth_names,
|
1692
|
+
:return_type => 'AnnotationResponse')
|
1693
|
+
if Configuration.debugging
|
1694
|
+
Configuration.logger.debug "API called: PdfApi#get_page_annotation. Result: #{result.inspect}"
|
1695
|
+
end
|
1696
|
+
return result
|
1697
|
+
end
|
1698
|
+
|
1699
|
+
# Read page fragments.
|
1700
|
+
#
|
1701
|
+
# @param name
|
1702
|
+
# @param page_number
|
1703
|
+
# @param [Hash] opts the optional parameters
|
1704
|
+
# @option opts [String] :with_empty
|
1705
|
+
# @option opts [String] :storage
|
1706
|
+
# @option opts [String] :folder
|
1707
|
+
# @return [TextItemsResponse]
|
1708
|
+
def get_fragments(name, page_number, opts = {})
|
1709
|
+
if Configuration.debugging
|
1710
|
+
Configuration.logger.debug "Calling API: PdfApi#get_fragments ..."
|
1711
|
+
end
|
1712
|
+
|
1713
|
+
# verify the required parameter 'name' is set
|
1714
|
+
fail "Missing the required parameter 'name' when calling get_fragments" if name.nil?
|
1715
|
+
|
1716
|
+
# verify the required parameter 'page_number' is set
|
1717
|
+
fail "Missing the required parameter 'page_number' when calling get_fragments" if page_number.nil?
|
1718
|
+
|
1719
|
+
# resource path
|
1720
|
+
path = "/pdf/{name}/pages/{pageNumber}/fragments".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
1721
|
+
|
1722
|
+
# query parameters
|
1723
|
+
query_params = {}
|
1724
|
+
query_params[:'withEmpty'] = opts[:'with_empty'] if opts[:'with_empty']
|
1725
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1726
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1727
|
+
|
1728
|
+
# header parameters
|
1729
|
+
header_params = {}
|
1730
|
+
|
1731
|
+
# HTTP header 'Accept' (if needed)
|
1732
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1733
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1734
|
+
|
1735
|
+
# HTTP header 'Content-Type'
|
1736
|
+
_header_content_type = []
|
1737
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1738
|
+
|
1739
|
+
# form parameters
|
1740
|
+
form_params = {}
|
1741
|
+
|
1742
|
+
# http body (model)
|
1743
|
+
post_body = nil
|
1744
|
+
|
1745
|
+
|
1746
|
+
auth_names = []
|
1747
|
+
result = @api_client.call_api(:GET, path,
|
1748
|
+
:header_params => header_params,
|
1749
|
+
:query_params => query_params,
|
1750
|
+
:form_params => form_params,
|
1751
|
+
:body => post_body,
|
1752
|
+
:auth_names => auth_names,
|
1753
|
+
:return_type => 'TextItemsResponse')
|
1754
|
+
if Configuration.debugging
|
1755
|
+
Configuration.logger.debug "API called: PdfApi#get_fragments. Result: #{result.inspect}"
|
1756
|
+
end
|
1757
|
+
return result
|
1758
|
+
end
|
1759
|
+
|
1760
|
+
# Read page fragment.
|
1761
|
+
#
|
1762
|
+
# @param name
|
1763
|
+
# @param page_number
|
1764
|
+
# @param fragment_number
|
1765
|
+
# @param [Hash] opts the optional parameters
|
1766
|
+
# @option opts [String] :with_empty
|
1767
|
+
# @option opts [String] :storage
|
1768
|
+
# @option opts [String] :folder
|
1769
|
+
# @return [TextItemsResponse]
|
1770
|
+
def get_fragment(name, page_number, fragment_number, opts = {})
|
1771
|
+
if Configuration.debugging
|
1772
|
+
Configuration.logger.debug "Calling API: PdfApi#get_fragment ..."
|
1773
|
+
end
|
1774
|
+
|
1775
|
+
# verify the required parameter 'name' is set
|
1776
|
+
fail "Missing the required parameter 'name' when calling get_fragment" if name.nil?
|
1777
|
+
|
1778
|
+
# verify the required parameter 'page_number' is set
|
1779
|
+
fail "Missing the required parameter 'page_number' when calling get_fragment" if page_number.nil?
|
1780
|
+
|
1781
|
+
# verify the required parameter 'fragment_number' is set
|
1782
|
+
fail "Missing the required parameter 'fragment_number' when calling get_fragment" if fragment_number.nil?
|
1783
|
+
|
1784
|
+
# resource path
|
1785
|
+
path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s)
|
1786
|
+
|
1787
|
+
# query parameters
|
1788
|
+
query_params = {}
|
1789
|
+
query_params[:'withEmpty'] = opts[:'with_empty'] if opts[:'with_empty']
|
1790
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1791
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1792
|
+
|
1793
|
+
# header parameters
|
1794
|
+
header_params = {}
|
1795
|
+
|
1796
|
+
# HTTP header 'Accept' (if needed)
|
1797
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1798
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1799
|
+
|
1800
|
+
# HTTP header 'Content-Type'
|
1801
|
+
_header_content_type = []
|
1802
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1803
|
+
|
1804
|
+
# form parameters
|
1805
|
+
form_params = {}
|
1806
|
+
|
1807
|
+
# http body (model)
|
1808
|
+
post_body = nil
|
1809
|
+
|
1810
|
+
|
1811
|
+
auth_names = []
|
1812
|
+
result = @api_client.call_api(:GET, path,
|
1813
|
+
:header_params => header_params,
|
1814
|
+
:query_params => query_params,
|
1815
|
+
:form_params => form_params,
|
1816
|
+
:body => post_body,
|
1817
|
+
:auth_names => auth_names,
|
1818
|
+
:return_type => 'TextItemsResponse')
|
1819
|
+
if Configuration.debugging
|
1820
|
+
Configuration.logger.debug "API called: PdfApi#get_fragment. Result: #{result.inspect}"
|
1821
|
+
end
|
1822
|
+
return result
|
1823
|
+
end
|
1824
|
+
|
1825
|
+
# Read fragment segments.
|
1826
|
+
#
|
1827
|
+
# @param name
|
1828
|
+
# @param page_number
|
1829
|
+
# @param fragment_number
|
1830
|
+
# @param [Hash] opts the optional parameters
|
1831
|
+
# @option opts [String] :with_empty
|
1832
|
+
# @option opts [String] :storage
|
1833
|
+
# @option opts [String] :folder
|
1834
|
+
# @return [TextItemsResponse]
|
1835
|
+
def get_segments(name, page_number, fragment_number, opts = {})
|
1836
|
+
if Configuration.debugging
|
1837
|
+
Configuration.logger.debug "Calling API: PdfApi#get_segments ..."
|
1838
|
+
end
|
1839
|
+
|
1840
|
+
# verify the required parameter 'name' is set
|
1841
|
+
fail "Missing the required parameter 'name' when calling get_segments" if name.nil?
|
1842
|
+
|
1843
|
+
# verify the required parameter 'page_number' is set
|
1844
|
+
fail "Missing the required parameter 'page_number' when calling get_segments" if page_number.nil?
|
1845
|
+
|
1846
|
+
# verify the required parameter 'fragment_number' is set
|
1847
|
+
fail "Missing the required parameter 'fragment_number' when calling get_segments" if fragment_number.nil?
|
1848
|
+
|
1849
|
+
# resource path
|
1850
|
+
path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/segments".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s)
|
1851
|
+
|
1852
|
+
# query parameters
|
1853
|
+
query_params = {}
|
1854
|
+
query_params[:'withEmpty'] = opts[:'with_empty'] if opts[:'with_empty']
|
1855
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1856
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1857
|
+
|
1858
|
+
# header parameters
|
1859
|
+
header_params = {}
|
1860
|
+
|
1861
|
+
# HTTP header 'Accept' (if needed)
|
1862
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1863
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1864
|
+
|
1865
|
+
# HTTP header 'Content-Type'
|
1866
|
+
_header_content_type = []
|
1867
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1868
|
+
|
1869
|
+
# form parameters
|
1870
|
+
form_params = {}
|
1871
|
+
|
1872
|
+
# http body (model)
|
1873
|
+
post_body = nil
|
1874
|
+
|
1875
|
+
|
1876
|
+
auth_names = []
|
1877
|
+
result = @api_client.call_api(:GET, path,
|
1878
|
+
:header_params => header_params,
|
1879
|
+
:query_params => query_params,
|
1880
|
+
:form_params => form_params,
|
1881
|
+
:body => post_body,
|
1882
|
+
:auth_names => auth_names,
|
1883
|
+
:return_type => 'TextItemsResponse')
|
1884
|
+
if Configuration.debugging
|
1885
|
+
Configuration.logger.debug "API called: PdfApi#get_segments. Result: #{result.inspect}"
|
1886
|
+
end
|
1887
|
+
return result
|
1888
|
+
end
|
1889
|
+
|
1890
|
+
# Read segment.
|
1891
|
+
#
|
1892
|
+
# @param name
|
1893
|
+
# @param page_number
|
1894
|
+
# @param fragment_number
|
1895
|
+
# @param segment_number
|
1896
|
+
# @param [Hash] opts the optional parameters
|
1897
|
+
# @option opts [String] :storage
|
1898
|
+
# @option opts [String] :folder
|
1899
|
+
# @return [TextItemResponse]
|
1900
|
+
def get_segment(name, page_number, fragment_number, segment_number, opts = {})
|
1901
|
+
if Configuration.debugging
|
1902
|
+
Configuration.logger.debug "Calling API: PdfApi#get_segment ..."
|
1903
|
+
end
|
1904
|
+
|
1905
|
+
# verify the required parameter 'name' is set
|
1906
|
+
fail "Missing the required parameter 'name' when calling get_segment" if name.nil?
|
1907
|
+
|
1908
|
+
# verify the required parameter 'page_number' is set
|
1909
|
+
fail "Missing the required parameter 'page_number' when calling get_segment" if page_number.nil?
|
1910
|
+
|
1911
|
+
# verify the required parameter 'fragment_number' is set
|
1912
|
+
fail "Missing the required parameter 'fragment_number' when calling get_segment" if fragment_number.nil?
|
1913
|
+
|
1914
|
+
# verify the required parameter 'segment_number' is set
|
1915
|
+
fail "Missing the required parameter 'segment_number' when calling get_segment" if segment_number.nil?
|
1916
|
+
|
1917
|
+
# resource path
|
1918
|
+
path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/segments/{segmentNumber}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s).sub('{' + 'segmentNumber' + '}', segment_number.to_s)
|
1919
|
+
|
1920
|
+
# query parameters
|
1921
|
+
query_params = {}
|
1922
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1923
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1924
|
+
|
1925
|
+
# header parameters
|
1926
|
+
header_params = {}
|
1927
|
+
|
1928
|
+
# HTTP header 'Accept' (if needed)
|
1929
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1930
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1931
|
+
|
1932
|
+
# HTTP header 'Content-Type'
|
1933
|
+
_header_content_type = []
|
1934
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1935
|
+
|
1936
|
+
# form parameters
|
1937
|
+
form_params = {}
|
1938
|
+
|
1939
|
+
# http body (model)
|
1940
|
+
post_body = nil
|
1941
|
+
|
1942
|
+
|
1943
|
+
auth_names = []
|
1944
|
+
result = @api_client.call_api(:GET, path,
|
1945
|
+
:header_params => header_params,
|
1946
|
+
:query_params => query_params,
|
1947
|
+
:form_params => form_params,
|
1948
|
+
:body => post_body,
|
1949
|
+
:auth_names => auth_names,
|
1950
|
+
:return_type => 'TextItemResponse')
|
1951
|
+
if Configuration.debugging
|
1952
|
+
Configuration.logger.debug "API called: PdfApi#get_segment. Result: #{result.inspect}"
|
1953
|
+
end
|
1954
|
+
return result
|
1955
|
+
end
|
1956
|
+
|
1957
|
+
# Read segment text format.
|
1958
|
+
#
|
1959
|
+
# @param name
|
1960
|
+
# @param page_number
|
1961
|
+
# @param fragment_number
|
1962
|
+
# @param segment_number
|
1963
|
+
# @param [Hash] opts the optional parameters
|
1964
|
+
# @option opts [String] :storage
|
1965
|
+
# @option opts [String] :folder
|
1966
|
+
# @return [TextFormatResponse]
|
1967
|
+
def get_segment_text_format(name, page_number, fragment_number, segment_number, opts = {})
|
1968
|
+
if Configuration.debugging
|
1969
|
+
Configuration.logger.debug "Calling API: PdfApi#get_segment_text_format ..."
|
1970
|
+
end
|
1971
|
+
|
1972
|
+
# verify the required parameter 'name' is set
|
1973
|
+
fail "Missing the required parameter 'name' when calling get_segment_text_format" if name.nil?
|
1974
|
+
|
1975
|
+
# verify the required parameter 'page_number' is set
|
1976
|
+
fail "Missing the required parameter 'page_number' when calling get_segment_text_format" if page_number.nil?
|
1977
|
+
|
1978
|
+
# verify the required parameter 'fragment_number' is set
|
1979
|
+
fail "Missing the required parameter 'fragment_number' when calling get_segment_text_format" if fragment_number.nil?
|
1980
|
+
|
1981
|
+
# verify the required parameter 'segment_number' is set
|
1982
|
+
fail "Missing the required parameter 'segment_number' when calling get_segment_text_format" if segment_number.nil?
|
1983
|
+
|
1984
|
+
# resource path
|
1985
|
+
path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/segments/{segmentNumber}/textformat".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s).sub('{' + 'segmentNumber' + '}', segment_number.to_s)
|
1986
|
+
|
1987
|
+
# query parameters
|
1988
|
+
query_params = {}
|
1989
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1990
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1991
|
+
|
1992
|
+
# header parameters
|
1993
|
+
header_params = {}
|
1994
|
+
|
1995
|
+
# HTTP header 'Accept' (if needed)
|
1996
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1997
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1998
|
+
|
1999
|
+
# HTTP header 'Content-Type'
|
2000
|
+
_header_content_type = []
|
2001
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2002
|
+
|
2003
|
+
# form parameters
|
2004
|
+
form_params = {}
|
2005
|
+
|
2006
|
+
# http body (model)
|
2007
|
+
post_body = nil
|
2008
|
+
|
2009
|
+
|
2010
|
+
auth_names = []
|
2011
|
+
result = @api_client.call_api(:GET, path,
|
2012
|
+
:header_params => header_params,
|
2013
|
+
:query_params => query_params,
|
2014
|
+
:form_params => form_params,
|
2015
|
+
:body => post_body,
|
2016
|
+
:auth_names => auth_names,
|
2017
|
+
:return_type => 'TextFormatResponse')
|
2018
|
+
if Configuration.debugging
|
2019
|
+
Configuration.logger.debug "API called: PdfApi#get_segment_text_format. Result: #{result.inspect}"
|
2020
|
+
end
|
2021
|
+
return result
|
2022
|
+
end
|
2023
|
+
|
2024
|
+
# Read page fragment text format.
|
2025
|
+
#
|
2026
|
+
# @param name
|
2027
|
+
# @param page_number
|
2028
|
+
# @param fragment_number
|
2029
|
+
# @param [Hash] opts the optional parameters
|
2030
|
+
# @option opts [String] :storage
|
2031
|
+
# @option opts [String] :folder
|
2032
|
+
# @return [TextFormatResponse]
|
2033
|
+
def get_fragment_text_format(name, page_number, fragment_number, opts = {})
|
2034
|
+
if Configuration.debugging
|
2035
|
+
Configuration.logger.debug "Calling API: PdfApi#get_fragment_text_format ..."
|
2036
|
+
end
|
2037
|
+
|
2038
|
+
# verify the required parameter 'name' is set
|
2039
|
+
fail "Missing the required parameter 'name' when calling get_fragment_text_format" if name.nil?
|
2040
|
+
|
2041
|
+
# verify the required parameter 'page_number' is set
|
2042
|
+
fail "Missing the required parameter 'page_number' when calling get_fragment_text_format" if page_number.nil?
|
2043
|
+
|
2044
|
+
# verify the required parameter 'fragment_number' is set
|
2045
|
+
fail "Missing the required parameter 'fragment_number' when calling get_fragment_text_format" if fragment_number.nil?
|
2046
|
+
|
2047
|
+
# resource path
|
2048
|
+
path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/textFormat".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s)
|
2049
|
+
|
2050
|
+
# query parameters
|
2051
|
+
query_params = {}
|
2052
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2053
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2054
|
+
|
2055
|
+
# header parameters
|
2056
|
+
header_params = {}
|
2057
|
+
|
2058
|
+
# HTTP header 'Accept' (if needed)
|
2059
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2060
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2061
|
+
|
2062
|
+
# HTTP header 'Content-Type'
|
2063
|
+
_header_content_type = []
|
2064
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2065
|
+
|
2066
|
+
# form parameters
|
2067
|
+
form_params = {}
|
2068
|
+
|
2069
|
+
# http body (model)
|
2070
|
+
post_body = nil
|
2071
|
+
|
2072
|
+
|
2073
|
+
auth_names = []
|
2074
|
+
result = @api_client.call_api(:GET, path,
|
2075
|
+
:header_params => header_params,
|
2076
|
+
:query_params => query_params,
|
2077
|
+
:form_params => form_params,
|
2078
|
+
:body => post_body,
|
2079
|
+
:auth_names => auth_names,
|
2080
|
+
:return_type => 'TextFormatResponse')
|
2081
|
+
if Configuration.debugging
|
2082
|
+
Configuration.logger.debug "API called: PdfApi#get_fragment_text_format. Result: #{result.inspect}"
|
2083
|
+
end
|
2084
|
+
return result
|
2085
|
+
end
|
2086
|
+
|
2087
|
+
# Read document images.
|
2088
|
+
#
|
2089
|
+
# @param name The document name.
|
2090
|
+
# @param page_number The page number.
|
2091
|
+
# @param [Hash] opts the optional parameters
|
2092
|
+
# @option opts [String] :storage The document storage.
|
2093
|
+
# @option opts [String] :folder The document folder.
|
2094
|
+
# @return [ImagesResponse]
|
2095
|
+
def get_images(name, page_number, opts = {})
|
2096
|
+
if Configuration.debugging
|
2097
|
+
Configuration.logger.debug "Calling API: PdfApi#get_images ..."
|
2098
|
+
end
|
2099
|
+
|
2100
|
+
# verify the required parameter 'name' is set
|
2101
|
+
fail "Missing the required parameter 'name' when calling get_images" if name.nil?
|
2102
|
+
|
2103
|
+
# verify the required parameter 'page_number' is set
|
2104
|
+
fail "Missing the required parameter 'page_number' when calling get_images" if page_number.nil?
|
2105
|
+
|
2106
|
+
# resource path
|
2107
|
+
path = "/pdf/{name}/pages/{pageNumber}/images".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
2108
|
+
|
2109
|
+
# query parameters
|
2110
|
+
query_params = {}
|
2111
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2112
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2113
|
+
|
2114
|
+
# header parameters
|
2115
|
+
header_params = {}
|
2116
|
+
|
2117
|
+
# HTTP header 'Accept' (if needed)
|
2118
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2119
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2120
|
+
|
2121
|
+
# HTTP header 'Content-Type'
|
2122
|
+
_header_content_type = []
|
2123
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2124
|
+
|
2125
|
+
# form parameters
|
2126
|
+
form_params = {}
|
2127
|
+
|
2128
|
+
# http body (model)
|
2129
|
+
post_body = nil
|
2130
|
+
|
2131
|
+
|
2132
|
+
auth_names = []
|
2133
|
+
result = @api_client.call_api(:GET, path,
|
2134
|
+
:header_params => header_params,
|
2135
|
+
:query_params => query_params,
|
2136
|
+
:form_params => form_params,
|
2137
|
+
:body => post_body,
|
2138
|
+
:auth_names => auth_names,
|
2139
|
+
:return_type => 'ImagesResponse')
|
2140
|
+
if Configuration.debugging
|
2141
|
+
Configuration.logger.debug "API called: PdfApi#get_images. Result: #{result.inspect}"
|
2142
|
+
end
|
2143
|
+
return result
|
2144
|
+
end
|
2145
|
+
|
2146
|
+
# Get image in specified format.
|
2147
|
+
#
|
2148
|
+
# @param name The document name.
|
2149
|
+
# @param page_number The page number.
|
2150
|
+
# @param image_number The image number.
|
2151
|
+
# @param format The image format.
|
2152
|
+
# @param [Hash] opts the optional parameters
|
2153
|
+
# @option opts [Integer] :width The image width.
|
2154
|
+
# @option opts [Integer] :height The image height.
|
2155
|
+
# @option opts [String] :storage The document storage.
|
2156
|
+
# @option opts [String] :folder The document folder.
|
2157
|
+
# @return [File]
|
2158
|
+
def get_image_with_format(name, page_number, image_number, format, opts = {})
|
2159
|
+
if Configuration.debugging
|
2160
|
+
Configuration.logger.debug "Calling API: PdfApi#get_image_with_format ..."
|
2161
|
+
end
|
2162
|
+
|
2163
|
+
# verify the required parameter 'name' is set
|
2164
|
+
fail "Missing the required parameter 'name' when calling get_image_with_format" if name.nil?
|
2165
|
+
|
2166
|
+
# verify the required parameter 'page_number' is set
|
2167
|
+
fail "Missing the required parameter 'page_number' when calling get_image_with_format" if page_number.nil?
|
2168
|
+
|
2169
|
+
# verify the required parameter 'image_number' is set
|
2170
|
+
fail "Missing the required parameter 'image_number' when calling get_image_with_format" if image_number.nil?
|
2171
|
+
|
2172
|
+
# verify the required parameter 'format' is set
|
2173
|
+
fail "Missing the required parameter 'format' when calling get_image_with_format" if format.nil?
|
2174
|
+
|
2175
|
+
# resource path
|
2176
|
+
path = "/pdf/{name}/pages/{pageNumber}/images/{imageNumber}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'imageNumber' + '}', image_number.to_s)
|
2177
|
+
|
2178
|
+
# query parameters
|
2179
|
+
query_params = {}
|
2180
|
+
query_params[:'format'] = format
|
2181
|
+
query_params[:'width'] = opts[:'width'] if opts[:'width']
|
2182
|
+
query_params[:'height'] = opts[:'height'] if opts[:'height']
|
2183
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2184
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2185
|
+
|
2186
|
+
# header parameters
|
2187
|
+
header_params = {}
|
2188
|
+
|
2189
|
+
# HTTP header 'Accept' (if needed)
|
2190
|
+
_header_accept = []
|
2191
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2192
|
+
|
2193
|
+
# HTTP header 'Content-Type'
|
2194
|
+
_header_content_type = ['application/json']
|
2195
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2196
|
+
|
2197
|
+
# form parameters
|
2198
|
+
form_params = {}
|
2199
|
+
|
2200
|
+
# http body (model)
|
2201
|
+
post_body = nil
|
2202
|
+
|
2203
|
+
|
2204
|
+
auth_names = []
|
2205
|
+
result = @api_client.call_api(:GET, path,
|
2206
|
+
:header_params => header_params,
|
2207
|
+
:query_params => query_params,
|
2208
|
+
:form_params => form_params,
|
2209
|
+
:body => post_body,
|
2210
|
+
:auth_names => auth_names,
|
2211
|
+
:return_type => 'File')
|
2212
|
+
if Configuration.debugging
|
2213
|
+
Configuration.logger.debug "API called: PdfApi#get_image_with_format. Result: #{result.inspect}"
|
2214
|
+
end
|
2215
|
+
return result
|
2216
|
+
end
|
2217
|
+
|
2218
|
+
# Replace document image.
|
2219
|
+
#
|
2220
|
+
# @param name The document name.
|
2221
|
+
# @param page_number The page number.
|
2222
|
+
# @param image_number The image number.
|
2223
|
+
# @param [Hash] opts the optional parameters
|
2224
|
+
# @option opts [String] :image_file Path to image file if specified. Request content is used otherwise.
|
2225
|
+
# @option opts [String] :storage The document storage.
|
2226
|
+
# @option opts [String] :folder The document folder.
|
2227
|
+
# @return [ImageResponse]
|
2228
|
+
def post_replace_image(name, page_number, image_number, opts = {})
|
2229
|
+
if Configuration.debugging
|
2230
|
+
Configuration.logger.debug "Calling API: PdfApi#post_replace_image ..."
|
2231
|
+
end
|
2232
|
+
|
2233
|
+
# verify the required parameter 'name' is set
|
2234
|
+
fail "Missing the required parameter 'name' when calling post_replace_image" if name.nil?
|
2235
|
+
|
2236
|
+
# verify the required parameter 'page_number' is set
|
2237
|
+
fail "Missing the required parameter 'page_number' when calling post_replace_image" if page_number.nil?
|
2238
|
+
|
2239
|
+
# verify the required parameter 'image_number' is set
|
2240
|
+
fail "Missing the required parameter 'image_number' when calling post_replace_image" if image_number.nil?
|
2241
|
+
|
2242
|
+
# resource path
|
2243
|
+
path = "/pdf/{name}/pages/{pageNumber}/images/{imageNumber}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'imageNumber' + '}', image_number.to_s)
|
2244
|
+
|
2245
|
+
# query parameters
|
2246
|
+
query_params = {}
|
2247
|
+
query_params[:'imageFile'] = opts[:'image_file'] if opts[:'image_file']
|
2248
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2249
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2250
|
+
|
2251
|
+
# header parameters
|
2252
|
+
header_params = {}
|
2253
|
+
|
2254
|
+
# HTTP header 'Accept' (if needed)
|
2255
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2256
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2257
|
+
|
2258
|
+
# HTTP header 'Content-Type'
|
2259
|
+
_header_content_type = []
|
2260
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2261
|
+
|
2262
|
+
# form parameters
|
2263
|
+
form_params = {}
|
2264
|
+
|
2265
|
+
# http body (model)
|
2266
|
+
post_body = nil
|
2267
|
+
|
2268
|
+
|
2269
|
+
auth_names = []
|
2270
|
+
result = @api_client.call_api(:POST, path,
|
2271
|
+
:header_params => header_params,
|
2272
|
+
:query_params => query_params,
|
2273
|
+
:form_params => form_params,
|
2274
|
+
:body => post_body,
|
2275
|
+
:auth_names => auth_names,
|
2276
|
+
:return_type => 'ImageResponse')
|
2277
|
+
if Configuration.debugging
|
2278
|
+
Configuration.logger.debug "API called: PdfApi#post_replace_image. Result: #{result.inspect}"
|
2279
|
+
end
|
2280
|
+
return result
|
2281
|
+
end
|
2282
|
+
|
2283
|
+
# Recognize barcodes.
|
2284
|
+
#
|
2285
|
+
# @param name Document name.
|
2286
|
+
# @param page_number Page number.
|
2287
|
+
# @param image_number Image number.
|
2288
|
+
# @param [Hash] opts the optional parameters
|
2289
|
+
# @option opts [String] :storage Document storage.
|
2290
|
+
# @option opts [String] :folder Document folder.
|
2291
|
+
# @return [BarcodeResponseList]
|
2292
|
+
def get_extract_barcodes(name, page_number, image_number, opts = {})
|
2293
|
+
if Configuration.debugging
|
2294
|
+
Configuration.logger.debug "Calling API: PdfApi#get_extract_barcodes ..."
|
2295
|
+
end
|
2296
|
+
|
2297
|
+
# verify the required parameter 'name' is set
|
2298
|
+
fail "Missing the required parameter 'name' when calling get_extract_barcodes" if name.nil?
|
2299
|
+
|
2300
|
+
# verify the required parameter 'page_number' is set
|
2301
|
+
fail "Missing the required parameter 'page_number' when calling get_extract_barcodes" if page_number.nil?
|
2302
|
+
|
2303
|
+
# verify the required parameter 'image_number' is set
|
2304
|
+
fail "Missing the required parameter 'image_number' when calling get_extract_barcodes" if image_number.nil?
|
2305
|
+
|
2306
|
+
# resource path
|
2307
|
+
path = "/pdf/{name}/pages/{pageNumber}/images/{imageNumber}/recognize".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'imageNumber' + '}', image_number.to_s)
|
2308
|
+
|
2309
|
+
# query parameters
|
2310
|
+
query_params = {}
|
2311
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2312
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2313
|
+
|
2314
|
+
# header parameters
|
2315
|
+
header_params = {}
|
2316
|
+
|
2317
|
+
# HTTP header 'Accept' (if needed)
|
2318
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2319
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2320
|
+
|
2321
|
+
# HTTP header 'Content-Type'
|
2322
|
+
_header_content_type = []
|
2323
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2324
|
+
|
2325
|
+
# form parameters
|
2326
|
+
form_params = {}
|
2327
|
+
|
2328
|
+
# http body (model)
|
2329
|
+
post_body = nil
|
2330
|
+
|
2331
|
+
|
2332
|
+
auth_names = []
|
2333
|
+
result = @api_client.call_api(:GET, path,
|
2334
|
+
:header_params => header_params,
|
2335
|
+
:query_params => query_params,
|
2336
|
+
:form_params => form_params,
|
2337
|
+
:body => post_body,
|
2338
|
+
:auth_names => auth_names,
|
2339
|
+
:return_type => 'BarcodeResponseList')
|
2340
|
+
if Configuration.debugging
|
2341
|
+
Configuration.logger.debug "API called: PdfApi#get_extract_barcodes. Result: #{result.inspect}"
|
2342
|
+
end
|
2343
|
+
return result
|
2344
|
+
end
|
2345
|
+
|
2346
|
+
# Read document page link annotations.
|
2347
|
+
#
|
2348
|
+
# @param name The document name.
|
2349
|
+
# @param page_number The page number.
|
2350
|
+
# @param [Hash] opts the optional parameters
|
2351
|
+
# @option opts [String] :storage The document storage.
|
2352
|
+
# @option opts [String] :folder The document folder.
|
2353
|
+
# @return [LinkAnnotationsResponse]
|
2354
|
+
def get_page_link_annotations(name, page_number, opts = {})
|
2355
|
+
if Configuration.debugging
|
2356
|
+
Configuration.logger.debug "Calling API: PdfApi#get_page_link_annotations ..."
|
2357
|
+
end
|
2358
|
+
|
2359
|
+
# verify the required parameter 'name' is set
|
2360
|
+
fail "Missing the required parameter 'name' when calling get_page_link_annotations" if name.nil?
|
2361
|
+
|
2362
|
+
# verify the required parameter 'page_number' is set
|
2363
|
+
fail "Missing the required parameter 'page_number' when calling get_page_link_annotations" if page_number.nil?
|
2364
|
+
|
2365
|
+
# resource path
|
2366
|
+
path = "/pdf/{name}/pages/{pageNumber}/links".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
2367
|
+
|
2368
|
+
# query parameters
|
2369
|
+
query_params = {}
|
2370
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2371
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2372
|
+
|
2373
|
+
# header parameters
|
2374
|
+
header_params = {}
|
2375
|
+
|
2376
|
+
# HTTP header 'Accept' (if needed)
|
2377
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2378
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2379
|
+
|
2380
|
+
# HTTP header 'Content-Type'
|
2381
|
+
_header_content_type = []
|
2382
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2383
|
+
|
2384
|
+
# form parameters
|
2385
|
+
form_params = {}
|
2386
|
+
|
2387
|
+
# http body (model)
|
2388
|
+
post_body = nil
|
2389
|
+
|
2390
|
+
|
2391
|
+
auth_names = []
|
2392
|
+
result = @api_client.call_api(:GET, path,
|
2393
|
+
:header_params => header_params,
|
2394
|
+
:query_params => query_params,
|
2395
|
+
:form_params => form_params,
|
2396
|
+
:body => post_body,
|
2397
|
+
:auth_names => auth_names,
|
2398
|
+
:return_type => 'LinkAnnotationsResponse')
|
2399
|
+
if Configuration.debugging
|
2400
|
+
Configuration.logger.debug "API called: PdfApi#get_page_link_annotations. Result: #{result.inspect}"
|
2401
|
+
end
|
2402
|
+
return result
|
2403
|
+
end
|
2404
|
+
|
2405
|
+
# Read document page link annotation by its index.
|
2406
|
+
#
|
2407
|
+
# @param name The document name.
|
2408
|
+
# @param page_number The page number.
|
2409
|
+
# @param link_index The link index.
|
2410
|
+
# @param [Hash] opts the optional parameters
|
2411
|
+
# @option opts [String] :storage The document storage.
|
2412
|
+
# @option opts [String] :folder The document folder.
|
2413
|
+
# @return [LinkAnnotationResponse]
|
2414
|
+
def get_page_link_annotation_by_index(name, page_number, link_index, opts = {})
|
2415
|
+
if Configuration.debugging
|
2416
|
+
Configuration.logger.debug "Calling API: PdfApi#get_page_link_annotation_by_index ..."
|
2417
|
+
end
|
2418
|
+
|
2419
|
+
# verify the required parameter 'name' is set
|
2420
|
+
fail "Missing the required parameter 'name' when calling get_page_link_annotation_by_index" if name.nil?
|
2421
|
+
|
2422
|
+
# verify the required parameter 'page_number' is set
|
2423
|
+
fail "Missing the required parameter 'page_number' when calling get_page_link_annotation_by_index" if page_number.nil?
|
2424
|
+
|
2425
|
+
# verify the required parameter 'link_index' is set
|
2426
|
+
fail "Missing the required parameter 'link_index' when calling get_page_link_annotation_by_index" if link_index.nil?
|
2427
|
+
|
2428
|
+
# resource path
|
2429
|
+
path = "/pdf/{name}/pages/{pageNumber}/links/{linkIndex}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'linkIndex' + '}', link_index.to_s)
|
2430
|
+
|
2431
|
+
# query parameters
|
2432
|
+
query_params = {}
|
2433
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2434
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2435
|
+
|
2436
|
+
# header parameters
|
2437
|
+
header_params = {}
|
2438
|
+
|
2439
|
+
# HTTP header 'Accept' (if needed)
|
2440
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2441
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2442
|
+
|
2443
|
+
# HTTP header 'Content-Type'
|
2444
|
+
_header_content_type = []
|
2445
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2446
|
+
|
2447
|
+
# form parameters
|
2448
|
+
form_params = {}
|
2449
|
+
|
2450
|
+
# http body (model)
|
2451
|
+
post_body = nil
|
2452
|
+
|
2453
|
+
|
2454
|
+
auth_names = []
|
2455
|
+
result = @api_client.call_api(:GET, path,
|
2456
|
+
:header_params => header_params,
|
2457
|
+
:query_params => query_params,
|
2458
|
+
:form_params => form_params,
|
2459
|
+
:body => post_body,
|
2460
|
+
:auth_names => auth_names,
|
2461
|
+
:return_type => 'LinkAnnotationResponse')
|
2462
|
+
if Configuration.debugging
|
2463
|
+
Configuration.logger.debug "API called: PdfApi#get_page_link_annotation_by_index. Result: #{result.inspect}"
|
2464
|
+
end
|
2465
|
+
return result
|
2466
|
+
end
|
2467
|
+
|
2468
|
+
# Move page to new position.
|
2469
|
+
#
|
2470
|
+
# @param name The document name.
|
2471
|
+
# @param page_number The page number.
|
2472
|
+
# @param new_index The new page position/index.
|
2473
|
+
# @param [Hash] opts the optional parameters
|
2474
|
+
# @option opts [String] :storage The document storage.
|
2475
|
+
# @option opts [String] :folder The document folder.
|
2476
|
+
# @return [BaseResponse]
|
2477
|
+
def post_move_page(name, page_number, new_index, opts = {})
|
2478
|
+
if Configuration.debugging
|
2479
|
+
Configuration.logger.debug "Calling API: PdfApi#post_move_page ..."
|
2480
|
+
end
|
2481
|
+
|
2482
|
+
# verify the required parameter 'name' is set
|
2483
|
+
fail "Missing the required parameter 'name' when calling post_move_page" if name.nil?
|
2484
|
+
|
2485
|
+
# verify the required parameter 'page_number' is set
|
2486
|
+
fail "Missing the required parameter 'page_number' when calling post_move_page" if page_number.nil?
|
2487
|
+
|
2488
|
+
# verify the required parameter 'new_index' is set
|
2489
|
+
fail "Missing the required parameter 'new_index' when calling post_move_page" if new_index.nil?
|
2490
|
+
|
2491
|
+
# resource path
|
2492
|
+
path = "/pdf/{name}/pages/{pageNumber}/movePage".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
2493
|
+
|
2494
|
+
# query parameters
|
2495
|
+
query_params = {}
|
2496
|
+
query_params[:'newIndex'] = new_index
|
2497
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2498
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2499
|
+
|
2500
|
+
# header parameters
|
2501
|
+
header_params = {}
|
2502
|
+
|
2503
|
+
# HTTP header 'Accept' (if needed)
|
2504
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2505
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2506
|
+
|
2507
|
+
# HTTP header 'Content-Type'
|
2508
|
+
_header_content_type = []
|
2509
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2510
|
+
|
2511
|
+
# form parameters
|
2512
|
+
form_params = {}
|
2513
|
+
|
2514
|
+
# http body (model)
|
2515
|
+
post_body = nil
|
2516
|
+
|
2517
|
+
|
2518
|
+
auth_names = []
|
2519
|
+
result = @api_client.call_api(:POST, path,
|
2520
|
+
:header_params => header_params,
|
2521
|
+
:query_params => query_params,
|
2522
|
+
:form_params => form_params,
|
2523
|
+
:body => post_body,
|
2524
|
+
:auth_names => auth_names,
|
2525
|
+
:return_type => 'BaseResponse')
|
2526
|
+
if Configuration.debugging
|
2527
|
+
Configuration.logger.debug "API called: PdfApi#post_move_page. Result: #{result.inspect}"
|
2528
|
+
end
|
2529
|
+
return result
|
2530
|
+
end
|
2531
|
+
|
2532
|
+
# Page's replace text method.
|
2533
|
+
#
|
2534
|
+
# @param name
|
2535
|
+
# @param page_number
|
2536
|
+
# @param text_replace
|
2537
|
+
# @param [Hash] opts the optional parameters
|
2538
|
+
# @option opts [String] :storage
|
2539
|
+
# @option opts [String] :folder
|
2540
|
+
# @return [PageTextReplaceResponse]
|
2541
|
+
def post_page_replace_text(name, page_number, text_replace, opts = {})
|
2542
|
+
if Configuration.debugging
|
2543
|
+
Configuration.logger.debug "Calling API: PdfApi#post_page_replace_text ..."
|
2544
|
+
end
|
2545
|
+
|
2546
|
+
# verify the required parameter 'name' is set
|
2547
|
+
fail "Missing the required parameter 'name' when calling post_page_replace_text" if name.nil?
|
2548
|
+
|
2549
|
+
# verify the required parameter 'page_number' is set
|
2550
|
+
fail "Missing the required parameter 'page_number' when calling post_page_replace_text" if page_number.nil?
|
2551
|
+
|
2552
|
+
# verify the required parameter 'text_replace' is set
|
2553
|
+
fail "Missing the required parameter 'text_replace' when calling post_page_replace_text" if text_replace.nil?
|
2554
|
+
|
2555
|
+
# resource path
|
2556
|
+
path = "/pdf/{name}/pages/{pageNumber}/replaceText".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
2557
|
+
|
2558
|
+
# query parameters
|
2559
|
+
query_params = {}
|
2560
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2561
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2562
|
+
|
2563
|
+
# header parameters
|
2564
|
+
header_params = {}
|
2565
|
+
|
2566
|
+
# HTTP header 'Accept' (if needed)
|
2567
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2568
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2569
|
+
|
2570
|
+
# HTTP header 'Content-Type'
|
2571
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
2572
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2573
|
+
|
2574
|
+
# form parameters
|
2575
|
+
form_params = {}
|
2576
|
+
|
2577
|
+
# http body (model)
|
2578
|
+
post_body = @api_client.object_to_http_body(text_replace)
|
2579
|
+
|
2580
|
+
|
2581
|
+
auth_names = []
|
2582
|
+
result = @api_client.call_api(:POST, path,
|
2583
|
+
:header_params => header_params,
|
2584
|
+
:query_params => query_params,
|
2585
|
+
:form_params => form_params,
|
2586
|
+
:body => post_body,
|
2587
|
+
:auth_names => auth_names,
|
2588
|
+
:return_type => 'PageTextReplaceResponse')
|
2589
|
+
if Configuration.debugging
|
2590
|
+
Configuration.logger.debug "API called: PdfApi#post_page_replace_text. Result: #{result.inspect}"
|
2591
|
+
end
|
2592
|
+
return result
|
2593
|
+
end
|
2594
|
+
|
2595
|
+
# Page's replace text method.
|
2596
|
+
#
|
2597
|
+
# @param name
|
2598
|
+
# @param page_number
|
2599
|
+
# @param text_replace_list_request
|
2600
|
+
# @param [Hash] opts the optional parameters
|
2601
|
+
# @option opts [String] :storage
|
2602
|
+
# @option opts [String] :folder
|
2603
|
+
# @return [PageTextReplaceResponse]
|
2604
|
+
def post_page_replace_text_list(name, page_number, text_replace_list_request, opts = {})
|
2605
|
+
if Configuration.debugging
|
2606
|
+
Configuration.logger.debug "Calling API: PdfApi#post_page_replace_text_list ..."
|
2607
|
+
end
|
2608
|
+
|
2609
|
+
# verify the required parameter 'name' is set
|
2610
|
+
fail "Missing the required parameter 'name' when calling post_page_replace_text_list" if name.nil?
|
2611
|
+
|
2612
|
+
# verify the required parameter 'page_number' is set
|
2613
|
+
fail "Missing the required parameter 'page_number' when calling post_page_replace_text_list" if page_number.nil?
|
2614
|
+
|
2615
|
+
# verify the required parameter 'text_replace_list_request' is set
|
2616
|
+
fail "Missing the required parameter 'text_replace_list_request' when calling post_page_replace_text_list" if text_replace_list_request.nil?
|
2617
|
+
|
2618
|
+
# resource path
|
2619
|
+
path = "/pdf/{name}/pages/{pageNumber}/replaceTextList".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
2620
|
+
|
2621
|
+
# query parameters
|
2622
|
+
query_params = {}
|
2623
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2624
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2625
|
+
|
2626
|
+
# header parameters
|
2627
|
+
header_params = {}
|
2628
|
+
|
2629
|
+
# HTTP header 'Accept' (if needed)
|
2630
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2631
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2632
|
+
|
2633
|
+
# HTTP header 'Content-Type'
|
2634
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
2635
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2636
|
+
|
2637
|
+
# form parameters
|
2638
|
+
form_params = {}
|
2639
|
+
|
2640
|
+
# http body (model)
|
2641
|
+
post_body = @api_client.object_to_http_body(text_replace_list_request)
|
2642
|
+
|
2643
|
+
|
2644
|
+
auth_names = []
|
2645
|
+
result = @api_client.call_api(:POST, 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 => 'PageTextReplaceResponse')
|
2652
|
+
if Configuration.debugging
|
2653
|
+
Configuration.logger.debug "API called: PdfApi#post_page_replace_text_list. Result: #{result.inspect}"
|
2654
|
+
end
|
2655
|
+
return result
|
2656
|
+
end
|
2657
|
+
|
2658
|
+
# Sign page.
|
2659
|
+
#
|
2660
|
+
# @param name The document name.
|
2661
|
+
# @param page_number The page number.
|
2662
|
+
# @param signature {Signature} with the signature data.
|
2663
|
+
# @param [Hash] opts the optional parameters
|
2664
|
+
# @option opts [String] :storage The document storage.
|
2665
|
+
# @option opts [String] :folder The document folder.
|
2666
|
+
# @return [BaseResponse]
|
2667
|
+
def post_sign_page(name, page_number, signature, opts = {})
|
2668
|
+
if Configuration.debugging
|
2669
|
+
Configuration.logger.debug "Calling API: PdfApi#post_sign_page ..."
|
2670
|
+
end
|
2671
|
+
|
2672
|
+
# verify the required parameter 'name' is set
|
2673
|
+
fail "Missing the required parameter 'name' when calling post_sign_page" if name.nil?
|
2674
|
+
|
2675
|
+
# verify the required parameter 'page_number' is set
|
2676
|
+
fail "Missing the required parameter 'page_number' when calling post_sign_page" if page_number.nil?
|
2677
|
+
|
2678
|
+
# verify the required parameter 'signature' is set
|
2679
|
+
fail "Missing the required parameter 'signature' when calling post_sign_page" if signature.nil?
|
2680
|
+
|
2681
|
+
# resource path
|
2682
|
+
path = "/pdf/{name}/pages/{pageNumber}/sign".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
2683
|
+
|
2684
|
+
# query parameters
|
2685
|
+
query_params = {}
|
2686
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2687
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2688
|
+
|
2689
|
+
# header parameters
|
2690
|
+
header_params = {}
|
2691
|
+
|
2692
|
+
# HTTP header 'Accept' (if needed)
|
2693
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2694
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2695
|
+
|
2696
|
+
# HTTP header 'Content-Type'
|
2697
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
2698
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2699
|
+
|
2700
|
+
# form parameters
|
2701
|
+
form_params = {}
|
2702
|
+
|
2703
|
+
# http body (model)
|
2704
|
+
post_body = @api_client.object_to_http_body(signature)
|
2705
|
+
|
2706
|
+
|
2707
|
+
auth_names = []
|
2708
|
+
result = @api_client.call_api(:POST, path,
|
2709
|
+
:header_params => header_params,
|
2710
|
+
:query_params => query_params,
|
2711
|
+
:form_params => form_params,
|
2712
|
+
:body => post_body,
|
2713
|
+
:auth_names => auth_names,
|
2714
|
+
:return_type => 'BaseResponse')
|
2715
|
+
if Configuration.debugging
|
2716
|
+
Configuration.logger.debug "API called: PdfApi#post_sign_page. Result: #{result.inspect}"
|
2717
|
+
end
|
2718
|
+
return result
|
2719
|
+
end
|
2720
|
+
|
2721
|
+
# Add page stamp.
|
2722
|
+
#
|
2723
|
+
# @param name The document name.
|
2724
|
+
# @param page_number The page number.
|
2725
|
+
# @param stamp {Stamp} with data.
|
2726
|
+
# @param [Hash] opts the optional parameters
|
2727
|
+
# @option opts [String] :storage The document storage.
|
2728
|
+
# @option opts [String] :folder The document folder.
|
2729
|
+
# @return [BaseResponse]
|
2730
|
+
def put_page_add_stamp(name, page_number, stamp, opts = {})
|
2731
|
+
if Configuration.debugging
|
2732
|
+
Configuration.logger.debug "Calling API: PdfApi#put_page_add_stamp ..."
|
2733
|
+
end
|
2734
|
+
|
2735
|
+
# verify the required parameter 'name' is set
|
2736
|
+
fail "Missing the required parameter 'name' when calling put_page_add_stamp" if name.nil?
|
2737
|
+
|
2738
|
+
# verify the required parameter 'page_number' is set
|
2739
|
+
fail "Missing the required parameter 'page_number' when calling put_page_add_stamp" if page_number.nil?
|
2740
|
+
|
2741
|
+
# verify the required parameter 'stamp' is set
|
2742
|
+
fail "Missing the required parameter 'stamp' when calling put_page_add_stamp" if stamp.nil?
|
2743
|
+
|
2744
|
+
# resource path
|
2745
|
+
path = "/pdf/{name}/pages/{pageNumber}/stamp".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
2746
|
+
|
2747
|
+
# query parameters
|
2748
|
+
query_params = {}
|
2749
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2750
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2751
|
+
|
2752
|
+
# header parameters
|
2753
|
+
header_params = {}
|
2754
|
+
|
2755
|
+
# HTTP header 'Accept' (if needed)
|
2756
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2757
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2758
|
+
|
2759
|
+
# HTTP header 'Content-Type'
|
2760
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
2761
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2762
|
+
|
2763
|
+
# form parameters
|
2764
|
+
form_params = {}
|
2765
|
+
|
2766
|
+
# http body (model)
|
2767
|
+
post_body = @api_client.object_to_http_body(stamp)
|
2768
|
+
|
2769
|
+
|
2770
|
+
auth_names = []
|
2771
|
+
result = @api_client.call_api(:PUT, path,
|
2772
|
+
:header_params => header_params,
|
2773
|
+
:query_params => query_params,
|
2774
|
+
:form_params => form_params,
|
2775
|
+
:body => post_body,
|
2776
|
+
:auth_names => auth_names,
|
2777
|
+
:return_type => 'BaseResponse')
|
2778
|
+
if Configuration.debugging
|
2779
|
+
Configuration.logger.debug "API called: PdfApi#put_page_add_stamp. Result: #{result.inspect}"
|
2780
|
+
end
|
2781
|
+
return result
|
2782
|
+
end
|
2783
|
+
|
2784
|
+
# Read page text items.
|
2785
|
+
#
|
2786
|
+
# @param name
|
2787
|
+
# @param page_number
|
2788
|
+
# @param [Hash] opts the optional parameters
|
2789
|
+
# @option opts [String] :with_empty
|
2790
|
+
# @option opts [String] :storage
|
2791
|
+
# @option opts [String] :folder
|
2792
|
+
# @return [TextItemsResponse]
|
2793
|
+
def get_page_text_items(name, page_number, opts = {})
|
2794
|
+
if Configuration.debugging
|
2795
|
+
Configuration.logger.debug "Calling API: PdfApi#get_page_text_items ..."
|
2796
|
+
end
|
2797
|
+
|
2798
|
+
# verify the required parameter 'name' is set
|
2799
|
+
fail "Missing the required parameter 'name' when calling get_page_text_items" if name.nil?
|
2800
|
+
|
2801
|
+
# verify the required parameter 'page_number' is set
|
2802
|
+
fail "Missing the required parameter 'page_number' when calling get_page_text_items" if page_number.nil?
|
2803
|
+
|
2804
|
+
# resource path
|
2805
|
+
path = "/pdf/{name}/pages/{pageNumber}/textItems".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
2806
|
+
|
2807
|
+
# query parameters
|
2808
|
+
query_params = {}
|
2809
|
+
query_params[:'withEmpty'] = opts[:'with_empty'] if opts[:'with_empty']
|
2810
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2811
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2812
|
+
|
2813
|
+
# header parameters
|
2814
|
+
header_params = {}
|
2815
|
+
|
2816
|
+
# HTTP header 'Accept' (if needed)
|
2817
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2818
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2819
|
+
|
2820
|
+
# HTTP header 'Content-Type'
|
2821
|
+
_header_content_type = []
|
2822
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2823
|
+
|
2824
|
+
# form parameters
|
2825
|
+
form_params = {}
|
2826
|
+
|
2827
|
+
# http body (model)
|
2828
|
+
post_body = nil
|
2829
|
+
|
2830
|
+
|
2831
|
+
auth_names = []
|
2832
|
+
result = @api_client.call_api(:GET, path,
|
2833
|
+
:header_params => header_params,
|
2834
|
+
:query_params => query_params,
|
2835
|
+
:form_params => form_params,
|
2836
|
+
:body => post_body,
|
2837
|
+
:auth_names => auth_names,
|
2838
|
+
:return_type => 'TextItemsResponse')
|
2839
|
+
if Configuration.debugging
|
2840
|
+
Configuration.logger.debug "API called: PdfApi#get_page_text_items. Result: #{result.inspect}"
|
2841
|
+
end
|
2842
|
+
return result
|
2843
|
+
end
|
2844
|
+
|
2845
|
+
# Document's replace text method.
|
2846
|
+
#
|
2847
|
+
# @param name
|
2848
|
+
# @param text_replace
|
2849
|
+
# @param [Hash] opts the optional parameters
|
2850
|
+
# @option opts [String] :storage
|
2851
|
+
# @option opts [String] :folder
|
2852
|
+
# @return [DocumentTextReplaceResponse]
|
2853
|
+
def post_document_replace_text(name, text_replace, opts = {})
|
2854
|
+
if Configuration.debugging
|
2855
|
+
Configuration.logger.debug "Calling API: PdfApi#post_document_replace_text ..."
|
2856
|
+
end
|
2857
|
+
|
2858
|
+
# verify the required parameter 'name' is set
|
2859
|
+
fail "Missing the required parameter 'name' when calling post_document_replace_text" if name.nil?
|
2860
|
+
|
2861
|
+
# verify the required parameter 'text_replace' is set
|
2862
|
+
fail "Missing the required parameter 'text_replace' when calling post_document_replace_text" if text_replace.nil?
|
2863
|
+
|
2864
|
+
# resource path
|
2865
|
+
path = "/pdf/{name}/replaceText".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
2866
|
+
|
2867
|
+
# query parameters
|
2868
|
+
query_params = {}
|
2869
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2870
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2871
|
+
|
2872
|
+
# header parameters
|
2873
|
+
header_params = {}
|
2874
|
+
|
2875
|
+
# HTTP header 'Accept' (if needed)
|
2876
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2877
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2878
|
+
|
2879
|
+
# HTTP header 'Content-Type'
|
2880
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
2881
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2882
|
+
|
2883
|
+
# form parameters
|
2884
|
+
form_params = {}
|
2885
|
+
|
2886
|
+
# http body (model)
|
2887
|
+
post_body = @api_client.object_to_http_body(text_replace)
|
2888
|
+
|
2889
|
+
|
2890
|
+
auth_names = []
|
2891
|
+
result = @api_client.call_api(:POST, path,
|
2892
|
+
:header_params => header_params,
|
2893
|
+
:query_params => query_params,
|
2894
|
+
:form_params => form_params,
|
2895
|
+
:body => post_body,
|
2896
|
+
:auth_names => auth_names,
|
2897
|
+
:return_type => 'DocumentTextReplaceResponse')
|
2898
|
+
if Configuration.debugging
|
2899
|
+
Configuration.logger.debug "API called: PdfApi#post_document_replace_text. Result: #{result.inspect}"
|
2900
|
+
end
|
2901
|
+
return result
|
2902
|
+
end
|
2903
|
+
|
2904
|
+
# Document's replace text method.
|
2905
|
+
#
|
2906
|
+
# @param name
|
2907
|
+
# @param text_replace_list_request
|
2908
|
+
# @param [Hash] opts the optional parameters
|
2909
|
+
# @option opts [String] :storage
|
2910
|
+
# @option opts [String] :folder
|
2911
|
+
# @return [DocumentTextReplaceResponse]
|
2912
|
+
def post_document_replace_text_list(name, text_replace_list_request, opts = {})
|
2913
|
+
if Configuration.debugging
|
2914
|
+
Configuration.logger.debug "Calling API: PdfApi#post_document_replace_text_list ..."
|
2915
|
+
end
|
2916
|
+
|
2917
|
+
# verify the required parameter 'name' is set
|
2918
|
+
fail "Missing the required parameter 'name' when calling post_document_replace_text_list" if name.nil?
|
2919
|
+
|
2920
|
+
# verify the required parameter 'text_replace_list_request' is set
|
2921
|
+
fail "Missing the required parameter 'text_replace_list_request' when calling post_document_replace_text_list" if text_replace_list_request.nil?
|
2922
|
+
|
2923
|
+
# resource path
|
2924
|
+
path = "/pdf/{name}/replaceTextList".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
2925
|
+
|
2926
|
+
# query parameters
|
2927
|
+
query_params = {}
|
2928
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2929
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2930
|
+
|
2931
|
+
# header parameters
|
2932
|
+
header_params = {}
|
2933
|
+
|
2934
|
+
# HTTP header 'Accept' (if needed)
|
2935
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2936
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2937
|
+
|
2938
|
+
# HTTP header 'Content-Type'
|
2939
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
2940
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2941
|
+
|
2942
|
+
# form parameters
|
2943
|
+
form_params = {}
|
2944
|
+
|
2945
|
+
# http body (model)
|
2946
|
+
post_body = @api_client.object_to_http_body(text_replace_list_request)
|
2947
|
+
|
2948
|
+
|
2949
|
+
auth_names = []
|
2950
|
+
result = @api_client.call_api(:POST, path,
|
2951
|
+
:header_params => header_params,
|
2952
|
+
:query_params => query_params,
|
2953
|
+
:form_params => form_params,
|
2954
|
+
:body => post_body,
|
2955
|
+
:auth_names => auth_names,
|
2956
|
+
:return_type => 'DocumentTextReplaceResponse')
|
2957
|
+
if Configuration.debugging
|
2958
|
+
Configuration.logger.debug "API called: PdfApi#post_document_replace_text_list. Result: #{result.inspect}"
|
2959
|
+
end
|
2960
|
+
return result
|
2961
|
+
end
|
2962
|
+
|
2963
|
+
# Sign document.
|
2964
|
+
#
|
2965
|
+
# @param name The document name.
|
2966
|
+
# @param signature {Signature} with signature data.
|
2967
|
+
# @param [Hash] opts the optional parameters
|
2968
|
+
# @option opts [String] :storage The document storage.
|
2969
|
+
# @option opts [String] :folder The document folder.
|
2970
|
+
# @return [BaseResponse]
|
2971
|
+
def post_sign_document(name, signature, opts = {})
|
2972
|
+
if Configuration.debugging
|
2973
|
+
Configuration.logger.debug "Calling API: PdfApi#post_sign_document ..."
|
2974
|
+
end
|
2975
|
+
|
2976
|
+
# verify the required parameter 'name' is set
|
2977
|
+
fail "Missing the required parameter 'name' when calling post_sign_document" if name.nil?
|
2978
|
+
|
2979
|
+
# verify the required parameter 'signature' is set
|
2980
|
+
fail "Missing the required parameter 'signature' when calling post_sign_document" if signature.nil?
|
2981
|
+
|
2982
|
+
# resource path
|
2983
|
+
path = "/pdf/{name}/sign".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
2984
|
+
|
2985
|
+
# query parameters
|
2986
|
+
query_params = {}
|
2987
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2988
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2989
|
+
|
2990
|
+
# header parameters
|
2991
|
+
header_params = {}
|
2992
|
+
|
2993
|
+
# HTTP header 'Accept' (if needed)
|
2994
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2995
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2996
|
+
|
2997
|
+
# HTTP header 'Content-Type'
|
2998
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
2999
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
3000
|
+
|
3001
|
+
# form parameters
|
3002
|
+
form_params = {}
|
3003
|
+
|
3004
|
+
# http body (model)
|
3005
|
+
post_body = @api_client.object_to_http_body(signature)
|
3006
|
+
|
3007
|
+
|
3008
|
+
auth_names = []
|
3009
|
+
result = @api_client.call_api(:POST, path,
|
3010
|
+
:header_params => header_params,
|
3011
|
+
:query_params => query_params,
|
3012
|
+
:form_params => form_params,
|
3013
|
+
:body => post_body,
|
3014
|
+
:auth_names => auth_names,
|
3015
|
+
:return_type => 'BaseResponse')
|
3016
|
+
if Configuration.debugging
|
3017
|
+
Configuration.logger.debug "API called: PdfApi#post_sign_document. Result: #{result.inspect}"
|
3018
|
+
end
|
3019
|
+
return result
|
3020
|
+
end
|
3021
|
+
|
3022
|
+
# Split document to parts.
|
3023
|
+
#
|
3024
|
+
# @param name Document name.
|
3025
|
+
# @param [Hash] opts the optional parameters
|
3026
|
+
# @option opts [String] :format Resulting documents format.
|
3027
|
+
# @option opts [Integer] :from Start page if defined.
|
3028
|
+
# @option opts [Integer] :to End page if defined.
|
3029
|
+
# @option opts [String] :storage The document storage.
|
3030
|
+
# @option opts [String] :folder The document folder.
|
3031
|
+
# @return [SplitResultResponse]
|
3032
|
+
def post_split_document(name, opts = {})
|
3033
|
+
if Configuration.debugging
|
3034
|
+
Configuration.logger.debug "Calling API: PdfApi#post_split_document ..."
|
3035
|
+
end
|
3036
|
+
|
3037
|
+
# verify the required parameter 'name' is set
|
3038
|
+
fail "Missing the required parameter 'name' when calling post_split_document" if name.nil?
|
3039
|
+
|
3040
|
+
# resource path
|
3041
|
+
path = "/pdf/{name}/split".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
3042
|
+
|
3043
|
+
# query parameters
|
3044
|
+
query_params = {}
|
3045
|
+
query_params[:'format'] = opts[:'format'] if opts[:'format']
|
3046
|
+
query_params[:'from'] = opts[:'from'] if opts[:'from']
|
3047
|
+
query_params[:'to'] = opts[:'to'] if opts[:'to']
|
3048
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
3049
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
3050
|
+
|
3051
|
+
# header parameters
|
3052
|
+
header_params = {}
|
3053
|
+
|
3054
|
+
# HTTP header 'Accept' (if needed)
|
3055
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
3056
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
3057
|
+
|
3058
|
+
# HTTP header 'Content-Type'
|
3059
|
+
_header_content_type = []
|
3060
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
3061
|
+
|
3062
|
+
# form parameters
|
3063
|
+
form_params = {}
|
3064
|
+
|
3065
|
+
# http body (model)
|
3066
|
+
post_body = nil
|
3067
|
+
|
3068
|
+
|
3069
|
+
auth_names = []
|
3070
|
+
result = @api_client.call_api(:POST, path,
|
3071
|
+
:header_params => header_params,
|
3072
|
+
:query_params => query_params,
|
3073
|
+
:form_params => form_params,
|
3074
|
+
:body => post_body,
|
3075
|
+
:auth_names => auth_names,
|
3076
|
+
:return_type => 'SplitResultResponse')
|
3077
|
+
if Configuration.debugging
|
3078
|
+
Configuration.logger.debug "API called: PdfApi#post_split_document. Result: #{result.inspect}"
|
3079
|
+
end
|
3080
|
+
return result
|
3081
|
+
end
|
3082
|
+
|
3083
|
+
# Read document text items.
|
3084
|
+
#
|
3085
|
+
# @param name
|
3086
|
+
# @param [Hash] opts the optional parameters
|
3087
|
+
# @option opts [String] :with_empty
|
3088
|
+
# @option opts [String] :storage
|
3089
|
+
# @option opts [String] :folder
|
3090
|
+
# @return [TextItemsResponse]
|
3091
|
+
def get_text_items(name, opts = {})
|
3092
|
+
if Configuration.debugging
|
3093
|
+
Configuration.logger.debug "Calling API: PdfApi#get_text_items ..."
|
3094
|
+
end
|
3095
|
+
|
3096
|
+
# verify the required parameter 'name' is set
|
3097
|
+
fail "Missing the required parameter 'name' when calling get_text_items" if name.nil?
|
3098
|
+
|
3099
|
+
# resource path
|
3100
|
+
path = "/pdf/{name}/textItems".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
3101
|
+
|
3102
|
+
# query parameters
|
3103
|
+
query_params = {}
|
3104
|
+
query_params[:'withEmpty'] = opts[:'with_empty'] if opts[:'with_empty']
|
3105
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
3106
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
3107
|
+
|
3108
|
+
# header parameters
|
3109
|
+
header_params = {}
|
3110
|
+
|
3111
|
+
# HTTP header 'Accept' (if needed)
|
3112
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
3113
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
3114
|
+
|
3115
|
+
# HTTP header 'Content-Type'
|
3116
|
+
_header_content_type = []
|
3117
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
3118
|
+
|
3119
|
+
# form parameters
|
3120
|
+
form_params = {}
|
3121
|
+
|
3122
|
+
# http body (model)
|
3123
|
+
post_body = nil
|
3124
|
+
|
3125
|
+
|
3126
|
+
auth_names = []
|
3127
|
+
result = @api_client.call_api(:GET, path,
|
3128
|
+
:header_params => header_params,
|
3129
|
+
:query_params => query_params,
|
3130
|
+
:form_params => form_params,
|
3131
|
+
:body => post_body,
|
3132
|
+
:auth_names => auth_names,
|
3133
|
+
:return_type => 'TextItemsResponse')
|
3134
|
+
if Configuration.debugging
|
3135
|
+
Configuration.logger.debug "API called: PdfApi#get_text_items. Result: #{result.inspect}"
|
3136
|
+
end
|
3137
|
+
return result
|
3138
|
+
end
|
3139
|
+
|
3140
|
+
# Read document page info.
|
3141
|
+
#
|
3142
|
+
# @param name The document name.
|
3143
|
+
# @param page_number The page number.
|
3144
|
+
# @param [Hash] opts the optional parameters
|
3145
|
+
# @option opts [String] :storage The document storage.
|
3146
|
+
# @option opts [String] :folder The document folder.
|
3147
|
+
# @return [PageResponse]
|
3148
|
+
def get_page(name, page_number, opts = {})
|
3149
|
+
if Configuration.debugging
|
3150
|
+
Configuration.logger.debug "Calling API: PdfApi#get_page ..."
|
3151
|
+
end
|
3152
|
+
|
3153
|
+
# verify the required parameter 'name' is set
|
3154
|
+
fail "Missing the required parameter 'name' when calling get_page" if name.nil?
|
3155
|
+
|
3156
|
+
# verify the required parameter 'page_number' is set
|
3157
|
+
fail "Missing the required parameter 'page_number' when calling get_page" if page_number.nil?
|
3158
|
+
|
3159
|
+
# resource path
|
3160
|
+
path = "/pdf/{name}/pages/{pageNumber}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
|
3161
|
+
|
3162
|
+
# query parameters
|
3163
|
+
query_params = {}
|
3164
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
3165
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
3166
|
+
|
3167
|
+
# header parameters
|
3168
|
+
header_params = {}
|
3169
|
+
|
3170
|
+
# HTTP header 'Accept' (if needed)
|
3171
|
+
_header_accept = ['application/json']
|
3172
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
3173
|
+
|
3174
|
+
# HTTP header 'Content-Type'
|
3175
|
+
_header_content_type = []
|
3176
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
3177
|
+
|
3178
|
+
# form parameters
|
3179
|
+
form_params = {}
|
3180
|
+
|
3181
|
+
# http body (model)
|
3182
|
+
post_body = nil
|
3183
|
+
|
3184
|
+
|
3185
|
+
auth_names = []
|
3186
|
+
result = @api_client.call_api(:GET, path,
|
3187
|
+
:header_params => header_params,
|
3188
|
+
:query_params => query_params,
|
3189
|
+
:form_params => form_params,
|
3190
|
+
:body => post_body,
|
3191
|
+
:auth_names => auth_names,
|
3192
|
+
:return_type => 'PageResponse')
|
3193
|
+
if Configuration.debugging
|
3194
|
+
Configuration.logger.debug "API called: PdfApi#get_page. Result: #{result.inspect}"
|
3195
|
+
end
|
3196
|
+
return result
|
3197
|
+
end
|
3198
|
+
|
3199
|
+
# Read common document info.
|
3200
|
+
#
|
3201
|
+
# @param name The document name.
|
3202
|
+
# @param [Hash] opts the optional parameters
|
3203
|
+
# @option opts [String] :storage The document storage.
|
3204
|
+
# @option opts [String] :folder The document folder.
|
3205
|
+
# @return [DocumentResponse]
|
3206
|
+
def get_document(name, opts = {})
|
3207
|
+
if Configuration.debugging
|
3208
|
+
Configuration.logger.debug "Calling API: PdfApi#get_document ..."
|
3209
|
+
end
|
3210
|
+
|
3211
|
+
# verify the required parameter 'name' is set
|
3212
|
+
fail "Missing the required parameter 'name' when calling get_document" if name.nil?
|
3213
|
+
|
3214
|
+
# resource path
|
3215
|
+
path = "/pdf/{name}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
3216
|
+
|
3217
|
+
# query parameters
|
3218
|
+
query_params = {}
|
3219
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
3220
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
3221
|
+
|
3222
|
+
# header parameters
|
3223
|
+
header_params = {}
|
3224
|
+
|
3225
|
+
# HTTP header 'Accept' (if needed)
|
3226
|
+
_header_accept = ['application/json']
|
3227
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
3228
|
+
|
3229
|
+
# HTTP header 'Content-Type'
|
3230
|
+
_header_content_type = []
|
3231
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
3232
|
+
|
3233
|
+
# form parameters
|
3234
|
+
form_params = {}
|
3235
|
+
|
3236
|
+
# http body (model)
|
3237
|
+
post_body = nil
|
3238
|
+
|
3239
|
+
|
3240
|
+
auth_names = []
|
3241
|
+
result = @api_client.call_api(:GET, path,
|
3242
|
+
:header_params => header_params,
|
3243
|
+
:query_params => query_params,
|
3244
|
+
:form_params => form_params,
|
3245
|
+
:body => post_body,
|
3246
|
+
:auth_names => auth_names,
|
3247
|
+
:return_type => 'DocumentResponse')
|
3248
|
+
if Configuration.debugging
|
3249
|
+
Configuration.logger.debug "API called: PdfApi#get_document. Result: #{result.inspect}"
|
3250
|
+
end
|
3251
|
+
return result
|
3252
|
+
end
|
3253
|
+
|
3254
|
+
# Read document image by number.
|
3255
|
+
#
|
3256
|
+
# @param name The document name.
|
3257
|
+
# @param page_number The page number.
|
3258
|
+
# @param image_number The image number.
|
3259
|
+
# @param [Hash] opts the optional parameters
|
3260
|
+
# @option opts [String] :storage The document storage.
|
3261
|
+
# @option opts [String] :folder The document folder.
|
3262
|
+
# @return [ImageResponse]
|
3263
|
+
def get_image(name, page_number, image_number, opts = {})
|
3264
|
+
if Configuration.debugging
|
3265
|
+
Configuration.logger.debug "Calling API: PdfApi#get_image ..."
|
3266
|
+
end
|
3267
|
+
|
3268
|
+
# verify the required parameter 'name' is set
|
3269
|
+
fail "Missing the required parameter 'name' when calling get_image" if name.nil?
|
3270
|
+
|
3271
|
+
# verify the required parameter 'page_number' is set
|
3272
|
+
fail "Missing the required parameter 'page_number' when calling get_image" if page_number.nil?
|
3273
|
+
|
3274
|
+
# verify the required parameter 'image_number' is set
|
3275
|
+
fail "Missing the required parameter 'image_number' when calling get_image" if image_number.nil?
|
3276
|
+
|
3277
|
+
# resource path
|
3278
|
+
path = "/pdf/{name}/pages/{pageNumber}/images/{imageNumber}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'imageNumber' + '}', image_number.to_s)
|
3279
|
+
|
3280
|
+
# query parameters
|
3281
|
+
query_params = {}
|
3282
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
3283
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
3284
|
+
|
3285
|
+
# header parameters
|
3286
|
+
header_params = {}
|
3287
|
+
|
3288
|
+
# HTTP header 'Accept' (if needed)
|
3289
|
+
_header_accept = ['application/json']
|
3290
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
3291
|
+
|
3292
|
+
# HTTP header 'Content-Type'
|
3293
|
+
_header_content_type = []
|
3294
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
3295
|
+
|
3296
|
+
# form parameters
|
3297
|
+
form_params = {}
|
3298
|
+
|
3299
|
+
# http body (model)
|
3300
|
+
post_body = nil
|
3301
|
+
|
3302
|
+
|
3303
|
+
auth_names = []
|
3304
|
+
result = @api_client.call_api(:GET, path,
|
3305
|
+
:header_params => header_params,
|
3306
|
+
:query_params => query_params,
|
3307
|
+
:form_params => form_params,
|
3308
|
+
:body => post_body,
|
3309
|
+
:auth_names => auth_names,
|
3310
|
+
:return_type => 'ImageResponse')
|
3311
|
+
if Configuration.debugging
|
3312
|
+
Configuration.logger.debug "API called: PdfApi#get_image. Result: #{result.inspect}"
|
3313
|
+
end
|
3314
|
+
return result
|
3315
|
+
end
|
3316
|
+
|
3317
|
+
end
|
3318
|
+
end
|