test_kaferi_cloud 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/D://tmp//2018-02027//Ruby//.gitignore +42 -0
  3. data/D://tmp//2018-02027//Ruby//.idea//.rakeTasks +7 -0
  4. data/D://tmp//2018-02027//Ruby//.idea//inspectionProfiles//Project_Default.xml +6 -0
  5. data/D://tmp//2018-02027//Ruby//.idea//misc.xml +4 -0
  6. data/D://tmp//2018-02027//Ruby//.idea//modules.xml +8 -0
  7. data/D://tmp//2018-02027//Ruby//.idea//ruby.iml +15 -0
  8. data/D://tmp//2018-02027//Ruby//.idea//vcs.xml +6 -0
  9. data/D://tmp//2018-02027//Ruby//.idea//workspace.xml +776 -0
  10. data/D://tmp//2018-02027//Ruby//.swagger-codegen-ignore +58 -0
  11. data/D://tmp//2018-02027//Ruby//.swagger-codegen//VERSION +1 -0
  12. data/D://tmp//2018-02027//Ruby//LICENSE +21 -0
  13. data/D://tmp//2018-02027//Ruby//README.md +37 -0
  14. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud.rb +126 -0
  15. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//api//pdf_api.rb +4026 -0
  16. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//api_client.rb +523 -0
  17. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//api_error.rb +47 -0
  18. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//configuration.rb +189 -0
  19. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//annotation.rb +260 -0
  20. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//annotation_response.rb +222 -0
  21. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//annotations.rb +211 -0
  22. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//annotations_response.rb +222 -0
  23. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//append_document.rb +228 -0
  24. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//attachment.rb +270 -0
  25. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//attachment_response.rb +222 -0
  26. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//attachments.rb +211 -0
  27. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//attachments_response.rb +222 -0
  28. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//bookmarks.rb +211 -0
  29. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//bookmarks_response.rb +222 -0
  30. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//color.rb +244 -0
  31. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//document.rb +220 -0
  32. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//document_pages_response.rb +222 -0
  33. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//document_properties.rb +211 -0
  34. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//document_properties_response.rb +222 -0
  35. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//document_property.rb +227 -0
  36. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//document_property_response.rb +222 -0
  37. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//document_response.rb +233 -0
  38. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//document_text_replace_response.rb +231 -0
  39. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//field.rb +254 -0
  40. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//field_response.rb +222 -0
  41. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//field_type.rb +44 -0
  42. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//fields.rb +211 -0
  43. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//fields_response.rb +222 -0
  44. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//font_styles.rb +43 -0
  45. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//horizontal_alignment.rb +44 -0
  46. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//http_status_code.rb +87 -0
  47. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//image.rb +220 -0
  48. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//image_response.rb +222 -0
  49. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//images.rb +211 -0
  50. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//images_list_request.rb +205 -0
  51. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//images_response.rb +222 -0
  52. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//line_spacing.rb +43 -0
  53. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//link.rb +228 -0
  54. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//link_action_type.rb +46 -0
  55. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//link_annotation.rb +236 -0
  56. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//link_annotation_response.rb +222 -0
  57. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//link_annotations.rb +211 -0
  58. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//link_annotations_response.rb +222 -0
  59. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//link_element.rb +200 -0
  60. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//link_highlighting_mode.rb +45 -0
  61. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//merge_documents.rb +200 -0
  62. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//optimize_options.rb +293 -0
  63. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//page.rb +228 -0
  64. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//page_text_replace_response.rb +231 -0
  65. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//page_word_count.rb +218 -0
  66. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//pages.rb +211 -0
  67. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//paragraph.rb +303 -0
  68. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//rectangle.rb +244 -0
  69. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//rotation.rb +44 -0
  70. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//saa_spose_response.rb +213 -0
  71. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//segment.rb +206 -0
  72. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//signature.rb +333 -0
  73. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//signature_type.rb +42 -0
  74. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//split_result.rb +200 -0
  75. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//split_result_document.rb +238 -0
  76. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//split_result_response.rb +223 -0
  77. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//stamp.rb +413 -0
  78. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//stamp_type.rb +44 -0
  79. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_format.rb +227 -0
  80. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_format_response.rb +222 -0
  81. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_horizontal_alignment.rb +47 -0
  82. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_item.rb +218 -0
  83. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_item_response.rb +222 -0
  84. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_items.rb +211 -0
  85. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_items_response.rb +222 -0
  86. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_line.rb +210 -0
  87. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_rect.rb +220 -0
  88. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_rects.rb +199 -0
  89. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_rects_response.rb +222 -0
  90. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_replace.rb +253 -0
  91. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_replace_list_request.rb +232 -0
  92. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_replace_request.rb +262 -0
  93. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_replace_response.rb +222 -0
  94. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//text_state.rb +248 -0
  95. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//tiff_export_options.rb +348 -0
  96. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//vertical_alignment.rb +45 -0
  97. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//word_count.rb +199 -0
  98. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//word_count_response.rb +223 -0
  99. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//models//wrap_mode.rb +44 -0
  100. data/D://tmp//2018-02027//Ruby//lib//test_kaferi_cloud//version.rb +24 -0
  101. data/D://tmp//2018-02027//Ruby//test_kaferi_cloud.gemspec +49 -0
  102. metadata +102 -2
@@ -0,0 +1,58 @@
1
+ # Swagger Codegen Ignore
2
+ # Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
24
+
25
+
26
+
27
+ *.sh
28
+ #.travis.yml
29
+ .gitignore
30
+ *.md
31
+ docs/*
32
+ #spec/**
33
+ #spec/api/*
34
+ #spec/models/*
35
+
36
+ #**/*.nuspec
37
+
38
+ #Ignore enums that are not properly generated. We have good ones in sources already.
39
+
40
+ lib/test_kaferi_cloud/models/field_type.rb
41
+ lib/test_kaferi_cloud/models/font_styles.rb
42
+ lib/test_kaferi_cloud/models/horizontal_alignment.rb
43
+ lib/test_kaferi_cloud/models/http_status_code.rb
44
+ #lib/test_kaferi_cloud/models/line_spacing.rb
45
+ lib/test_kaferi_cloud/models/link_highlighting_mode.rb
46
+ lib/test_kaferi_cloud/models/rotation.rb
47
+ #lib/test_kaferi_cloud/models/text_horizontal_alignment.rb
48
+ lib/test_kaferi_cloud/models/stamp_type.rb
49
+ #lib/test_kaferi_cloud/models/vertical_alignment.rb
50
+ #lib/test_kaferi_cloud/models/wrap_mode.rb
51
+ lib/test_kaferi_cloud/models/link_action_type.rb
52
+ lib/test_kaferi_cloud/models/signature_type.rb
53
+ # Ignore other files and folders
54
+
55
+ .rspec
56
+ Gemfile
57
+ Rakefile
58
+
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Aspose.Pdf for Cloud
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.
@@ -0,0 +1,37 @@
1
+ # Aspose.Pdf for Cloud
2
+ [Aspose.Pdf for Cloud](https://products.aspose.cloud/pdf/cloud) is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of Pdf documents in the cloud.
3
+
4
+ Our Cloud SDKs are wrappers around REST API in various programming languages, allowing you to process documents in language of your choice quickly and easily, gaining all benefits of strong types and IDE highlights. This repository contains new generation SDKs for Aspose.Pdf for Cloud and examples.
5
+
6
+ These SDKs are now fully supported. If you have any questions, see any bugs or have enhancement request, feel free to reach out to us at [Free Support Forums](https://forum.aspose.cloud/c/pdf).
7
+
8
+ # Currently Available SDKs
9
+
10
+ The following SDKs are currently available:
11
+
12
+ Directory | Description
13
+ --------- | -----------
14
+ [.NET SDK](SDKs/NET) | Aspose.Pdf for Cloud .NET SDK
15
+ [ruby SDK](SDKs/ruby) | Aspose.Pdf for Cloud .NET SDK
16
+
17
+ To use these SDKs, you will need App SID and App Key which can be looked up at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/#/apps) (free registration in Aspose Cloud is required for this).
18
+
19
+ # Comparison with Old generation SDKs
20
+ New SDKs have the following advantages over the [previous versions](https://github.com/aspose-pdf/Aspose.Pdf-for-Cloud):
21
+ + SDK is fully in sync with the API, all missing methods are added
22
+ + Classes, methods and properties have comments and are IDE-friendly
23
+ + Better security
24
+ + Usage of Request/Response classes to represent long lists of parameters. This allows for cleaner code and easier backwards-compatibility going forward
25
+
26
+ New SDKs are not backwards compatible with previous generation because of the last item. It should be straightforward to convert your code to using Request/Response objects, if you need any help on migration please ask at [Free Support Forums](https://forum.aspose.cloud/c/pdf).
27
+
28
+ # Licensing
29
+ All Aspose.Pdf for Cloud SDKs are licensed under [MIT License](LICENSE).
30
+
31
+ # Resources
32
+ + [**Website**](https://www.aspose.cloud)
33
+ + [**Product Home**](https://products.aspose.cloud/pdf/cloud)
34
+ + [**Documentation**](https://docs.aspose.cloud/display/pdfcloud/Home)
35
+ + [**Free Support Forum**](https://forum.aspose.cloud/c/pdf)
36
+ + [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
37
+ + [**Blog**](https://blog.aspose.cloud/category/aspose-products/aspose-pdf-product-family/)
@@ -0,0 +1,126 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2018 Aspose.Pdf for Cloud
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ SOFTWARE.
19
+ --------------------------------------------------------------------------------------------------------------------
20
+ =end
21
+
22
+ # Common files
23
+ require_relative 'test_kaferi_cloud/api_client'
24
+ require_relative 'test_kaferi_cloud/api_error'
25
+ require_relative 'test_kaferi_cloud/version'
26
+ require_relative 'test_kaferi_cloud/configuration'
27
+
28
+ # Models
29
+ require_relative 'test_kaferi_cloud/models/append_document'
30
+ require_relative 'test_kaferi_cloud/models/color'
31
+ require_relative 'test_kaferi_cloud/models/field_type'
32
+ require_relative 'test_kaferi_cloud/models/font_styles'
33
+ require_relative 'test_kaferi_cloud/models/horizontal_alignment'
34
+ require_relative 'test_kaferi_cloud/models/http_status_code'
35
+ require_relative 'test_kaferi_cloud/models/images_list_request'
36
+ require_relative 'test_kaferi_cloud/models/line_spacing'
37
+ require_relative 'test_kaferi_cloud/models/link'
38
+ require_relative 'test_kaferi_cloud/models/link_action_type'
39
+ require_relative 'test_kaferi_cloud/models/link_element'
40
+ require_relative 'test_kaferi_cloud/models/link_highlighting_mode'
41
+ require_relative 'test_kaferi_cloud/models/merge_documents'
42
+ require_relative 'test_kaferi_cloud/models/optimize_options'
43
+ require_relative 'test_kaferi_cloud/models/page_word_count'
44
+ require_relative 'test_kaferi_cloud/models/paragraph'
45
+ require_relative 'test_kaferi_cloud/models/rectangle'
46
+ require_relative 'test_kaferi_cloud/models/rotation'
47
+ require_relative 'test_kaferi_cloud/models/saa_spose_response'
48
+ require_relative 'test_kaferi_cloud/models/segment'
49
+ require_relative 'test_kaferi_cloud/models/signature'
50
+ require_relative 'test_kaferi_cloud/models/signature_type'
51
+ require_relative 'test_kaferi_cloud/models/split_result'
52
+ require_relative 'test_kaferi_cloud/models/stamp'
53
+ require_relative 'test_kaferi_cloud/models/stamp_type'
54
+ require_relative 'test_kaferi_cloud/models/text_horizontal_alignment'
55
+ require_relative 'test_kaferi_cloud/models/text_line'
56
+ require_relative 'test_kaferi_cloud/models/text_rect'
57
+ require_relative 'test_kaferi_cloud/models/text_rects'
58
+ require_relative 'test_kaferi_cloud/models/text_replace'
59
+ require_relative 'test_kaferi_cloud/models/text_replace_list_request'
60
+ require_relative 'test_kaferi_cloud/models/text_state'
61
+ require_relative 'test_kaferi_cloud/models/tiff_export_options'
62
+ require_relative 'test_kaferi_cloud/models/vertical_alignment'
63
+ require_relative 'test_kaferi_cloud/models/word_count'
64
+ require_relative 'test_kaferi_cloud/models/wrap_mode'
65
+ require_relative 'test_kaferi_cloud/models/annotation'
66
+ require_relative 'test_kaferi_cloud/models/annotation_response'
67
+ require_relative 'test_kaferi_cloud/models/annotations'
68
+ require_relative 'test_kaferi_cloud/models/annotations_response'
69
+ require_relative 'test_kaferi_cloud/models/attachment'
70
+ require_relative 'test_kaferi_cloud/models/attachment_response'
71
+ require_relative 'test_kaferi_cloud/models/attachments'
72
+ require_relative 'test_kaferi_cloud/models/attachments_response'
73
+ require_relative 'test_kaferi_cloud/models/bookmarks'
74
+ require_relative 'test_kaferi_cloud/models/bookmarks_response'
75
+ require_relative 'test_kaferi_cloud/models/document'
76
+ require_relative 'test_kaferi_cloud/models/document_pages_response'
77
+ require_relative 'test_kaferi_cloud/models/document_properties'
78
+ require_relative 'test_kaferi_cloud/models/document_properties_response'
79
+ require_relative 'test_kaferi_cloud/models/document_property'
80
+ require_relative 'test_kaferi_cloud/models/document_property_response'
81
+ require_relative 'test_kaferi_cloud/models/document_response'
82
+ require_relative 'test_kaferi_cloud/models/field'
83
+ require_relative 'test_kaferi_cloud/models/field_response'
84
+ require_relative 'test_kaferi_cloud/models/fields'
85
+ require_relative 'test_kaferi_cloud/models/fields_response'
86
+ require_relative 'test_kaferi_cloud/models/image'
87
+ require_relative 'test_kaferi_cloud/models/image_response'
88
+ require_relative 'test_kaferi_cloud/models/images'
89
+ require_relative 'test_kaferi_cloud/models/images_response'
90
+ require_relative 'test_kaferi_cloud/models/link_annotation'
91
+ require_relative 'test_kaferi_cloud/models/link_annotation_response'
92
+ require_relative 'test_kaferi_cloud/models/link_annotations'
93
+ require_relative 'test_kaferi_cloud/models/link_annotations_response'
94
+ require_relative 'test_kaferi_cloud/models/page'
95
+ require_relative 'test_kaferi_cloud/models/pages'
96
+ require_relative 'test_kaferi_cloud/models/split_result_document'
97
+ require_relative 'test_kaferi_cloud/models/split_result_response'
98
+ require_relative 'test_kaferi_cloud/models/text_format'
99
+ require_relative 'test_kaferi_cloud/models/text_format_response'
100
+ require_relative 'test_kaferi_cloud/models/text_item'
101
+ require_relative 'test_kaferi_cloud/models/text_item_response'
102
+ require_relative 'test_kaferi_cloud/models/text_items'
103
+ require_relative 'test_kaferi_cloud/models/text_items_response'
104
+ require_relative 'test_kaferi_cloud/models/text_rects_response'
105
+ require_relative 'test_kaferi_cloud/models/text_replace_request'
106
+ require_relative 'test_kaferi_cloud/models/text_replace_response'
107
+ require_relative 'test_kaferi_cloud/models/word_count_response'
108
+ require_relative 'test_kaferi_cloud/models/document_text_replace_response'
109
+ require_relative 'test_kaferi_cloud/models/page_text_replace_response'
110
+
111
+ # APIs
112
+ require_relative 'test_kaferi_cloud/api/pdf_api'
113
+
114
+ module TestKaferiCloud
115
+ class << self
116
+ # Customize default settings for the SDK using block.
117
+ # If no block given, return the default Configuration object.
118
+ def configure
119
+ if block_given?
120
+ yield(Configuration.default)
121
+ else
122
+ Configuration.default
123
+ end
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,4026 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2018 Aspose.Pdf for Cloud
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ SOFTWARE.
19
+ --------------------------------------------------------------------------------------------------------------------
20
+ =end
21
+
22
+ require "uri"
23
+
24
+ module TestKaferiCloud
25
+ class PdfApi
26
+ attr_accessor :api_client
27
+
28
+ def initialize(api_client = ApiClient.default)
29
+ @api_client = api_client
30
+ end
31
+
32
+ # Delete document page by its number.
33
+ #
34
+ # @param name The document name.
35
+ # @param page_number The page number.
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [String] :storage The document storage.
38
+ # @option opts [String] :folder The document folder.
39
+ # @return [SaaSposeResponse]
40
+ def delete_page(name, page_number, opts = {})
41
+ data, _status_code, _headers = delete_page_with_http_info(name, page_number, opts)
42
+ return data
43
+ end
44
+
45
+ # Delete document page by its number.
46
+ #
47
+ # @param name The document name.
48
+ # @param page_number The page number.
49
+ # @param [Hash] opts the optional parameters
50
+ # @option opts [String] :storage The document storage.
51
+ # @option opts [String] :folder The document folder.
52
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
53
+ def delete_page_with_http_info(name, page_number, opts = {})
54
+ if @api_client.config.debugging
55
+ @api_client.config.logger.debug "Calling API: PdfApi.delete_page ..."
56
+ end
57
+ # verify the required parameter 'name' is set
58
+ if @api_client.config.client_side_validation && name.nil?
59
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.delete_page"
60
+ end
61
+ # verify the required parameter 'page_number' is set
62
+ if @api_client.config.client_side_validation && page_number.nil?
63
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.delete_page"
64
+ end
65
+ # resource path
66
+ local_var_path = "/pdf/{name}/pages/{pageNumber}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
67
+
68
+ # query parameters
69
+ query_params = {}
70
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
71
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
72
+
73
+ # header parameters
74
+ header_params = {}
75
+ # HTTP header 'Accept' (if needed)
76
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
77
+ # HTTP header 'Content-Type'
78
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
79
+
80
+ # form parameters
81
+ form_params = {}
82
+
83
+ # http body (model)
84
+ post_body = nil
85
+ auth_names = []
86
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
87
+ :header_params => header_params,
88
+ :query_params => query_params,
89
+ :form_params => form_params,
90
+ :body => post_body,
91
+ :auth_names => auth_names,
92
+ :return_type => 'SaaSposeResponse')
93
+ if @api_client.config.debugging
94
+ @api_client.config.logger.debug "API called: PdfApi#delete_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
95
+ end
96
+ return data, status_code, headers
97
+ end
98
+
99
+ # Delete custom document properties.
100
+ #
101
+ # @param name
102
+ # @param [Hash] opts the optional parameters
103
+ # @option opts [String] :storage
104
+ # @option opts [String] :folder
105
+ # @return [SaaSposeResponse]
106
+ def delete_properties(name, opts = {})
107
+ data, _status_code, _headers = delete_properties_with_http_info(name, opts)
108
+ return data
109
+ end
110
+
111
+ # Delete custom document properties.
112
+ #
113
+ # @param name
114
+ # @param [Hash] opts the optional parameters
115
+ # @option opts [String] :storage
116
+ # @option opts [String] :folder
117
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
118
+ def delete_properties_with_http_info(name, opts = {})
119
+ if @api_client.config.debugging
120
+ @api_client.config.logger.debug "Calling API: PdfApi.delete_properties ..."
121
+ end
122
+ # verify the required parameter 'name' is set
123
+ if @api_client.config.client_side_validation && name.nil?
124
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.delete_properties"
125
+ end
126
+ # resource path
127
+ local_var_path = "/pdf/{name}/documentproperties".sub('{' + 'name' + '}', name.to_s)
128
+
129
+ # query parameters
130
+ query_params = {}
131
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
132
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
133
+
134
+ # header parameters
135
+ header_params = {}
136
+ # HTTP header 'Accept' (if needed)
137
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
138
+ # HTTP header 'Content-Type'
139
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
140
+
141
+ # form parameters
142
+ form_params = {}
143
+
144
+ # http body (model)
145
+ post_body = nil
146
+ auth_names = []
147
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
148
+ :header_params => header_params,
149
+ :query_params => query_params,
150
+ :form_params => form_params,
151
+ :body => post_body,
152
+ :auth_names => auth_names,
153
+ :return_type => 'SaaSposeResponse')
154
+ if @api_client.config.debugging
155
+ @api_client.config.logger.debug "API called: PdfApi#delete_properties\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
156
+ end
157
+ return data, status_code, headers
158
+ end
159
+
160
+ # Delete document property.
161
+ #
162
+ # @param name
163
+ # @param property_name
164
+ # @param [Hash] opts the optional parameters
165
+ # @option opts [String] :storage
166
+ # @option opts [String] :folder
167
+ # @return [SaaSposeResponse]
168
+ def delete_property(name, property_name, opts = {})
169
+ data, _status_code, _headers = delete_property_with_http_info(name, property_name, opts)
170
+ return data
171
+ end
172
+
173
+ # Delete document property.
174
+ #
175
+ # @param name
176
+ # @param property_name
177
+ # @param [Hash] opts the optional parameters
178
+ # @option opts [String] :storage
179
+ # @option opts [String] :folder
180
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
181
+ def delete_property_with_http_info(name, property_name, opts = {})
182
+ if @api_client.config.debugging
183
+ @api_client.config.logger.debug "Calling API: PdfApi.delete_property ..."
184
+ end
185
+ # verify the required parameter 'name' is set
186
+ if @api_client.config.client_side_validation && name.nil?
187
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.delete_property"
188
+ end
189
+ # verify the required parameter 'property_name' is set
190
+ if @api_client.config.client_side_validation && property_name.nil?
191
+ fail ArgumentError, "Missing the required parameter 'property_name' when calling PdfApi.delete_property"
192
+ end
193
+ # resource path
194
+ local_var_path = "/pdf/{name}/documentproperties/{propertyName}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'propertyName' + '}', property_name.to_s)
195
+
196
+ # query parameters
197
+ query_params = {}
198
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
199
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
200
+
201
+ # header parameters
202
+ header_params = {}
203
+ # HTTP header 'Accept' (if needed)
204
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
205
+ # HTTP header 'Content-Type'
206
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
207
+
208
+ # form parameters
209
+ form_params = {}
210
+
211
+ # http body (model)
212
+ post_body = nil
213
+ auth_names = []
214
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
215
+ :header_params => header_params,
216
+ :query_params => query_params,
217
+ :form_params => form_params,
218
+ :body => post_body,
219
+ :auth_names => auth_names,
220
+ :return_type => 'SaaSposeResponse')
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug "API called: PdfApi#delete_property\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
223
+ end
224
+ return data, status_code, headers
225
+ end
226
+
227
+ # Read common document info or convert to some format if the format specified.
228
+ #
229
+ # @param name The document name.
230
+ # @param [Hash] opts the optional parameters
231
+ # @option opts [String] :format The format to convert.
232
+ # @option opts [String] :storage The document storage.
233
+ # @option opts [String] :folder The document folder.
234
+ # @option opts [String] :out_path Path to save result
235
+ # @return [File]
236
+ def get_document(name, opts = {})
237
+ data, _status_code, _headers = get_document_with_http_info(name, opts)
238
+ return data
239
+ end
240
+
241
+ # Read common document info or convert to some format if the format specified.
242
+ #
243
+ # @param name The document name.
244
+ # @param [Hash] opts the optional parameters
245
+ # @option opts [String] :format The format to convert.
246
+ # @option opts [String] :storage The document storage.
247
+ # @option opts [String] :folder The document folder.
248
+ # @option opts [String] :out_path Path to save result
249
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
250
+ def get_document_with_http_info(name, opts = {})
251
+ if @api_client.config.debugging
252
+ @api_client.config.logger.debug "Calling API: PdfApi.get_document ..."
253
+ end
254
+ # verify the required parameter 'name' is set
255
+ if @api_client.config.client_side_validation && name.nil?
256
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_document"
257
+ end
258
+ # resource path
259
+ local_var_path = "/pdf/{name}".sub('{' + 'name' + '}', name.to_s)
260
+
261
+ # query parameters
262
+ query_params = {}
263
+ query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
264
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
265
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
266
+ query_params[:'outPath'] = opts[:'out_path'] if !opts[:'out_path'].nil?
267
+
268
+ # header parameters
269
+ header_params = {}
270
+ # HTTP header 'Accept' (if needed)
271
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
272
+ # HTTP header 'Content-Type'
273
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
274
+
275
+ # form parameters
276
+ form_params = {}
277
+
278
+ # http body (model)
279
+ post_body = nil
280
+ auth_names = []
281
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
282
+ :header_params => header_params,
283
+ :query_params => query_params,
284
+ :form_params => form_params,
285
+ :body => post_body,
286
+ :auth_names => auth_names,
287
+ :return_type => 'File')
288
+ if @api_client.config.debugging
289
+ @api_client.config.logger.debug "API called: PdfApi#get_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
290
+ end
291
+ return data, status_code, headers
292
+ end
293
+
294
+ # Read document attachment info by its index.
295
+ #
296
+ # @param name The document name.
297
+ # @param attachment_index The attachment index.
298
+ # @param [Hash] opts the optional parameters
299
+ # @option opts [String] :storage The document storage.
300
+ # @option opts [String] :folder The document folder.
301
+ # @return [AttachmentResponse]
302
+ def get_document_attachment_by_index(name, attachment_index, opts = {})
303
+ data, _status_code, _headers = get_document_attachment_by_index_with_http_info(name, attachment_index, opts)
304
+ return data
305
+ end
306
+
307
+ # Read document attachment info by its index.
308
+ #
309
+ # @param name The document name.
310
+ # @param attachment_index The attachment index.
311
+ # @param [Hash] opts the optional parameters
312
+ # @option opts [String] :storage The document storage.
313
+ # @option opts [String] :folder The document folder.
314
+ # @return [Array<(AttachmentResponse, Fixnum, Hash)>] AttachmentResponse data, response status code and response headers
315
+ def get_document_attachment_by_index_with_http_info(name, attachment_index, opts = {})
316
+ if @api_client.config.debugging
317
+ @api_client.config.logger.debug "Calling API: PdfApi.get_document_attachment_by_index ..."
318
+ end
319
+ # verify the required parameter 'name' is set
320
+ if @api_client.config.client_side_validation && name.nil?
321
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_document_attachment_by_index"
322
+ end
323
+ # verify the required parameter 'attachment_index' is set
324
+ if @api_client.config.client_side_validation && attachment_index.nil?
325
+ fail ArgumentError, "Missing the required parameter 'attachment_index' when calling PdfApi.get_document_attachment_by_index"
326
+ end
327
+ # resource path
328
+ local_var_path = "/pdf/{name}/attachments/{attachmentIndex}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'attachmentIndex' + '}', attachment_index.to_s)
329
+
330
+ # query parameters
331
+ query_params = {}
332
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
333
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
334
+
335
+ # header parameters
336
+ header_params = {}
337
+ # HTTP header 'Accept' (if needed)
338
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
339
+ # HTTP header 'Content-Type'
340
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
341
+
342
+ # form parameters
343
+ form_params = {}
344
+
345
+ # http body (model)
346
+ post_body = nil
347
+ auth_names = []
348
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
349
+ :header_params => header_params,
350
+ :query_params => query_params,
351
+ :form_params => form_params,
352
+ :body => post_body,
353
+ :auth_names => auth_names,
354
+ :return_type => 'AttachmentResponse')
355
+ if @api_client.config.debugging
356
+ @api_client.config.logger.debug "API called: PdfApi#get_document_attachment_by_index\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
357
+ end
358
+ return data, status_code, headers
359
+ end
360
+
361
+ # Read document attachments info.
362
+ #
363
+ # @param name The document name.
364
+ # @param [Hash] opts the optional parameters
365
+ # @option opts [String] :storage The document storage.
366
+ # @option opts [String] :folder The document folder.
367
+ # @return [AttachmentsResponse]
368
+ def get_document_attachments(name, opts = {})
369
+ data, _status_code, _headers = get_document_attachments_with_http_info(name, opts)
370
+ return data
371
+ end
372
+
373
+ # Read document attachments info.
374
+ #
375
+ # @param name The document name.
376
+ # @param [Hash] opts the optional parameters
377
+ # @option opts [String] :storage The document storage.
378
+ # @option opts [String] :folder The document folder.
379
+ # @return [Array<(AttachmentsResponse, Fixnum, Hash)>] AttachmentsResponse data, response status code and response headers
380
+ def get_document_attachments_with_http_info(name, opts = {})
381
+ if @api_client.config.debugging
382
+ @api_client.config.logger.debug "Calling API: PdfApi.get_document_attachments ..."
383
+ end
384
+ # verify the required parameter 'name' is set
385
+ if @api_client.config.client_side_validation && name.nil?
386
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_document_attachments"
387
+ end
388
+ # resource path
389
+ local_var_path = "/pdf/{name}/attachments".sub('{' + 'name' + '}', name.to_s)
390
+
391
+ # query parameters
392
+ query_params = {}
393
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
394
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
395
+
396
+ # header parameters
397
+ header_params = {}
398
+ # HTTP header 'Accept' (if needed)
399
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
400
+ # HTTP header 'Content-Type'
401
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
402
+
403
+ # form parameters
404
+ form_params = {}
405
+
406
+ # http body (model)
407
+ post_body = nil
408
+ auth_names = []
409
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
410
+ :header_params => header_params,
411
+ :query_params => query_params,
412
+ :form_params => form_params,
413
+ :body => post_body,
414
+ :auth_names => auth_names,
415
+ :return_type => 'AttachmentsResponse')
416
+ if @api_client.config.debugging
417
+ @api_client.config.logger.debug "API called: PdfApi#get_document_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
418
+ end
419
+ return data, status_code, headers
420
+ end
421
+
422
+ # Read document bookmarks.
423
+ #
424
+ # @param name The document name.
425
+ # @param [Hash] opts the optional parameters
426
+ # @option opts [String] :storage The document storage.
427
+ # @option opts [String] :folder The document folder.
428
+ # @return [BookmarksResponse]
429
+ def get_document_bookmarks(name, opts = {})
430
+ data, _status_code, _headers = get_document_bookmarks_with_http_info(name, opts)
431
+ return data
432
+ end
433
+
434
+ # Read document bookmarks.
435
+ #
436
+ # @param name The document name.
437
+ # @param [Hash] opts the optional parameters
438
+ # @option opts [String] :storage The document storage.
439
+ # @option opts [String] :folder The document folder.
440
+ # @return [Array<(BookmarksResponse, Fixnum, Hash)>] BookmarksResponse data, response status code and response headers
441
+ def get_document_bookmarks_with_http_info(name, opts = {})
442
+ if @api_client.config.debugging
443
+ @api_client.config.logger.debug "Calling API: PdfApi.get_document_bookmarks ..."
444
+ end
445
+ # verify the required parameter 'name' is set
446
+ if @api_client.config.client_side_validation && name.nil?
447
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_document_bookmarks"
448
+ end
449
+ # resource path
450
+ local_var_path = "/pdf/{name}/bookmarks".sub('{' + 'name' + '}', name.to_s)
451
+
452
+ # query parameters
453
+ query_params = {}
454
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
455
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
456
+
457
+ # header parameters
458
+ header_params = {}
459
+ # HTTP header 'Accept' (if needed)
460
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
461
+ # HTTP header 'Content-Type'
462
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
463
+
464
+ # form parameters
465
+ form_params = {}
466
+
467
+ # http body (model)
468
+ post_body = nil
469
+ auth_names = []
470
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
471
+ :header_params => header_params,
472
+ :query_params => query_params,
473
+ :form_params => form_params,
474
+ :body => post_body,
475
+ :auth_names => auth_names,
476
+ :return_type => 'BookmarksResponse')
477
+ if @api_client.config.debugging
478
+ @api_client.config.logger.debug "API called: PdfApi#get_document_bookmarks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
479
+ end
480
+ return data, status_code, headers
481
+ end
482
+
483
+ # Read document properties.
484
+ #
485
+ # @param name
486
+ # @param [Hash] opts the optional parameters
487
+ # @option opts [String] :storage
488
+ # @option opts [String] :folder
489
+ # @return [DocumentPropertiesResponse]
490
+ def get_document_properties(name, opts = {})
491
+ data, _status_code, _headers = get_document_properties_with_http_info(name, opts)
492
+ return data
493
+ end
494
+
495
+ # Read document properties.
496
+ #
497
+ # @param name
498
+ # @param [Hash] opts the optional parameters
499
+ # @option opts [String] :storage
500
+ # @option opts [String] :folder
501
+ # @return [Array<(DocumentPropertiesResponse, Fixnum, Hash)>] DocumentPropertiesResponse data, response status code and response headers
502
+ def get_document_properties_with_http_info(name, opts = {})
503
+ if @api_client.config.debugging
504
+ @api_client.config.logger.debug "Calling API: PdfApi.get_document_properties ..."
505
+ end
506
+ # verify the required parameter 'name' is set
507
+ if @api_client.config.client_side_validation && name.nil?
508
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_document_properties"
509
+ end
510
+ # resource path
511
+ local_var_path = "/pdf/{name}/documentproperties".sub('{' + 'name' + '}', name.to_s)
512
+
513
+ # query parameters
514
+ query_params = {}
515
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
516
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
517
+
518
+ # header parameters
519
+ header_params = {}
520
+ # HTTP header 'Accept' (if needed)
521
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
522
+ # HTTP header 'Content-Type'
523
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
524
+
525
+ # form parameters
526
+ form_params = {}
527
+
528
+ # http body (model)
529
+ post_body = nil
530
+ auth_names = []
531
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
532
+ :header_params => header_params,
533
+ :query_params => query_params,
534
+ :form_params => form_params,
535
+ :body => post_body,
536
+ :auth_names => auth_names,
537
+ :return_type => 'DocumentPropertiesResponse')
538
+ if @api_client.config.debugging
539
+ @api_client.config.logger.debug "API called: PdfApi#get_document_properties\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
540
+ end
541
+ return data, status_code, headers
542
+ end
543
+
544
+ # Read document property by name.
545
+ #
546
+ # @param name
547
+ # @param property_name
548
+ # @param [Hash] opts the optional parameters
549
+ # @option opts [String] :storage
550
+ # @option opts [String] :folder
551
+ # @return [DocumentPropertyResponse]
552
+ def get_document_property(name, property_name, opts = {})
553
+ data, _status_code, _headers = get_document_property_with_http_info(name, property_name, opts)
554
+ return data
555
+ end
556
+
557
+ # Read document property by name.
558
+ #
559
+ # @param name
560
+ # @param property_name
561
+ # @param [Hash] opts the optional parameters
562
+ # @option opts [String] :storage
563
+ # @option opts [String] :folder
564
+ # @return [Array<(DocumentPropertyResponse, Fixnum, Hash)>] DocumentPropertyResponse data, response status code and response headers
565
+ def get_document_property_with_http_info(name, property_name, opts = {})
566
+ if @api_client.config.debugging
567
+ @api_client.config.logger.debug "Calling API: PdfApi.get_document_property ..."
568
+ end
569
+ # verify the required parameter 'name' is set
570
+ if @api_client.config.client_side_validation && name.nil?
571
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_document_property"
572
+ end
573
+ # verify the required parameter 'property_name' is set
574
+ if @api_client.config.client_side_validation && property_name.nil?
575
+ fail ArgumentError, "Missing the required parameter 'property_name' when calling PdfApi.get_document_property"
576
+ end
577
+ # resource path
578
+ local_var_path = "/pdf/{name}/documentproperties/{propertyName}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'propertyName' + '}', property_name.to_s)
579
+
580
+ # query parameters
581
+ query_params = {}
582
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
583
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
584
+
585
+ # header parameters
586
+ header_params = {}
587
+ # HTTP header 'Accept' (if needed)
588
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
589
+ # HTTP header 'Content-Type'
590
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
591
+
592
+ # form parameters
593
+ form_params = {}
594
+
595
+ # http body (model)
596
+ post_body = nil
597
+ auth_names = []
598
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
599
+ :header_params => header_params,
600
+ :query_params => query_params,
601
+ :form_params => form_params,
602
+ :body => post_body,
603
+ :auth_names => auth_names,
604
+ :return_type => 'DocumentPropertyResponse')
605
+ if @api_client.config.debugging
606
+ @api_client.config.logger.debug "API called: PdfApi#get_document_property\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
607
+ end
608
+ return data, status_code, headers
609
+ end
610
+
611
+ # Download document attachment content by its index.
612
+ #
613
+ # @param name The document name.
614
+ # @param attachment_index The attachment index.
615
+ # @param [Hash] opts the optional parameters
616
+ # @option opts [String] :storage The document storage.
617
+ # @option opts [String] :folder The document folder.
618
+ # @return [File]
619
+ def get_download_document_attachment_by_index(name, attachment_index, opts = {})
620
+ data, _status_code, _headers = get_download_document_attachment_by_index_with_http_info(name, attachment_index, opts)
621
+ return data
622
+ end
623
+
624
+ # Download document attachment content by its index.
625
+ #
626
+ # @param name The document name.
627
+ # @param attachment_index The attachment index.
628
+ # @param [Hash] opts the optional parameters
629
+ # @option opts [String] :storage The document storage.
630
+ # @option opts [String] :folder The document folder.
631
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
632
+ def get_download_document_attachment_by_index_with_http_info(name, attachment_index, opts = {})
633
+ if @api_client.config.debugging
634
+ @api_client.config.logger.debug "Calling API: PdfApi.get_download_document_attachment_by_index ..."
635
+ end
636
+ # verify the required parameter 'name' is set
637
+ if @api_client.config.client_side_validation && name.nil?
638
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_download_document_attachment_by_index"
639
+ end
640
+ # verify the required parameter 'attachment_index' is set
641
+ if @api_client.config.client_side_validation && attachment_index.nil?
642
+ fail ArgumentError, "Missing the required parameter 'attachment_index' when calling PdfApi.get_download_document_attachment_by_index"
643
+ end
644
+ # resource path
645
+ local_var_path = "/pdf/{name}/attachments/{attachmentIndex}/download".sub('{' + 'name' + '}', name.to_s).sub('{' + 'attachmentIndex' + '}', attachment_index.to_s)
646
+
647
+ # query parameters
648
+ query_params = {}
649
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
650
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
651
+
652
+ # header parameters
653
+ header_params = {}
654
+ # HTTP header 'Accept' (if needed)
655
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
656
+ # HTTP header 'Content-Type'
657
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
658
+
659
+ # form parameters
660
+ form_params = {}
661
+
662
+ # http body (model)
663
+ post_body = nil
664
+ auth_names = []
665
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
666
+ :header_params => header_params,
667
+ :query_params => query_params,
668
+ :form_params => form_params,
669
+ :body => post_body,
670
+ :auth_names => auth_names,
671
+ :return_type => 'File')
672
+ if @api_client.config.debugging
673
+ @api_client.config.logger.debug "API called: PdfApi#get_download_document_attachment_by_index\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
674
+ end
675
+ return data, status_code, headers
676
+ end
677
+
678
+ # Get document field by name.
679
+ #
680
+ # @param name The document name.
681
+ # @param field_name The field name/
682
+ # @param [Hash] opts the optional parameters
683
+ # @option opts [String] :storage The document storage.
684
+ # @option opts [String] :folder The document folder.
685
+ # @return [FieldResponse]
686
+ def get_field(name, field_name, opts = {})
687
+ data, _status_code, _headers = get_field_with_http_info(name, field_name, opts)
688
+ return data
689
+ end
690
+
691
+ # Get document field by name.
692
+ #
693
+ # @param name The document name.
694
+ # @param field_name The field name/
695
+ # @param [Hash] opts the optional parameters
696
+ # @option opts [String] :storage The document storage.
697
+ # @option opts [String] :folder The document folder.
698
+ # @return [Array<(FieldResponse, Fixnum, Hash)>] FieldResponse data, response status code and response headers
699
+ def get_field_with_http_info(name, field_name, opts = {})
700
+ if @api_client.config.debugging
701
+ @api_client.config.logger.debug "Calling API: PdfApi.get_field ..."
702
+ end
703
+ # verify the required parameter 'name' is set
704
+ if @api_client.config.client_side_validation && name.nil?
705
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_field"
706
+ end
707
+ # verify the required parameter 'field_name' is set
708
+ if @api_client.config.client_side_validation && field_name.nil?
709
+ fail ArgumentError, "Missing the required parameter 'field_name' when calling PdfApi.get_field"
710
+ end
711
+ # resource path
712
+ local_var_path = "/pdf/{name}/fields/{fieldName}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'fieldName' + '}', field_name.to_s)
713
+
714
+ # query parameters
715
+ query_params = {}
716
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
717
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
718
+
719
+ # header parameters
720
+ header_params = {}
721
+ # HTTP header 'Accept' (if needed)
722
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
723
+ # HTTP header 'Content-Type'
724
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
725
+
726
+ # form parameters
727
+ form_params = {}
728
+
729
+ # http body (model)
730
+ post_body = nil
731
+ auth_names = []
732
+ data, status_code, headers = @api_client.call_api(:GET, local_var_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 => 'FieldResponse')
739
+ if @api_client.config.debugging
740
+ @api_client.config.logger.debug "API called: PdfApi#get_field\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
741
+ end
742
+ return data, status_code, headers
743
+ end
744
+
745
+ # Get document fields.
746
+ #
747
+ # @param name The document name.
748
+ # @param [Hash] opts the optional parameters
749
+ # @option opts [String] :storage The document storage.
750
+ # @option opts [String] :folder The document folder.
751
+ # @return [FieldsResponse]
752
+ def get_fields(name, opts = {})
753
+ data, _status_code, _headers = get_fields_with_http_info(name, opts)
754
+ return data
755
+ end
756
+
757
+ # Get document fields.
758
+ #
759
+ # @param name The document name.
760
+ # @param [Hash] opts the optional parameters
761
+ # @option opts [String] :storage The document storage.
762
+ # @option opts [String] :folder The document folder.
763
+ # @return [Array<(FieldsResponse, Fixnum, Hash)>] FieldsResponse data, response status code and response headers
764
+ def get_fields_with_http_info(name, opts = {})
765
+ if @api_client.config.debugging
766
+ @api_client.config.logger.debug "Calling API: PdfApi.get_fields ..."
767
+ end
768
+ # verify the required parameter 'name' is set
769
+ if @api_client.config.client_side_validation && name.nil?
770
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_fields"
771
+ end
772
+ # resource path
773
+ local_var_path = "/pdf/{name}/fields".sub('{' + 'name' + '}', name.to_s)
774
+
775
+ # query parameters
776
+ query_params = {}
777
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
778
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
779
+
780
+ # header parameters
781
+ header_params = {}
782
+ # HTTP header 'Accept' (if needed)
783
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
784
+ # HTTP header 'Content-Type'
785
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
786
+
787
+ # form parameters
788
+ form_params = {}
789
+
790
+ # http body (model)
791
+ post_body = nil
792
+ auth_names = []
793
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
794
+ :header_params => header_params,
795
+ :query_params => query_params,
796
+ :form_params => form_params,
797
+ :body => post_body,
798
+ :auth_names => auth_names,
799
+ :return_type => 'FieldsResponse')
800
+ if @api_client.config.debugging
801
+ @api_client.config.logger.debug "API called: PdfApi#get_fields\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
802
+ end
803
+ return data, status_code, headers
804
+ end
805
+
806
+ # Read page fragment.
807
+ #
808
+ # @param name
809
+ # @param page_number
810
+ # @param fragment_number
811
+ # @param [Hash] opts the optional parameters
812
+ # @option opts [String] :with_empty
813
+ # @option opts [String] :storage
814
+ # @option opts [String] :folder
815
+ # @return [TextItemsResponse]
816
+ def get_fragment(name, page_number, fragment_number, opts = {})
817
+ data, _status_code, _headers = get_fragment_with_http_info(name, page_number, fragment_number, opts)
818
+ return data
819
+ end
820
+
821
+ # Read page fragment.
822
+ #
823
+ # @param name
824
+ # @param page_number
825
+ # @param fragment_number
826
+ # @param [Hash] opts the optional parameters
827
+ # @option opts [String] :with_empty
828
+ # @option opts [String] :storage
829
+ # @option opts [String] :folder
830
+ # @return [Array<(TextItemsResponse, Fixnum, Hash)>] TextItemsResponse data, response status code and response headers
831
+ def get_fragment_with_http_info(name, page_number, fragment_number, opts = {})
832
+ if @api_client.config.debugging
833
+ @api_client.config.logger.debug "Calling API: PdfApi.get_fragment ..."
834
+ end
835
+ # verify the required parameter 'name' is set
836
+ if @api_client.config.client_side_validation && name.nil?
837
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_fragment"
838
+ end
839
+ # verify the required parameter 'page_number' is set
840
+ if @api_client.config.client_side_validation && page_number.nil?
841
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_fragment"
842
+ end
843
+ # verify the required parameter 'fragment_number' is set
844
+ if @api_client.config.client_side_validation && fragment_number.nil?
845
+ fail ArgumentError, "Missing the required parameter 'fragment_number' when calling PdfApi.get_fragment"
846
+ end
847
+ # resource path
848
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s)
849
+
850
+ # query parameters
851
+ query_params = {}
852
+ query_params[:'withEmpty'] = opts[:'with_empty'] if !opts[:'with_empty'].nil?
853
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
854
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
855
+
856
+ # header parameters
857
+ header_params = {}
858
+ # HTTP header 'Accept' (if needed)
859
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
860
+ # HTTP header 'Content-Type'
861
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
862
+
863
+ # form parameters
864
+ form_params = {}
865
+
866
+ # http body (model)
867
+ post_body = nil
868
+ auth_names = []
869
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
870
+ :header_params => header_params,
871
+ :query_params => query_params,
872
+ :form_params => form_params,
873
+ :body => post_body,
874
+ :auth_names => auth_names,
875
+ :return_type => 'TextItemsResponse')
876
+ if @api_client.config.debugging
877
+ @api_client.config.logger.debug "API called: PdfApi#get_fragment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
878
+ end
879
+ return data, status_code, headers
880
+ end
881
+
882
+ # Read page fragment text format.
883
+ #
884
+ # @param name
885
+ # @param page_number
886
+ # @param fragment_number
887
+ # @param [Hash] opts the optional parameters
888
+ # @option opts [String] :storage
889
+ # @option opts [String] :folder
890
+ # @return [TextFormatResponse]
891
+ def get_fragment_text_format(name, page_number, fragment_number, opts = {})
892
+ data, _status_code, _headers = get_fragment_text_format_with_http_info(name, page_number, fragment_number, opts)
893
+ return data
894
+ end
895
+
896
+ # Read page fragment text format.
897
+ #
898
+ # @param name
899
+ # @param page_number
900
+ # @param fragment_number
901
+ # @param [Hash] opts the optional parameters
902
+ # @option opts [String] :storage
903
+ # @option opts [String] :folder
904
+ # @return [Array<(TextFormatResponse, Fixnum, Hash)>] TextFormatResponse data, response status code and response headers
905
+ def get_fragment_text_format_with_http_info(name, page_number, fragment_number, opts = {})
906
+ if @api_client.config.debugging
907
+ @api_client.config.logger.debug "Calling API: PdfApi.get_fragment_text_format ..."
908
+ end
909
+ # verify the required parameter 'name' is set
910
+ if @api_client.config.client_side_validation && name.nil?
911
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_fragment_text_format"
912
+ end
913
+ # verify the required parameter 'page_number' is set
914
+ if @api_client.config.client_side_validation && page_number.nil?
915
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_fragment_text_format"
916
+ end
917
+ # verify the required parameter 'fragment_number' is set
918
+ if @api_client.config.client_side_validation && fragment_number.nil?
919
+ fail ArgumentError, "Missing the required parameter 'fragment_number' when calling PdfApi.get_fragment_text_format"
920
+ end
921
+ # resource path
922
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/textFormat".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s)
923
+
924
+ # query parameters
925
+ query_params = {}
926
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
927
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
928
+
929
+ # header parameters
930
+ header_params = {}
931
+ # HTTP header 'Accept' (if needed)
932
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
933
+ # HTTP header 'Content-Type'
934
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
935
+
936
+ # form parameters
937
+ form_params = {}
938
+
939
+ # http body (model)
940
+ post_body = nil
941
+ auth_names = []
942
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
943
+ :header_params => header_params,
944
+ :query_params => query_params,
945
+ :form_params => form_params,
946
+ :body => post_body,
947
+ :auth_names => auth_names,
948
+ :return_type => 'TextFormatResponse')
949
+ if @api_client.config.debugging
950
+ @api_client.config.logger.debug "API called: PdfApi#get_fragment_text_format\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
951
+ end
952
+ return data, status_code, headers
953
+ end
954
+
955
+ # Read page fragments.
956
+ #
957
+ # @param name
958
+ # @param page_number
959
+ # @param [Hash] opts the optional parameters
960
+ # @option opts [String] :with_empty
961
+ # @option opts [String] :storage
962
+ # @option opts [String] :folder
963
+ # @return [TextItemsResponse]
964
+ def get_fragments(name, page_number, opts = {})
965
+ data, _status_code, _headers = get_fragments_with_http_info(name, page_number, opts)
966
+ return data
967
+ end
968
+
969
+ # Read page fragments.
970
+ #
971
+ # @param name
972
+ # @param page_number
973
+ # @param [Hash] opts the optional parameters
974
+ # @option opts [String] :with_empty
975
+ # @option opts [String] :storage
976
+ # @option opts [String] :folder
977
+ # @return [Array<(TextItemsResponse, Fixnum, Hash)>] TextItemsResponse data, response status code and response headers
978
+ def get_fragments_with_http_info(name, page_number, opts = {})
979
+ if @api_client.config.debugging
980
+ @api_client.config.logger.debug "Calling API: PdfApi.get_fragments ..."
981
+ end
982
+ # verify the required parameter 'name' is set
983
+ if @api_client.config.client_side_validation && name.nil?
984
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_fragments"
985
+ end
986
+ # verify the required parameter 'page_number' is set
987
+ if @api_client.config.client_side_validation && page_number.nil?
988
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_fragments"
989
+ end
990
+ # resource path
991
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/fragments".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
992
+
993
+ # query parameters
994
+ query_params = {}
995
+ query_params[:'withEmpty'] = opts[:'with_empty'] if !opts[:'with_empty'].nil?
996
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
997
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
998
+
999
+ # header parameters
1000
+ header_params = {}
1001
+ # HTTP header 'Accept' (if needed)
1002
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1003
+ # HTTP header 'Content-Type'
1004
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1005
+
1006
+ # form parameters
1007
+ form_params = {}
1008
+
1009
+ # http body (model)
1010
+ post_body = nil
1011
+ auth_names = []
1012
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1013
+ :header_params => header_params,
1014
+ :query_params => query_params,
1015
+ :form_params => form_params,
1016
+ :body => post_body,
1017
+ :auth_names => auth_names,
1018
+ :return_type => 'TextItemsResponse')
1019
+ if @api_client.config.debugging
1020
+ @api_client.config.logger.debug "API called: PdfApi#get_fragments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1021
+ end
1022
+ return data, status_code, headers
1023
+ end
1024
+
1025
+ # Read document image by number.
1026
+ #
1027
+ # @param name The document name.
1028
+ # @param page_number The page number.
1029
+ # @param image_number The image format.
1030
+ # @param [Hash] opts the optional parameters
1031
+ # @option opts [String] :storage The document storage.
1032
+ # @option opts [String] :folder The document folder.
1033
+ # @return [File]
1034
+ def get_image(name, page_number, image_number, opts = {})
1035
+ data, _status_code, _headers = get_image_with_http_info(name, page_number, image_number, opts)
1036
+ return data
1037
+ end
1038
+
1039
+ # Read document image by number.
1040
+ #
1041
+ # @param name The document name.
1042
+ # @param page_number The page number.
1043
+ # @param image_number The image format.
1044
+ # @param [Hash] opts the optional parameters
1045
+ # @option opts [String] :storage The document storage.
1046
+ # @option opts [String] :folder The document folder.
1047
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1048
+ def get_image_with_http_info(name, page_number, image_number, opts = {})
1049
+ if @api_client.config.debugging
1050
+ @api_client.config.logger.debug "Calling API: PdfApi.get_image ..."
1051
+ end
1052
+ # verify the required parameter 'name' is set
1053
+ if @api_client.config.client_side_validation && name.nil?
1054
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_image"
1055
+ end
1056
+ # verify the required parameter 'page_number' is set
1057
+ if @api_client.config.client_side_validation && page_number.nil?
1058
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_image"
1059
+ end
1060
+ # verify the required parameter 'image_number' is set
1061
+ if @api_client.config.client_side_validation && image_number.nil?
1062
+ fail ArgumentError, "Missing the required parameter 'image_number' when calling PdfApi.get_image"
1063
+ end
1064
+ # resource path
1065
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/images/{imageNumber}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'imageNumber' + '}', image_number.to_s)
1066
+
1067
+ # query parameters
1068
+ query_params = {}
1069
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1070
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1071
+
1072
+ # header parameters
1073
+ header_params = {}
1074
+ # HTTP header 'Accept' (if needed)
1075
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
1076
+ # HTTP header 'Content-Type'
1077
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1078
+
1079
+ # form parameters
1080
+ form_params = {}
1081
+
1082
+ # http body (model)
1083
+ post_body = nil
1084
+ auth_names = []
1085
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1086
+ :header_params => header_params,
1087
+ :query_params => query_params,
1088
+ :form_params => form_params,
1089
+ :body => post_body,
1090
+ :auth_names => auth_names,
1091
+ :return_type => 'File')
1092
+ if @api_client.config.debugging
1093
+ @api_client.config.logger.debug "API called: PdfApi#get_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1094
+ end
1095
+ return data, status_code, headers
1096
+ end
1097
+
1098
+ # Read document images.
1099
+ #
1100
+ # @param name The document name.
1101
+ # @param page_number The page number.
1102
+ # @param [Hash] opts the optional parameters
1103
+ # @option opts [String] :storage The document storage.
1104
+ # @option opts [String] :folder The document folder.
1105
+ # @return [ImagesResponse]
1106
+ def get_images(name, page_number, opts = {})
1107
+ data, _status_code, _headers = get_images_with_http_info(name, page_number, opts)
1108
+ return data
1109
+ end
1110
+
1111
+ # Read document images.
1112
+ #
1113
+ # @param name The document name.
1114
+ # @param page_number The page number.
1115
+ # @param [Hash] opts the optional parameters
1116
+ # @option opts [String] :storage The document storage.
1117
+ # @option opts [String] :folder The document folder.
1118
+ # @return [Array<(ImagesResponse, Fixnum, Hash)>] ImagesResponse data, response status code and response headers
1119
+ def get_images_with_http_info(name, page_number, opts = {})
1120
+ if @api_client.config.debugging
1121
+ @api_client.config.logger.debug "Calling API: PdfApi.get_images ..."
1122
+ end
1123
+ # verify the required parameter 'name' is set
1124
+ if @api_client.config.client_side_validation && name.nil?
1125
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_images"
1126
+ end
1127
+ # verify the required parameter 'page_number' is set
1128
+ if @api_client.config.client_side_validation && page_number.nil?
1129
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_images"
1130
+ end
1131
+ # resource path
1132
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/images".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
1133
+
1134
+ # query parameters
1135
+ query_params = {}
1136
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1137
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1138
+
1139
+ # header parameters
1140
+ header_params = {}
1141
+ # HTTP header 'Accept' (if needed)
1142
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1143
+ # HTTP header 'Content-Type'
1144
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1145
+
1146
+ # form parameters
1147
+ form_params = {}
1148
+
1149
+ # http body (model)
1150
+ post_body = nil
1151
+ auth_names = []
1152
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1153
+ :header_params => header_params,
1154
+ :query_params => query_params,
1155
+ :form_params => form_params,
1156
+ :body => post_body,
1157
+ :auth_names => auth_names,
1158
+ :return_type => 'ImagesResponse')
1159
+ if @api_client.config.debugging
1160
+ @api_client.config.logger.debug "API called: PdfApi#get_images\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1161
+ end
1162
+ return data, status_code, headers
1163
+ end
1164
+
1165
+ # Read document page info.
1166
+ #
1167
+ # @param name The document name.
1168
+ # @param page_number The page number.
1169
+ # @param [Hash] opts the optional parameters
1170
+ # @option opts [String] :storage The document storage.
1171
+ # @option opts [String] :folder The document folder.
1172
+ # @return [File]
1173
+ def get_page(name, page_number, opts = {})
1174
+ data, _status_code, _headers = get_page_with_http_info(name, page_number, opts)
1175
+ return data
1176
+ end
1177
+
1178
+ # Read document page info.
1179
+ #
1180
+ # @param name The document name.
1181
+ # @param page_number The page number.
1182
+ # @param [Hash] opts the optional parameters
1183
+ # @option opts [String] :storage The document storage.
1184
+ # @option opts [String] :folder The document folder.
1185
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
1186
+ def get_page_with_http_info(name, page_number, opts = {})
1187
+ if @api_client.config.debugging
1188
+ @api_client.config.logger.debug "Calling API: PdfApi.get_page ..."
1189
+ end
1190
+ # verify the required parameter 'name' is set
1191
+ if @api_client.config.client_side_validation && name.nil?
1192
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_page"
1193
+ end
1194
+ # verify the required parameter 'page_number' is set
1195
+ if @api_client.config.client_side_validation && page_number.nil?
1196
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_page"
1197
+ end
1198
+ # resource path
1199
+ local_var_path = "/pdf/{name}/pages/{pageNumber}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
1200
+
1201
+ # query parameters
1202
+ query_params = {}
1203
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1204
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1205
+
1206
+ # header parameters
1207
+ header_params = {}
1208
+ # HTTP header 'Accept' (if needed)
1209
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1210
+ # HTTP header 'Content-Type'
1211
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1212
+
1213
+ # form parameters
1214
+ form_params = {}
1215
+
1216
+ # http body (model)
1217
+ post_body = nil
1218
+ auth_names = []
1219
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1220
+ :header_params => header_params,
1221
+ :query_params => query_params,
1222
+ :form_params => form_params,
1223
+ :body => post_body,
1224
+ :auth_names => auth_names,
1225
+ :return_type => 'File')
1226
+ if @api_client.config.debugging
1227
+ @api_client.config.logger.debug "API called: PdfApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1228
+ end
1229
+ return data, status_code, headers
1230
+ end
1231
+
1232
+ # Read document page annotation by its number.
1233
+ #
1234
+ # @param name The document name.
1235
+ # @param page_number The page number.
1236
+ # @param annotation_number The annotation number.
1237
+ # @param [Hash] opts the optional parameters
1238
+ # @option opts [String] :storage The document storage.
1239
+ # @option opts [String] :folder The document folder.
1240
+ # @return [AnnotationResponse]
1241
+ def get_page_annotation(name, page_number, annotation_number, opts = {})
1242
+ data, _status_code, _headers = get_page_annotation_with_http_info(name, page_number, annotation_number, opts)
1243
+ return data
1244
+ end
1245
+
1246
+ # Read document page annotation by its number.
1247
+ #
1248
+ # @param name The document name.
1249
+ # @param page_number The page number.
1250
+ # @param annotation_number The annotation number.
1251
+ # @param [Hash] opts the optional parameters
1252
+ # @option opts [String] :storage The document storage.
1253
+ # @option opts [String] :folder The document folder.
1254
+ # @return [Array<(AnnotationResponse, Fixnum, Hash)>] AnnotationResponse data, response status code and response headers
1255
+ def get_page_annotation_with_http_info(name, page_number, annotation_number, opts = {})
1256
+ if @api_client.config.debugging
1257
+ @api_client.config.logger.debug "Calling API: PdfApi.get_page_annotation ..."
1258
+ end
1259
+ # verify the required parameter 'name' is set
1260
+ if @api_client.config.client_side_validation && name.nil?
1261
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_page_annotation"
1262
+ end
1263
+ # verify the required parameter 'page_number' is set
1264
+ if @api_client.config.client_side_validation && page_number.nil?
1265
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_page_annotation"
1266
+ end
1267
+ # verify the required parameter 'annotation_number' is set
1268
+ if @api_client.config.client_side_validation && annotation_number.nil?
1269
+ fail ArgumentError, "Missing the required parameter 'annotation_number' when calling PdfApi.get_page_annotation"
1270
+ end
1271
+ # resource path
1272
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations/{annotationNumber}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'annotationNumber' + '}', annotation_number.to_s)
1273
+
1274
+ # query parameters
1275
+ query_params = {}
1276
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1277
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1278
+
1279
+ # header parameters
1280
+ header_params = {}
1281
+ # HTTP header 'Accept' (if needed)
1282
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1283
+ # HTTP header 'Content-Type'
1284
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1285
+
1286
+ # form parameters
1287
+ form_params = {}
1288
+
1289
+ # http body (model)
1290
+ post_body = nil
1291
+ auth_names = []
1292
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1293
+ :header_params => header_params,
1294
+ :query_params => query_params,
1295
+ :form_params => form_params,
1296
+ :body => post_body,
1297
+ :auth_names => auth_names,
1298
+ :return_type => 'AnnotationResponse')
1299
+ if @api_client.config.debugging
1300
+ @api_client.config.logger.debug "API called: PdfApi#get_page_annotation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1301
+ end
1302
+ return data, status_code, headers
1303
+ end
1304
+
1305
+ # Read documant page annotations.
1306
+ #
1307
+ # @param name The document name.
1308
+ # @param page_number The page number.
1309
+ # @param [Hash] opts the optional parameters
1310
+ # @option opts [String] :storage The document storage.
1311
+ # @option opts [String] :folder The document folder.
1312
+ # @return [AnnotationsResponse]
1313
+ def get_page_annotations(name, page_number, opts = {})
1314
+ data, _status_code, _headers = get_page_annotations_with_http_info(name, page_number, opts)
1315
+ return data
1316
+ end
1317
+
1318
+ # Read documant page annotations.
1319
+ #
1320
+ # @param name The document name.
1321
+ # @param page_number The page number.
1322
+ # @param [Hash] opts the optional parameters
1323
+ # @option opts [String] :storage The document storage.
1324
+ # @option opts [String] :folder The document folder.
1325
+ # @return [Array<(AnnotationsResponse, Fixnum, Hash)>] AnnotationsResponse data, response status code and response headers
1326
+ def get_page_annotations_with_http_info(name, page_number, opts = {})
1327
+ if @api_client.config.debugging
1328
+ @api_client.config.logger.debug "Calling API: PdfApi.get_page_annotations ..."
1329
+ end
1330
+ # verify the required parameter 'name' is set
1331
+ if @api_client.config.client_side_validation && name.nil?
1332
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_page_annotations"
1333
+ end
1334
+ # verify the required parameter 'page_number' is set
1335
+ if @api_client.config.client_side_validation && page_number.nil?
1336
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_page_annotations"
1337
+ end
1338
+ # resource path
1339
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/annotations".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
1340
+
1341
+ # query parameters
1342
+ query_params = {}
1343
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1344
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1345
+
1346
+ # header parameters
1347
+ header_params = {}
1348
+ # HTTP header 'Accept' (if needed)
1349
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1350
+ # HTTP header 'Content-Type'
1351
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1352
+
1353
+ # form parameters
1354
+ form_params = {}
1355
+
1356
+ # http body (model)
1357
+ post_body = nil
1358
+ auth_names = []
1359
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1360
+ :header_params => header_params,
1361
+ :query_params => query_params,
1362
+ :form_params => form_params,
1363
+ :body => post_body,
1364
+ :auth_names => auth_names,
1365
+ :return_type => 'AnnotationsResponse')
1366
+ if @api_client.config.debugging
1367
+ @api_client.config.logger.debug "API called: PdfApi#get_page_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1368
+ end
1369
+ return data, status_code, headers
1370
+ end
1371
+
1372
+ # Read document page link annotation by its index.
1373
+ #
1374
+ # @param name The document name.
1375
+ # @param page_number The page number.
1376
+ # @param link_index The link index.
1377
+ # @param [Hash] opts the optional parameters
1378
+ # @option opts [String] :storage The document storage.
1379
+ # @option opts [String] :folder The document folder.
1380
+ # @return [LinkAnnotationResponse]
1381
+ def get_page_link_annotation_by_index(name, page_number, link_index, opts = {})
1382
+ data, _status_code, _headers = get_page_link_annotation_by_index_with_http_info(name, page_number, link_index, opts)
1383
+ return data
1384
+ end
1385
+
1386
+ # Read document page link annotation by its index.
1387
+ #
1388
+ # @param name The document name.
1389
+ # @param page_number The page number.
1390
+ # @param link_index The link index.
1391
+ # @param [Hash] opts the optional parameters
1392
+ # @option opts [String] :storage The document storage.
1393
+ # @option opts [String] :folder The document folder.
1394
+ # @return [Array<(LinkAnnotationResponse, Fixnum, Hash)>] LinkAnnotationResponse data, response status code and response headers
1395
+ def get_page_link_annotation_by_index_with_http_info(name, page_number, link_index, opts = {})
1396
+ if @api_client.config.debugging
1397
+ @api_client.config.logger.debug "Calling API: PdfApi.get_page_link_annotation_by_index ..."
1398
+ end
1399
+ # verify the required parameter 'name' is set
1400
+ if @api_client.config.client_side_validation && name.nil?
1401
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_page_link_annotation_by_index"
1402
+ end
1403
+ # verify the required parameter 'page_number' is set
1404
+ if @api_client.config.client_side_validation && page_number.nil?
1405
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_page_link_annotation_by_index"
1406
+ end
1407
+ # verify the required parameter 'link_index' is set
1408
+ if @api_client.config.client_side_validation && link_index.nil?
1409
+ fail ArgumentError, "Missing the required parameter 'link_index' when calling PdfApi.get_page_link_annotation_by_index"
1410
+ end
1411
+ # resource path
1412
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/links/{linkIndex}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'linkIndex' + '}', link_index.to_s)
1413
+
1414
+ # query parameters
1415
+ query_params = {}
1416
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1417
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1418
+
1419
+ # header parameters
1420
+ header_params = {}
1421
+ # HTTP header 'Accept' (if needed)
1422
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1423
+ # HTTP header 'Content-Type'
1424
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1425
+
1426
+ # form parameters
1427
+ form_params = {}
1428
+
1429
+ # http body (model)
1430
+ post_body = nil
1431
+ auth_names = []
1432
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1433
+ :header_params => header_params,
1434
+ :query_params => query_params,
1435
+ :form_params => form_params,
1436
+ :body => post_body,
1437
+ :auth_names => auth_names,
1438
+ :return_type => 'LinkAnnotationResponse')
1439
+ if @api_client.config.debugging
1440
+ @api_client.config.logger.debug "API called: PdfApi#get_page_link_annotation_by_index\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1441
+ end
1442
+ return data, status_code, headers
1443
+ end
1444
+
1445
+ # Read document page link annotations.
1446
+ #
1447
+ # @param name The document name.
1448
+ # @param page_number The page number.
1449
+ # @param [Hash] opts the optional parameters
1450
+ # @option opts [String] :storage The document storage.
1451
+ # @option opts [String] :folder The document folder.
1452
+ # @return [LinkAnnotationsResponse]
1453
+ def get_page_link_annotations(name, page_number, opts = {})
1454
+ data, _status_code, _headers = get_page_link_annotations_with_http_info(name, page_number, opts)
1455
+ return data
1456
+ end
1457
+
1458
+ # Read document page link annotations.
1459
+ #
1460
+ # @param name The document name.
1461
+ # @param page_number The page number.
1462
+ # @param [Hash] opts the optional parameters
1463
+ # @option opts [String] :storage The document storage.
1464
+ # @option opts [String] :folder The document folder.
1465
+ # @return [Array<(LinkAnnotationsResponse, Fixnum, Hash)>] LinkAnnotationsResponse data, response status code and response headers
1466
+ def get_page_link_annotations_with_http_info(name, page_number, opts = {})
1467
+ if @api_client.config.debugging
1468
+ @api_client.config.logger.debug "Calling API: PdfApi.get_page_link_annotations ..."
1469
+ end
1470
+ # verify the required parameter 'name' is set
1471
+ if @api_client.config.client_side_validation && name.nil?
1472
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_page_link_annotations"
1473
+ end
1474
+ # verify the required parameter 'page_number' is set
1475
+ if @api_client.config.client_side_validation && page_number.nil?
1476
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_page_link_annotations"
1477
+ end
1478
+ # resource path
1479
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/links".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
1480
+
1481
+ # query parameters
1482
+ query_params = {}
1483
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1484
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1485
+
1486
+ # header parameters
1487
+ header_params = {}
1488
+ # HTTP header 'Accept' (if needed)
1489
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1490
+ # HTTP header 'Content-Type'
1491
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1492
+
1493
+ # form parameters
1494
+ form_params = {}
1495
+
1496
+ # http body (model)
1497
+ post_body = nil
1498
+ auth_names = []
1499
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1500
+ :header_params => header_params,
1501
+ :query_params => query_params,
1502
+ :form_params => form_params,
1503
+ :body => post_body,
1504
+ :auth_names => auth_names,
1505
+ :return_type => 'LinkAnnotationsResponse')
1506
+ if @api_client.config.debugging
1507
+ @api_client.config.logger.debug "API called: PdfApi#get_page_link_annotations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1508
+ end
1509
+ return data, status_code, headers
1510
+ end
1511
+
1512
+ # Read page text items.
1513
+ #
1514
+ # @param name
1515
+ # @param page_number
1516
+ # @param x
1517
+ # @param y
1518
+ # @param width
1519
+ # @param height
1520
+ # @param [Hash] opts the optional parameters
1521
+ # @option opts [Array<String>] :format
1522
+ # @option opts [String] :regex
1523
+ # @option opts [String] :storage
1524
+ # @option opts [String] :folder
1525
+ # @return [TextRectsResponse]
1526
+ def get_page_text(name, page_number, x, y, width, height, opts = {})
1527
+ data, _status_code, _headers = get_page_text_with_http_info(name, page_number, x, y, width, height, opts)
1528
+ return data
1529
+ end
1530
+
1531
+ # Read page text items.
1532
+ #
1533
+ # @param name
1534
+ # @param page_number
1535
+ # @param x
1536
+ # @param y
1537
+ # @param width
1538
+ # @param height
1539
+ # @param [Hash] opts the optional parameters
1540
+ # @option opts [Array<String>] :format
1541
+ # @option opts [String] :regex
1542
+ # @option opts [String] :storage
1543
+ # @option opts [String] :folder
1544
+ # @return [Array<(TextRectsResponse, Fixnum, Hash)>] TextRectsResponse data, response status code and response headers
1545
+ def get_page_text_with_http_info(name, page_number, x, y, width, height, opts = {})
1546
+ if @api_client.config.debugging
1547
+ @api_client.config.logger.debug "Calling API: PdfApi.get_page_text ..."
1548
+ end
1549
+ # verify the required parameter 'name' is set
1550
+ if @api_client.config.client_side_validation && name.nil?
1551
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_page_text"
1552
+ end
1553
+ # verify the required parameter 'page_number' is set
1554
+ if @api_client.config.client_side_validation && page_number.nil?
1555
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_page_text"
1556
+ end
1557
+ # verify the required parameter 'x' is set
1558
+ if @api_client.config.client_side_validation && x.nil?
1559
+ fail ArgumentError, "Missing the required parameter 'x' when calling PdfApi.get_page_text"
1560
+ end
1561
+ # verify the required parameter 'y' is set
1562
+ if @api_client.config.client_side_validation && y.nil?
1563
+ fail ArgumentError, "Missing the required parameter 'y' when calling PdfApi.get_page_text"
1564
+ end
1565
+ # verify the required parameter 'width' is set
1566
+ if @api_client.config.client_side_validation && width.nil?
1567
+ fail ArgumentError, "Missing the required parameter 'width' when calling PdfApi.get_page_text"
1568
+ end
1569
+ # verify the required parameter 'height' is set
1570
+ if @api_client.config.client_side_validation && height.nil?
1571
+ fail ArgumentError, "Missing the required parameter 'height' when calling PdfApi.get_page_text"
1572
+ end
1573
+ # resource path
1574
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/text".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
1575
+
1576
+ # query parameters
1577
+ query_params = {}
1578
+ query_params[:'X'] = x
1579
+ query_params[:'Y'] = y
1580
+ query_params[:'Width'] = width
1581
+ query_params[:'Height'] = height
1582
+ query_params[:'format'] = @api_client.build_collection_param(opts[:'format'], :multi) if !opts[:'format'].nil?
1583
+ query_params[:'regex'] = opts[:'regex'] if !opts[:'regex'].nil?
1584
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1585
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1586
+
1587
+ # header parameters
1588
+ header_params = {}
1589
+ # HTTP header 'Accept' (if needed)
1590
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1591
+ # HTTP header 'Content-Type'
1592
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1593
+
1594
+ # form parameters
1595
+ form_params = {}
1596
+
1597
+ # http body (model)
1598
+ post_body = nil
1599
+ auth_names = []
1600
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1601
+ :header_params => header_params,
1602
+ :query_params => query_params,
1603
+ :form_params => form_params,
1604
+ :body => post_body,
1605
+ :auth_names => auth_names,
1606
+ :return_type => 'TextRectsResponse')
1607
+ if @api_client.config.debugging
1608
+ @api_client.config.logger.debug "API called: PdfApi#get_page_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1609
+ end
1610
+ return data, status_code, headers
1611
+ end
1612
+
1613
+ # Read page text items.
1614
+ #
1615
+ # @param name
1616
+ # @param page_number
1617
+ # @param [Hash] opts the optional parameters
1618
+ # @option opts [String] :with_empty
1619
+ # @option opts [String] :storage
1620
+ # @option opts [String] :folder
1621
+ # @return [TextItemsResponse]
1622
+ def get_page_text_items(name, page_number, opts = {})
1623
+ data, _status_code, _headers = get_page_text_items_with_http_info(name, page_number, opts)
1624
+ return data
1625
+ end
1626
+
1627
+ # Read page text items.
1628
+ #
1629
+ # @param name
1630
+ # @param page_number
1631
+ # @param [Hash] opts the optional parameters
1632
+ # @option opts [String] :with_empty
1633
+ # @option opts [String] :storage
1634
+ # @option opts [String] :folder
1635
+ # @return [Array<(TextItemsResponse, Fixnum, Hash)>] TextItemsResponse data, response status code and response headers
1636
+ def get_page_text_items_with_http_info(name, page_number, opts = {})
1637
+ if @api_client.config.debugging
1638
+ @api_client.config.logger.debug "Calling API: PdfApi.get_page_text_items ..."
1639
+ end
1640
+ # verify the required parameter 'name' is set
1641
+ if @api_client.config.client_side_validation && name.nil?
1642
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_page_text_items"
1643
+ end
1644
+ # verify the required parameter 'page_number' is set
1645
+ if @api_client.config.client_side_validation && page_number.nil?
1646
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_page_text_items"
1647
+ end
1648
+ # resource path
1649
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/textItems".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
1650
+
1651
+ # query parameters
1652
+ query_params = {}
1653
+ query_params[:'withEmpty'] = opts[:'with_empty'] if !opts[:'with_empty'].nil?
1654
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1655
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1656
+
1657
+ # header parameters
1658
+ header_params = {}
1659
+ # HTTP header 'Accept' (if needed)
1660
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1661
+ # HTTP header 'Content-Type'
1662
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1663
+
1664
+ # form parameters
1665
+ form_params = {}
1666
+
1667
+ # http body (model)
1668
+ post_body = nil
1669
+ auth_names = []
1670
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1671
+ :header_params => header_params,
1672
+ :query_params => query_params,
1673
+ :form_params => form_params,
1674
+ :body => post_body,
1675
+ :auth_names => auth_names,
1676
+ :return_type => 'TextItemsResponse')
1677
+ if @api_client.config.debugging
1678
+ @api_client.config.logger.debug "API called: PdfApi#get_page_text_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1679
+ end
1680
+ return data, status_code, headers
1681
+ end
1682
+
1683
+ # Read document pages info.
1684
+ #
1685
+ # @param name The document name.
1686
+ # @param [Hash] opts the optional parameters
1687
+ # @option opts [String] :storage The document storage.
1688
+ # @option opts [String] :folder The document folder.
1689
+ # @return [DocumentPagesResponse]
1690
+ def get_pages(name, opts = {})
1691
+ data, _status_code, _headers = get_pages_with_http_info(name, opts)
1692
+ return data
1693
+ end
1694
+
1695
+ # Read document pages info.
1696
+ #
1697
+ # @param name The document name.
1698
+ # @param [Hash] opts the optional parameters
1699
+ # @option opts [String] :storage The document storage.
1700
+ # @option opts [String] :folder The document folder.
1701
+ # @return [Array<(DocumentPagesResponse, Fixnum, Hash)>] DocumentPagesResponse data, response status code and response headers
1702
+ def get_pages_with_http_info(name, opts = {})
1703
+ if @api_client.config.debugging
1704
+ @api_client.config.logger.debug "Calling API: PdfApi.get_pages ..."
1705
+ end
1706
+ # verify the required parameter 'name' is set
1707
+ if @api_client.config.client_side_validation && name.nil?
1708
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_pages"
1709
+ end
1710
+ # resource path
1711
+ local_var_path = "/pdf/{name}/pages".sub('{' + 'name' + '}', name.to_s)
1712
+
1713
+ # query parameters
1714
+ query_params = {}
1715
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1716
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1717
+
1718
+ # header parameters
1719
+ header_params = {}
1720
+ # HTTP header 'Accept' (if needed)
1721
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1722
+ # HTTP header 'Content-Type'
1723
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1724
+
1725
+ # form parameters
1726
+ form_params = {}
1727
+
1728
+ # http body (model)
1729
+ post_body = nil
1730
+ auth_names = []
1731
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1732
+ :header_params => header_params,
1733
+ :query_params => query_params,
1734
+ :form_params => form_params,
1735
+ :body => post_body,
1736
+ :auth_names => auth_names,
1737
+ :return_type => 'DocumentPagesResponse')
1738
+ if @api_client.config.debugging
1739
+ @api_client.config.logger.debug "API called: PdfApi#get_pages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1740
+ end
1741
+ return data, status_code, headers
1742
+ end
1743
+
1744
+ # Read segment.
1745
+ #
1746
+ # @param name
1747
+ # @param page_number
1748
+ # @param fragment_number
1749
+ # @param segment_number
1750
+ # @param [Hash] opts the optional parameters
1751
+ # @option opts [String] :storage
1752
+ # @option opts [String] :folder
1753
+ # @return [TextItemResponse]
1754
+ def get_segment(name, page_number, fragment_number, segment_number, opts = {})
1755
+ data, _status_code, _headers = get_segment_with_http_info(name, page_number, fragment_number, segment_number, opts)
1756
+ return data
1757
+ end
1758
+
1759
+ # Read segment.
1760
+ #
1761
+ # @param name
1762
+ # @param page_number
1763
+ # @param fragment_number
1764
+ # @param segment_number
1765
+ # @param [Hash] opts the optional parameters
1766
+ # @option opts [String] :storage
1767
+ # @option opts [String] :folder
1768
+ # @return [Array<(TextItemResponse, Fixnum, Hash)>] TextItemResponse data, response status code and response headers
1769
+ def get_segment_with_http_info(name, page_number, fragment_number, segment_number, opts = {})
1770
+ if @api_client.config.debugging
1771
+ @api_client.config.logger.debug "Calling API: PdfApi.get_segment ..."
1772
+ end
1773
+ # verify the required parameter 'name' is set
1774
+ if @api_client.config.client_side_validation && name.nil?
1775
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_segment"
1776
+ end
1777
+ # verify the required parameter 'page_number' is set
1778
+ if @api_client.config.client_side_validation && page_number.nil?
1779
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_segment"
1780
+ end
1781
+ # verify the required parameter 'fragment_number' is set
1782
+ if @api_client.config.client_side_validation && fragment_number.nil?
1783
+ fail ArgumentError, "Missing the required parameter 'fragment_number' when calling PdfApi.get_segment"
1784
+ end
1785
+ # verify the required parameter 'segment_number' is set
1786
+ if @api_client.config.client_side_validation && segment_number.nil?
1787
+ fail ArgumentError, "Missing the required parameter 'segment_number' when calling PdfApi.get_segment"
1788
+ end
1789
+ # resource path
1790
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/segments/{segmentNumber}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s).sub('{' + 'segmentNumber' + '}', segment_number.to_s)
1791
+
1792
+ # query parameters
1793
+ query_params = {}
1794
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1795
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1796
+
1797
+ # header parameters
1798
+ header_params = {}
1799
+ # HTTP header 'Accept' (if needed)
1800
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1801
+ # HTTP header 'Content-Type'
1802
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1803
+
1804
+ # form parameters
1805
+ form_params = {}
1806
+
1807
+ # http body (model)
1808
+ post_body = nil
1809
+ auth_names = []
1810
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1811
+ :header_params => header_params,
1812
+ :query_params => query_params,
1813
+ :form_params => form_params,
1814
+ :body => post_body,
1815
+ :auth_names => auth_names,
1816
+ :return_type => 'TextItemResponse')
1817
+ if @api_client.config.debugging
1818
+ @api_client.config.logger.debug "API called: PdfApi#get_segment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1819
+ end
1820
+ return data, status_code, headers
1821
+ end
1822
+
1823
+ # Read segment text format.
1824
+ #
1825
+ # @param name
1826
+ # @param page_number
1827
+ # @param fragment_number
1828
+ # @param segment_number
1829
+ # @param [Hash] opts the optional parameters
1830
+ # @option opts [String] :storage
1831
+ # @option opts [String] :folder
1832
+ # @return [TextFormatResponse]
1833
+ def get_segment_text_format(name, page_number, fragment_number, segment_number, opts = {})
1834
+ data, _status_code, _headers = get_segment_text_format_with_http_info(name, page_number, fragment_number, segment_number, opts)
1835
+ return data
1836
+ end
1837
+
1838
+ # Read segment text format.
1839
+ #
1840
+ # @param name
1841
+ # @param page_number
1842
+ # @param fragment_number
1843
+ # @param segment_number
1844
+ # @param [Hash] opts the optional parameters
1845
+ # @option opts [String] :storage
1846
+ # @option opts [String] :folder
1847
+ # @return [Array<(TextFormatResponse, Fixnum, Hash)>] TextFormatResponse data, response status code and response headers
1848
+ def get_segment_text_format_with_http_info(name, page_number, fragment_number, segment_number, opts = {})
1849
+ if @api_client.config.debugging
1850
+ @api_client.config.logger.debug "Calling API: PdfApi.get_segment_text_format ..."
1851
+ end
1852
+ # verify the required parameter 'name' is set
1853
+ if @api_client.config.client_side_validation && name.nil?
1854
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_segment_text_format"
1855
+ end
1856
+ # verify the required parameter 'page_number' is set
1857
+ if @api_client.config.client_side_validation && page_number.nil?
1858
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_segment_text_format"
1859
+ end
1860
+ # verify the required parameter 'fragment_number' is set
1861
+ if @api_client.config.client_side_validation && fragment_number.nil?
1862
+ fail ArgumentError, "Missing the required parameter 'fragment_number' when calling PdfApi.get_segment_text_format"
1863
+ end
1864
+ # verify the required parameter 'segment_number' is set
1865
+ if @api_client.config.client_side_validation && segment_number.nil?
1866
+ fail ArgumentError, "Missing the required parameter 'segment_number' when calling PdfApi.get_segment_text_format"
1867
+ end
1868
+ # resource path
1869
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/segments/{segmentNumber}/textformat".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s).sub('{' + 'segmentNumber' + '}', segment_number.to_s)
1870
+
1871
+ # query parameters
1872
+ query_params = {}
1873
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1874
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1875
+
1876
+ # header parameters
1877
+ header_params = {}
1878
+ # HTTP header 'Accept' (if needed)
1879
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1880
+ # HTTP header 'Content-Type'
1881
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1882
+
1883
+ # form parameters
1884
+ form_params = {}
1885
+
1886
+ # http body (model)
1887
+ post_body = nil
1888
+ auth_names = []
1889
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1890
+ :header_params => header_params,
1891
+ :query_params => query_params,
1892
+ :form_params => form_params,
1893
+ :body => post_body,
1894
+ :auth_names => auth_names,
1895
+ :return_type => 'TextFormatResponse')
1896
+ if @api_client.config.debugging
1897
+ @api_client.config.logger.debug "API called: PdfApi#get_segment_text_format\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1898
+ end
1899
+ return data, status_code, headers
1900
+ end
1901
+
1902
+ # Read fragment segments.
1903
+ #
1904
+ # @param name
1905
+ # @param page_number
1906
+ # @param fragment_number
1907
+ # @param [Hash] opts the optional parameters
1908
+ # @option opts [String] :with_empty
1909
+ # @option opts [String] :storage
1910
+ # @option opts [String] :folder
1911
+ # @return [TextItemsResponse]
1912
+ def get_segments(name, page_number, fragment_number, opts = {})
1913
+ data, _status_code, _headers = get_segments_with_http_info(name, page_number, fragment_number, opts)
1914
+ return data
1915
+ end
1916
+
1917
+ # Read fragment segments.
1918
+ #
1919
+ # @param name
1920
+ # @param page_number
1921
+ # @param fragment_number
1922
+ # @param [Hash] opts the optional parameters
1923
+ # @option opts [String] :with_empty
1924
+ # @option opts [String] :storage
1925
+ # @option opts [String] :folder
1926
+ # @return [Array<(TextItemsResponse, Fixnum, Hash)>] TextItemsResponse data, response status code and response headers
1927
+ def get_segments_with_http_info(name, page_number, fragment_number, opts = {})
1928
+ if @api_client.config.debugging
1929
+ @api_client.config.logger.debug "Calling API: PdfApi.get_segments ..."
1930
+ end
1931
+ # verify the required parameter 'name' is set
1932
+ if @api_client.config.client_side_validation && name.nil?
1933
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_segments"
1934
+ end
1935
+ # verify the required parameter 'page_number' is set
1936
+ if @api_client.config.client_side_validation && page_number.nil?
1937
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.get_segments"
1938
+ end
1939
+ # verify the required parameter 'fragment_number' is set
1940
+ if @api_client.config.client_side_validation && fragment_number.nil?
1941
+ fail ArgumentError, "Missing the required parameter 'fragment_number' when calling PdfApi.get_segments"
1942
+ end
1943
+ # resource path
1944
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/segments".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'fragmentNumber' + '}', fragment_number.to_s)
1945
+
1946
+ # query parameters
1947
+ query_params = {}
1948
+ query_params[:'withEmpty'] = opts[:'with_empty'] if !opts[:'with_empty'].nil?
1949
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
1950
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
1951
+
1952
+ # header parameters
1953
+ header_params = {}
1954
+ # HTTP header 'Accept' (if needed)
1955
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1956
+ # HTTP header 'Content-Type'
1957
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1958
+
1959
+ # form parameters
1960
+ form_params = {}
1961
+
1962
+ # http body (model)
1963
+ post_body = nil
1964
+ auth_names = []
1965
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1966
+ :header_params => header_params,
1967
+ :query_params => query_params,
1968
+ :form_params => form_params,
1969
+ :body => post_body,
1970
+ :auth_names => auth_names,
1971
+ :return_type => 'TextItemsResponse')
1972
+ if @api_client.config.debugging
1973
+ @api_client.config.logger.debug "API called: PdfApi#get_segments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1974
+ end
1975
+ return data, status_code, headers
1976
+ end
1977
+
1978
+ # Read document text.
1979
+ #
1980
+ # @param name
1981
+ # @param x
1982
+ # @param y
1983
+ # @param width
1984
+ # @param height
1985
+ # @param [Hash] opts the optional parameters
1986
+ # @option opts [Array<String>] :format
1987
+ # @option opts [String] :regex
1988
+ # @option opts [String] :storage
1989
+ # @option opts [String] :folder
1990
+ # @return [TextRectsResponse]
1991
+ def get_text(name, x, y, width, height, opts = {})
1992
+ data, _status_code, _headers = get_text_with_http_info(name, x, y, width, height, opts)
1993
+ return data
1994
+ end
1995
+
1996
+ # Read document text.
1997
+ #
1998
+ # @param name
1999
+ # @param x
2000
+ # @param y
2001
+ # @param width
2002
+ # @param height
2003
+ # @param [Hash] opts the optional parameters
2004
+ # @option opts [Array<String>] :format
2005
+ # @option opts [String] :regex
2006
+ # @option opts [String] :storage
2007
+ # @option opts [String] :folder
2008
+ # @return [Array<(TextRectsResponse, Fixnum, Hash)>] TextRectsResponse data, response status code and response headers
2009
+ def get_text_with_http_info(name, x, y, width, height, opts = {})
2010
+ if @api_client.config.debugging
2011
+ @api_client.config.logger.debug "Calling API: PdfApi.get_text ..."
2012
+ end
2013
+ # verify the required parameter 'name' is set
2014
+ if @api_client.config.client_side_validation && name.nil?
2015
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_text"
2016
+ end
2017
+ # verify the required parameter 'x' is set
2018
+ if @api_client.config.client_side_validation && x.nil?
2019
+ fail ArgumentError, "Missing the required parameter 'x' when calling PdfApi.get_text"
2020
+ end
2021
+ # verify the required parameter 'y' is set
2022
+ if @api_client.config.client_side_validation && y.nil?
2023
+ fail ArgumentError, "Missing the required parameter 'y' when calling PdfApi.get_text"
2024
+ end
2025
+ # verify the required parameter 'width' is set
2026
+ if @api_client.config.client_side_validation && width.nil?
2027
+ fail ArgumentError, "Missing the required parameter 'width' when calling PdfApi.get_text"
2028
+ end
2029
+ # verify the required parameter 'height' is set
2030
+ if @api_client.config.client_side_validation && height.nil?
2031
+ fail ArgumentError, "Missing the required parameter 'height' when calling PdfApi.get_text"
2032
+ end
2033
+ # resource path
2034
+ local_var_path = "/pdf/{name}/text".sub('{' + 'name' + '}', name.to_s)
2035
+
2036
+ # query parameters
2037
+ query_params = {}
2038
+ query_params[:'X'] = x
2039
+ query_params[:'Y'] = y
2040
+ query_params[:'Width'] = width
2041
+ query_params[:'Height'] = height
2042
+ query_params[:'format'] = @api_client.build_collection_param(opts[:'format'], :multi) if !opts[:'format'].nil?
2043
+ query_params[:'regex'] = opts[:'regex'] if !opts[:'regex'].nil?
2044
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2045
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2046
+
2047
+ # header parameters
2048
+ header_params = {}
2049
+ # HTTP header 'Accept' (if needed)
2050
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2051
+ # HTTP header 'Content-Type'
2052
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2053
+
2054
+ # form parameters
2055
+ form_params = {}
2056
+
2057
+ # http body (model)
2058
+ post_body = nil
2059
+ auth_names = []
2060
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2061
+ :header_params => header_params,
2062
+ :query_params => query_params,
2063
+ :form_params => form_params,
2064
+ :body => post_body,
2065
+ :auth_names => auth_names,
2066
+ :return_type => 'TextRectsResponse')
2067
+ if @api_client.config.debugging
2068
+ @api_client.config.logger.debug "API called: PdfApi#get_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2069
+ end
2070
+ return data, status_code, headers
2071
+ end
2072
+
2073
+ # Read document text items.
2074
+ #
2075
+ # @param name
2076
+ # @param [Hash] opts the optional parameters
2077
+ # @option opts [String] :with_empty
2078
+ # @option opts [String] :storage
2079
+ # @option opts [String] :folder
2080
+ # @return [TextItemsResponse]
2081
+ def get_text_items(name, opts = {})
2082
+ data, _status_code, _headers = get_text_items_with_http_info(name, opts)
2083
+ return data
2084
+ end
2085
+
2086
+ # Read document text items.
2087
+ #
2088
+ # @param name
2089
+ # @param [Hash] opts the optional parameters
2090
+ # @option opts [String] :with_empty
2091
+ # @option opts [String] :storage
2092
+ # @option opts [String] :folder
2093
+ # @return [Array<(TextItemsResponse, Fixnum, Hash)>] TextItemsResponse data, response status code and response headers
2094
+ def get_text_items_with_http_info(name, opts = {})
2095
+ if @api_client.config.debugging
2096
+ @api_client.config.logger.debug "Calling API: PdfApi.get_text_items ..."
2097
+ end
2098
+ # verify the required parameter 'name' is set
2099
+ if @api_client.config.client_side_validation && name.nil?
2100
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_text_items"
2101
+ end
2102
+ # resource path
2103
+ local_var_path = "/pdf/{name}/textItems".sub('{' + 'name' + '}', name.to_s)
2104
+
2105
+ # query parameters
2106
+ query_params = {}
2107
+ query_params[:'withEmpty'] = opts[:'with_empty'] if !opts[:'with_empty'].nil?
2108
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2109
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2110
+
2111
+ # header parameters
2112
+ header_params = {}
2113
+ # HTTP header 'Accept' (if needed)
2114
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2115
+ # HTTP header 'Content-Type'
2116
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2117
+
2118
+ # form parameters
2119
+ form_params = {}
2120
+
2121
+ # http body (model)
2122
+ post_body = nil
2123
+ auth_names = []
2124
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2125
+ :header_params => header_params,
2126
+ :query_params => query_params,
2127
+ :form_params => form_params,
2128
+ :body => post_body,
2129
+ :auth_names => auth_names,
2130
+ :return_type => 'TextItemsResponse')
2131
+ if @api_client.config.debugging
2132
+ @api_client.config.logger.debug "API called: PdfApi#get_text_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2133
+ end
2134
+ return data, status_code, headers
2135
+ end
2136
+
2137
+ # Get number of words per document page.
2138
+ #
2139
+ # @param name The document name.
2140
+ # @param [Hash] opts the optional parameters
2141
+ # @option opts [String] :storage The document storage.
2142
+ # @option opts [String] :folder The document folder.
2143
+ # @return [WordCountResponse]
2144
+ def get_words_per_page(name, opts = {})
2145
+ data, _status_code, _headers = get_words_per_page_with_http_info(name, opts)
2146
+ return data
2147
+ end
2148
+
2149
+ # Get number of words per document page.
2150
+ #
2151
+ # @param name The document name.
2152
+ # @param [Hash] opts the optional parameters
2153
+ # @option opts [String] :storage The document storage.
2154
+ # @option opts [String] :folder The document folder.
2155
+ # @return [Array<(WordCountResponse, Fixnum, Hash)>] WordCountResponse data, response status code and response headers
2156
+ def get_words_per_page_with_http_info(name, opts = {})
2157
+ if @api_client.config.debugging
2158
+ @api_client.config.logger.debug "Calling API: PdfApi.get_words_per_page ..."
2159
+ end
2160
+ # verify the required parameter 'name' is set
2161
+ if @api_client.config.client_side_validation && name.nil?
2162
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.get_words_per_page"
2163
+ end
2164
+ # resource path
2165
+ local_var_path = "/pdf/{name}/pages/wordCount".sub('{' + 'name' + '}', name.to_s)
2166
+
2167
+ # query parameters
2168
+ query_params = {}
2169
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2170
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2171
+
2172
+ # header parameters
2173
+ header_params = {}
2174
+ # HTTP header 'Accept' (if needed)
2175
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2176
+ # HTTP header 'Content-Type'
2177
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2178
+
2179
+ # form parameters
2180
+ form_params = {}
2181
+
2182
+ # http body (model)
2183
+ post_body = nil
2184
+ auth_names = []
2185
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2186
+ :header_params => header_params,
2187
+ :query_params => query_params,
2188
+ :form_params => form_params,
2189
+ :body => post_body,
2190
+ :auth_names => auth_names,
2191
+ :return_type => 'WordCountResponse')
2192
+ if @api_client.config.debugging
2193
+ @api_client.config.logger.debug "API called: PdfApi#get_words_per_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2194
+ end
2195
+ return data, status_code, headers
2196
+ end
2197
+
2198
+ # Append document to existing one.
2199
+ #
2200
+ # @param name The original document name.
2201
+ # @param [Hash] opts the optional parameters
2202
+ # @option opts [AppendDocument] :append_document with the append document data.
2203
+ # @option opts [String] :append_file Append file server path.
2204
+ # @option opts [Integer] :start_page Appending start page. (default to 0)
2205
+ # @option opts [Integer] :end_page Appending end page. (default to 0)
2206
+ # @option opts [String] :storage The documents storage.
2207
+ # @option opts [String] :folder The original document folder.
2208
+ # @return [DocumentResponse]
2209
+ def post_append_document(name, opts = {})
2210
+ data, _status_code, _headers = post_append_document_with_http_info(name, opts)
2211
+ return data
2212
+ end
2213
+
2214
+ # Append document to existing one.
2215
+ #
2216
+ # @param name The original document name.
2217
+ # @param [Hash] opts the optional parameters
2218
+ # @option opts [AppendDocument] :append_document with the append document data.
2219
+ # @option opts [String] :append_file Append file server path.
2220
+ # @option opts [Integer] :start_page Appending start page.
2221
+ # @option opts [Integer] :end_page Appending end page.
2222
+ # @option opts [String] :storage The documents storage.
2223
+ # @option opts [String] :folder The original document folder.
2224
+ # @return [Array<(DocumentResponse, Fixnum, Hash)>] DocumentResponse data, response status code and response headers
2225
+ def post_append_document_with_http_info(name, opts = {})
2226
+ if @api_client.config.debugging
2227
+ @api_client.config.logger.debug "Calling API: PdfApi.post_append_document ..."
2228
+ end
2229
+ # verify the required parameter 'name' is set
2230
+ if @api_client.config.client_side_validation && name.nil?
2231
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_append_document"
2232
+ end
2233
+ # resource path
2234
+ local_var_path = "/pdf/{name}/appendDocument".sub('{' + 'name' + '}', name.to_s)
2235
+
2236
+ # query parameters
2237
+ query_params = {}
2238
+ query_params[:'appendFile'] = opts[:'append_file'] if !opts[:'append_file'].nil?
2239
+ query_params[:'startPage'] = opts[:'start_page'] if !opts[:'start_page'].nil?
2240
+ query_params[:'endPage'] = opts[:'end_page'] if !opts[:'end_page'].nil?
2241
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2242
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2243
+
2244
+ # header parameters
2245
+ header_params = {}
2246
+ # HTTP header 'Accept' (if needed)
2247
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2248
+ # HTTP header 'Content-Type'
2249
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2250
+
2251
+ # form parameters
2252
+ form_params = {}
2253
+
2254
+ # http body (model)
2255
+ post_body = @api_client.object_to_http_body(opts[:'append_document'])
2256
+ auth_names = []
2257
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2258
+ :header_params => header_params,
2259
+ :query_params => query_params,
2260
+ :form_params => form_params,
2261
+ :body => post_body,
2262
+ :auth_names => auth_names,
2263
+ :return_type => 'DocumentResponse')
2264
+ if @api_client.config.debugging
2265
+ @api_client.config.logger.debug "API called: PdfApi#post_append_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2266
+ end
2267
+ return data, status_code, headers
2268
+ end
2269
+
2270
+ # Create field.
2271
+ #
2272
+ # @param name The document name.
2273
+ # @param page Document page number.
2274
+ # @param [Hash] opts the optional parameters
2275
+ # @option opts [Field] :field with the field data.
2276
+ # @option opts [String] :storage The document storage.
2277
+ # @option opts [String] :folder The document folder.
2278
+ # @return [SaaSposeResponse]
2279
+ def post_create_field(name, page, opts = {})
2280
+ data, _status_code, _headers = post_create_field_with_http_info(name, page, opts)
2281
+ return data
2282
+ end
2283
+
2284
+ # Create field.
2285
+ #
2286
+ # @param name The document name.
2287
+ # @param page Document page number.
2288
+ # @param [Hash] opts the optional parameters
2289
+ # @option opts [Field] :field with the field data.
2290
+ # @option opts [String] :storage The document storage.
2291
+ # @option opts [String] :folder The document folder.
2292
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
2293
+ def post_create_field_with_http_info(name, page, opts = {})
2294
+ if @api_client.config.debugging
2295
+ @api_client.config.logger.debug "Calling API: PdfApi.post_create_field ..."
2296
+ end
2297
+ # verify the required parameter 'name' is set
2298
+ if @api_client.config.client_side_validation && name.nil?
2299
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_create_field"
2300
+ end
2301
+ # verify the required parameter 'page' is set
2302
+ if @api_client.config.client_side_validation && page.nil?
2303
+ fail ArgumentError, "Missing the required parameter 'page' when calling PdfApi.post_create_field"
2304
+ end
2305
+ # resource path
2306
+ local_var_path = "/pdf/{name}/fields".sub('{' + 'name' + '}', name.to_s)
2307
+
2308
+ # query parameters
2309
+ query_params = {}
2310
+ query_params[:'page'] = page
2311
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2312
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2313
+
2314
+ # header parameters
2315
+ header_params = {}
2316
+ # HTTP header 'Accept' (if needed)
2317
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2318
+ # HTTP header 'Content-Type'
2319
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2320
+
2321
+ # form parameters
2322
+ form_params = {}
2323
+
2324
+ # http body (model)
2325
+ post_body = @api_client.object_to_http_body(opts[:'field'])
2326
+ auth_names = []
2327
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2328
+ :header_params => header_params,
2329
+ :query_params => query_params,
2330
+ :form_params => form_params,
2331
+ :body => post_body,
2332
+ :auth_names => auth_names,
2333
+ :return_type => 'SaaSposeResponse')
2334
+ if @api_client.config.debugging
2335
+ @api_client.config.logger.debug "API called: PdfApi#post_create_field\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2336
+ end
2337
+ return data, status_code, headers
2338
+ end
2339
+
2340
+ # Document's replace text method. Deprecated
2341
+ #
2342
+ # @param name
2343
+ # @param text_replace
2344
+ # @param [Hash] opts the optional parameters
2345
+ # @option opts [String] :storage
2346
+ # @option opts [String] :folder
2347
+ # @return [DocumentTextReplaceResponse]
2348
+ def post_document_replace_text(name, text_replace, opts = {})
2349
+ data, _status_code, _headers = post_document_replace_text_with_http_info(name, text_replace, opts)
2350
+ return data
2351
+ end
2352
+
2353
+ # Document&#39;s replace text method. Deprecated
2354
+ #
2355
+ # @param name
2356
+ # @param text_replace
2357
+ # @param [Hash] opts the optional parameters
2358
+ # @option opts [String] :storage
2359
+ # @option opts [String] :folder
2360
+ # @return [Array<(DocumentTextReplaceResponse, Fixnum, Hash)>] DocumentTextReplaceResponse data, response status code and response headers
2361
+ def post_document_replace_text_with_http_info(name, text_replace, opts = {})
2362
+ if @api_client.config.debugging
2363
+ @api_client.config.logger.debug "Calling API: PdfApi.post_document_replace_text ..."
2364
+ end
2365
+ # verify the required parameter 'name' is set
2366
+ if @api_client.config.client_side_validation && name.nil?
2367
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_replace_text"
2368
+ end
2369
+ # verify the required parameter 'text_replace' is set
2370
+ if @api_client.config.client_side_validation && text_replace.nil?
2371
+ fail ArgumentError, "Missing the required parameter 'text_replace' when calling PdfApi.post_document_replace_text"
2372
+ end
2373
+ # resource path
2374
+ local_var_path = "/pdf/{name}/replaceText".sub('{' + 'name' + '}', name.to_s)
2375
+
2376
+ # query parameters
2377
+ query_params = {}
2378
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2379
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2380
+
2381
+ # header parameters
2382
+ header_params = {}
2383
+ # HTTP header 'Accept' (if needed)
2384
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2385
+ # HTTP header 'Content-Type'
2386
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2387
+
2388
+ # form parameters
2389
+ form_params = {}
2390
+
2391
+ # http body (model)
2392
+ post_body = @api_client.object_to_http_body(text_replace)
2393
+ auth_names = []
2394
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2395
+ :header_params => header_params,
2396
+ :query_params => query_params,
2397
+ :form_params => form_params,
2398
+ :body => post_body,
2399
+ :auth_names => auth_names,
2400
+ :return_type => 'DocumentTextReplaceResponse')
2401
+ if @api_client.config.debugging
2402
+ @api_client.config.logger.debug "API called: PdfApi#post_document_replace_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2403
+ end
2404
+ return data, status_code, headers
2405
+ end
2406
+
2407
+ # Document's replace text method. Deprecated
2408
+ #
2409
+ # @param name
2410
+ # @param text_replace_list_request
2411
+ # @param [Hash] opts the optional parameters
2412
+ # @option opts [String] :storage
2413
+ # @option opts [String] :folder
2414
+ # @return [DocumentTextReplaceResponse]
2415
+ def post_document_replace_text_list(name, text_replace_list_request, opts = {})
2416
+ data, _status_code, _headers = post_document_replace_text_list_with_http_info(name, text_replace_list_request, opts)
2417
+ return data
2418
+ end
2419
+
2420
+ # Document&#39;s replace text method. Deprecated
2421
+ #
2422
+ # @param name
2423
+ # @param text_replace_list_request
2424
+ # @param [Hash] opts the optional parameters
2425
+ # @option opts [String] :storage
2426
+ # @option opts [String] :folder
2427
+ # @return [Array<(DocumentTextReplaceResponse, Fixnum, Hash)>] DocumentTextReplaceResponse data, response status code and response headers
2428
+ def post_document_replace_text_list_with_http_info(name, text_replace_list_request, opts = {})
2429
+ if @api_client.config.debugging
2430
+ @api_client.config.logger.debug "Calling API: PdfApi.post_document_replace_text_list ..."
2431
+ end
2432
+ # verify the required parameter 'name' is set
2433
+ if @api_client.config.client_side_validation && name.nil?
2434
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_replace_text_list"
2435
+ end
2436
+ # verify the required parameter 'text_replace_list_request' is set
2437
+ if @api_client.config.client_side_validation && text_replace_list_request.nil?
2438
+ fail ArgumentError, "Missing the required parameter 'text_replace_list_request' when calling PdfApi.post_document_replace_text_list"
2439
+ end
2440
+ # resource path
2441
+ local_var_path = "/pdf/{name}/replaceTextList".sub('{' + 'name' + '}', name.to_s)
2442
+
2443
+ # query parameters
2444
+ query_params = {}
2445
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2446
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2447
+
2448
+ # header parameters
2449
+ header_params = {}
2450
+ # HTTP header 'Accept' (if needed)
2451
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2452
+ # HTTP header 'Content-Type'
2453
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2454
+
2455
+ # form parameters
2456
+ form_params = {}
2457
+
2458
+ # http body (model)
2459
+ post_body = @api_client.object_to_http_body(text_replace_list_request)
2460
+ auth_names = []
2461
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2462
+ :header_params => header_params,
2463
+ :query_params => query_params,
2464
+ :form_params => form_params,
2465
+ :body => post_body,
2466
+ :auth_names => auth_names,
2467
+ :return_type => 'DocumentTextReplaceResponse')
2468
+ if @api_client.config.debugging
2469
+ @api_client.config.logger.debug "API called: PdfApi#post_document_replace_text_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2470
+ end
2471
+ return data, status_code, headers
2472
+ end
2473
+
2474
+ # Document's replace text method.
2475
+ #
2476
+ # @param name
2477
+ # @param text_replace
2478
+ # @param [Hash] opts the optional parameters
2479
+ # @option opts [String] :storage
2480
+ # @option opts [String] :folder
2481
+ # @return [TextReplaceResponse]
2482
+ def post_document_text_replace(name, text_replace, opts = {})
2483
+ data, _status_code, _headers = post_document_text_replace_with_http_info(name, text_replace, opts)
2484
+ return data
2485
+ end
2486
+
2487
+ # Document&#39;s replace text method.
2488
+ #
2489
+ # @param name
2490
+ # @param text_replace
2491
+ # @param [Hash] opts the optional parameters
2492
+ # @option opts [String] :storage
2493
+ # @option opts [String] :folder
2494
+ # @return [Array<(TextReplaceResponse, Fixnum, Hash)>] TextReplaceResponse data, response status code and response headers
2495
+ def post_document_text_replace_with_http_info(name, text_replace, opts = {})
2496
+ if @api_client.config.debugging
2497
+ @api_client.config.logger.debug "Calling API: PdfApi.post_document_text_replace ..."
2498
+ end
2499
+ # verify the required parameter 'name' is set
2500
+ if @api_client.config.client_side_validation && name.nil?
2501
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_document_text_replace"
2502
+ end
2503
+ # verify the required parameter 'text_replace' is set
2504
+ if @api_client.config.client_side_validation && text_replace.nil?
2505
+ fail ArgumentError, "Missing the required parameter 'text_replace' when calling PdfApi.post_document_text_replace"
2506
+ end
2507
+ # resource path
2508
+ local_var_path = "/pdf/{name}/text/replace".sub('{' + 'name' + '}', name.to_s)
2509
+
2510
+ # query parameters
2511
+ query_params = {}
2512
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2513
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2514
+
2515
+ # header parameters
2516
+ header_params = {}
2517
+ # HTTP header 'Accept' (if needed)
2518
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2519
+ # HTTP header 'Content-Type'
2520
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2521
+
2522
+ # form parameters
2523
+ form_params = {}
2524
+
2525
+ # http body (model)
2526
+ post_body = @api_client.object_to_http_body(text_replace)
2527
+ auth_names = []
2528
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2529
+ :header_params => header_params,
2530
+ :query_params => query_params,
2531
+ :form_params => form_params,
2532
+ :body => post_body,
2533
+ :auth_names => auth_names,
2534
+ :return_type => 'TextReplaceResponse')
2535
+ if @api_client.config.debugging
2536
+ @api_client.config.logger.debug "API called: PdfApi#post_document_text_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2537
+ end
2538
+ return data, status_code, headers
2539
+ end
2540
+
2541
+ # Move page to new position.
2542
+ #
2543
+ # @param name The document name.
2544
+ # @param page_number The page number.
2545
+ # @param new_index The new page position/index.
2546
+ # @param [Hash] opts the optional parameters
2547
+ # @option opts [String] :storage The document storage.
2548
+ # @option opts [String] :folder The document folder.
2549
+ # @return [SaaSposeResponse]
2550
+ def post_move_page(name, page_number, new_index, opts = {})
2551
+ data, _status_code, _headers = post_move_page_with_http_info(name, page_number, new_index, opts)
2552
+ return data
2553
+ end
2554
+
2555
+ # Move page to new position.
2556
+ #
2557
+ # @param name The document name.
2558
+ # @param page_number The page number.
2559
+ # @param new_index The new page position/index.
2560
+ # @param [Hash] opts the optional parameters
2561
+ # @option opts [String] :storage The document storage.
2562
+ # @option opts [String] :folder The document folder.
2563
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
2564
+ def post_move_page_with_http_info(name, page_number, new_index, opts = {})
2565
+ if @api_client.config.debugging
2566
+ @api_client.config.logger.debug "Calling API: PdfApi.post_move_page ..."
2567
+ end
2568
+ # verify the required parameter 'name' is set
2569
+ if @api_client.config.client_side_validation && name.nil?
2570
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_move_page"
2571
+ end
2572
+ # verify the required parameter 'page_number' is set
2573
+ if @api_client.config.client_side_validation && page_number.nil?
2574
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_move_page"
2575
+ end
2576
+ # verify the required parameter 'new_index' is set
2577
+ if @api_client.config.client_side_validation && new_index.nil?
2578
+ fail ArgumentError, "Missing the required parameter 'new_index' when calling PdfApi.post_move_page"
2579
+ end
2580
+ # resource path
2581
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/movePage".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
2582
+
2583
+ # query parameters
2584
+ query_params = {}
2585
+ query_params[:'newIndex'] = new_index
2586
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2587
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2588
+
2589
+ # header parameters
2590
+ header_params = {}
2591
+ # HTTP header 'Accept' (if needed)
2592
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2593
+ # HTTP header 'Content-Type'
2594
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2595
+
2596
+ # form parameters
2597
+ form_params = {}
2598
+
2599
+ # http body (model)
2600
+ post_body = nil
2601
+ auth_names = []
2602
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2603
+ :header_params => header_params,
2604
+ :query_params => query_params,
2605
+ :form_params => form_params,
2606
+ :body => post_body,
2607
+ :auth_names => auth_names,
2608
+ :return_type => 'SaaSposeResponse')
2609
+ if @api_client.config.debugging
2610
+ @api_client.config.logger.debug "API called: PdfApi#post_move_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2611
+ end
2612
+ return data, status_code, headers
2613
+ end
2614
+
2615
+ # Optimize document.
2616
+ #
2617
+ # @param name The document name.
2618
+ # @param [Hash] opts the optional parameters
2619
+ # @option opts [OptimizeOptions] :options The optimization options.
2620
+ # @option opts [String] :storage The document storage.
2621
+ # @option opts [String] :folder The document folder.
2622
+ # @return [SaaSposeResponse]
2623
+ def post_optimize_document(name, opts = {})
2624
+ data, _status_code, _headers = post_optimize_document_with_http_info(name, opts)
2625
+ return data
2626
+ end
2627
+
2628
+ # Optimize document.
2629
+ #
2630
+ # @param name The document name.
2631
+ # @param [Hash] opts the optional parameters
2632
+ # @option opts [OptimizeOptions] :options The optimization options.
2633
+ # @option opts [String] :storage The document storage.
2634
+ # @option opts [String] :folder The document folder.
2635
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
2636
+ def post_optimize_document_with_http_info(name, opts = {})
2637
+ if @api_client.config.debugging
2638
+ @api_client.config.logger.debug "Calling API: PdfApi.post_optimize_document ..."
2639
+ end
2640
+ # verify the required parameter 'name' is set
2641
+ if @api_client.config.client_side_validation && name.nil?
2642
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_optimize_document"
2643
+ end
2644
+ # resource path
2645
+ local_var_path = "/pdf/{name}/optimize".sub('{' + 'name' + '}', name.to_s)
2646
+
2647
+ # query parameters
2648
+ query_params = {}
2649
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2650
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2651
+
2652
+ # header parameters
2653
+ header_params = {}
2654
+ # HTTP header 'Accept' (if needed)
2655
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2656
+ # HTTP header 'Content-Type'
2657
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2658
+
2659
+ # form parameters
2660
+ form_params = {}
2661
+
2662
+ # http body (model)
2663
+ post_body = @api_client.object_to_http_body(opts[:'options'])
2664
+ auth_names = []
2665
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2666
+ :header_params => header_params,
2667
+ :query_params => query_params,
2668
+ :form_params => form_params,
2669
+ :body => post_body,
2670
+ :auth_names => auth_names,
2671
+ :return_type => 'SaaSposeResponse')
2672
+ if @api_client.config.debugging
2673
+ @api_client.config.logger.debug "API called: PdfApi#post_optimize_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2674
+ end
2675
+ return data, status_code, headers
2676
+ end
2677
+
2678
+ # Page's replace text method. Deprecated
2679
+ #
2680
+ # @param name
2681
+ # @param page_number
2682
+ # @param text_replace
2683
+ # @param [Hash] opts the optional parameters
2684
+ # @option opts [String] :storage
2685
+ # @option opts [String] :folder
2686
+ # @return [PageTextReplaceResponse]
2687
+ def post_page_replace_text(name, page_number, text_replace, opts = {})
2688
+ data, _status_code, _headers = post_page_replace_text_with_http_info(name, page_number, text_replace, opts)
2689
+ return data
2690
+ end
2691
+
2692
+ # Page&#39;s replace text method. Deprecated
2693
+ #
2694
+ # @param name
2695
+ # @param page_number
2696
+ # @param text_replace
2697
+ # @param [Hash] opts the optional parameters
2698
+ # @option opts [String] :storage
2699
+ # @option opts [String] :folder
2700
+ # @return [Array<(PageTextReplaceResponse, Fixnum, Hash)>] PageTextReplaceResponse data, response status code and response headers
2701
+ def post_page_replace_text_with_http_info(name, page_number, text_replace, opts = {})
2702
+ if @api_client.config.debugging
2703
+ @api_client.config.logger.debug "Calling API: PdfApi.post_page_replace_text ..."
2704
+ end
2705
+ # verify the required parameter 'name' is set
2706
+ if @api_client.config.client_side_validation && name.nil?
2707
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_replace_text"
2708
+ end
2709
+ # verify the required parameter 'page_number' is set
2710
+ if @api_client.config.client_side_validation && page_number.nil?
2711
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_replace_text"
2712
+ end
2713
+ # verify the required parameter 'text_replace' is set
2714
+ if @api_client.config.client_side_validation && text_replace.nil?
2715
+ fail ArgumentError, "Missing the required parameter 'text_replace' when calling PdfApi.post_page_replace_text"
2716
+ end
2717
+ # resource path
2718
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/replaceText".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
2719
+
2720
+ # query parameters
2721
+ query_params = {}
2722
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2723
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2724
+
2725
+ # header parameters
2726
+ header_params = {}
2727
+ # HTTP header 'Accept' (if needed)
2728
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2729
+ # HTTP header 'Content-Type'
2730
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2731
+
2732
+ # form parameters
2733
+ form_params = {}
2734
+
2735
+ # http body (model)
2736
+ post_body = @api_client.object_to_http_body(text_replace)
2737
+ auth_names = []
2738
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2739
+ :header_params => header_params,
2740
+ :query_params => query_params,
2741
+ :form_params => form_params,
2742
+ :body => post_body,
2743
+ :auth_names => auth_names,
2744
+ :return_type => 'PageTextReplaceResponse')
2745
+ if @api_client.config.debugging
2746
+ @api_client.config.logger.debug "API called: PdfApi#post_page_replace_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2747
+ end
2748
+ return data, status_code, headers
2749
+ end
2750
+
2751
+ # Page's replace text method. Deprecated
2752
+ #
2753
+ # @param name
2754
+ # @param page_number
2755
+ # @param text_replace_list_request
2756
+ # @param [Hash] opts the optional parameters
2757
+ # @option opts [String] :storage
2758
+ # @option opts [String] :folder
2759
+ # @return [PageTextReplaceResponse]
2760
+ def post_page_replace_text_list(name, page_number, text_replace_list_request, opts = {})
2761
+ data, _status_code, _headers = post_page_replace_text_list_with_http_info(name, page_number, text_replace_list_request, opts)
2762
+ return data
2763
+ end
2764
+
2765
+ # Page&#39;s replace text method. Deprecated
2766
+ #
2767
+ # @param name
2768
+ # @param page_number
2769
+ # @param text_replace_list_request
2770
+ # @param [Hash] opts the optional parameters
2771
+ # @option opts [String] :storage
2772
+ # @option opts [String] :folder
2773
+ # @return [Array<(PageTextReplaceResponse, Fixnum, Hash)>] PageTextReplaceResponse data, response status code and response headers
2774
+ def post_page_replace_text_list_with_http_info(name, page_number, text_replace_list_request, opts = {})
2775
+ if @api_client.config.debugging
2776
+ @api_client.config.logger.debug "Calling API: PdfApi.post_page_replace_text_list ..."
2777
+ end
2778
+ # verify the required parameter 'name' is set
2779
+ if @api_client.config.client_side_validation && name.nil?
2780
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_replace_text_list"
2781
+ end
2782
+ # verify the required parameter 'page_number' is set
2783
+ if @api_client.config.client_side_validation && page_number.nil?
2784
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_replace_text_list"
2785
+ end
2786
+ # verify the required parameter 'text_replace_list_request' is set
2787
+ if @api_client.config.client_side_validation && text_replace_list_request.nil?
2788
+ fail ArgumentError, "Missing the required parameter 'text_replace_list_request' when calling PdfApi.post_page_replace_text_list"
2789
+ end
2790
+ # resource path
2791
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/replaceTextList".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
2792
+
2793
+ # query parameters
2794
+ query_params = {}
2795
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2796
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2797
+
2798
+ # header parameters
2799
+ header_params = {}
2800
+ # HTTP header 'Accept' (if needed)
2801
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2802
+ # HTTP header 'Content-Type'
2803
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2804
+
2805
+ # form parameters
2806
+ form_params = {}
2807
+
2808
+ # http body (model)
2809
+ post_body = @api_client.object_to_http_body(text_replace_list_request)
2810
+ auth_names = []
2811
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2812
+ :header_params => header_params,
2813
+ :query_params => query_params,
2814
+ :form_params => form_params,
2815
+ :body => post_body,
2816
+ :auth_names => auth_names,
2817
+ :return_type => 'PageTextReplaceResponse')
2818
+ if @api_client.config.debugging
2819
+ @api_client.config.logger.debug "API called: PdfApi#post_page_replace_text_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2820
+ end
2821
+ return data, status_code, headers
2822
+ end
2823
+
2824
+ # Page's replace text method.
2825
+ #
2826
+ # @param name
2827
+ # @param page_number
2828
+ # @param text_replace_list_request
2829
+ # @param [Hash] opts the optional parameters
2830
+ # @option opts [String] :storage
2831
+ # @option opts [String] :folder
2832
+ # @return [TextReplaceResponse]
2833
+ def post_page_text_replace(name, page_number, text_replace_list_request, opts = {})
2834
+ data, _status_code, _headers = post_page_text_replace_with_http_info(name, page_number, text_replace_list_request, opts)
2835
+ return data
2836
+ end
2837
+
2838
+ # Page&#39;s replace text method.
2839
+ #
2840
+ # @param name
2841
+ # @param page_number
2842
+ # @param text_replace_list_request
2843
+ # @param [Hash] opts the optional parameters
2844
+ # @option opts [String] :storage
2845
+ # @option opts [String] :folder
2846
+ # @return [Array<(TextReplaceResponse, Fixnum, Hash)>] TextReplaceResponse data, response status code and response headers
2847
+ def post_page_text_replace_with_http_info(name, page_number, text_replace_list_request, opts = {})
2848
+ if @api_client.config.debugging
2849
+ @api_client.config.logger.debug "Calling API: PdfApi.post_page_text_replace ..."
2850
+ end
2851
+ # verify the required parameter 'name' is set
2852
+ if @api_client.config.client_side_validation && name.nil?
2853
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_page_text_replace"
2854
+ end
2855
+ # verify the required parameter 'page_number' is set
2856
+ if @api_client.config.client_side_validation && page_number.nil?
2857
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_page_text_replace"
2858
+ end
2859
+ # verify the required parameter 'text_replace_list_request' is set
2860
+ if @api_client.config.client_side_validation && text_replace_list_request.nil?
2861
+ fail ArgumentError, "Missing the required parameter 'text_replace_list_request' when calling PdfApi.post_page_text_replace"
2862
+ end
2863
+ # resource path
2864
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/text/replace".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
2865
+
2866
+ # query parameters
2867
+ query_params = {}
2868
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2869
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2870
+
2871
+ # header parameters
2872
+ header_params = {}
2873
+ # HTTP header 'Accept' (if needed)
2874
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2875
+ # HTTP header 'Content-Type'
2876
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2877
+
2878
+ # form parameters
2879
+ form_params = {}
2880
+
2881
+ # http body (model)
2882
+ post_body = @api_client.object_to_http_body(text_replace_list_request)
2883
+ auth_names = []
2884
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2885
+ :header_params => header_params,
2886
+ :query_params => query_params,
2887
+ :form_params => form_params,
2888
+ :body => post_body,
2889
+ :auth_names => auth_names,
2890
+ :return_type => 'TextReplaceResponse')
2891
+ if @api_client.config.debugging
2892
+ @api_client.config.logger.debug "API called: PdfApi#post_page_text_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2893
+ end
2894
+ return data, status_code, headers
2895
+ end
2896
+
2897
+ # Replace document image.
2898
+ #
2899
+ # @param name The document name.
2900
+ # @param page_number The page number.
2901
+ # @param image_number The image number.
2902
+ # @param [Hash] opts the optional parameters
2903
+ # @option opts [String] :image_file Path to image file if specified. Request content is used otherwise.
2904
+ # @option opts [String] :storage The document storage.
2905
+ # @option opts [String] :folder The document folder.
2906
+ # @return [ImageResponse]
2907
+ def post_replace_image(name, page_number, image_number, opts = {})
2908
+ data, _status_code, _headers = post_replace_image_with_http_info(name, page_number, image_number, opts)
2909
+ return data
2910
+ end
2911
+
2912
+ # Replace document image.
2913
+ #
2914
+ # @param name The document name.
2915
+ # @param page_number The page number.
2916
+ # @param image_number The image number.
2917
+ # @param [Hash] opts the optional parameters
2918
+ # @option opts [String] :image_file Path to image file if specified. Request content is used otherwise.
2919
+ # @option opts [String] :storage The document storage.
2920
+ # @option opts [String] :folder The document folder.
2921
+ # @return [Array<(ImageResponse, Fixnum, Hash)>] ImageResponse data, response status code and response headers
2922
+ def post_replace_image_with_http_info(name, page_number, image_number, opts = {})
2923
+ if @api_client.config.debugging
2924
+ @api_client.config.logger.debug "Calling API: PdfApi.post_replace_image ..."
2925
+ end
2926
+ # verify the required parameter 'name' is set
2927
+ if @api_client.config.client_side_validation && name.nil?
2928
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_replace_image"
2929
+ end
2930
+ # verify the required parameter 'page_number' is set
2931
+ if @api_client.config.client_side_validation && page_number.nil?
2932
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_replace_image"
2933
+ end
2934
+ # verify the required parameter 'image_number' is set
2935
+ if @api_client.config.client_side_validation && image_number.nil?
2936
+ fail ArgumentError, "Missing the required parameter 'image_number' when calling PdfApi.post_replace_image"
2937
+ end
2938
+ # resource path
2939
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/images/{imageNumber}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s).sub('{' + 'imageNumber' + '}', image_number.to_s)
2940
+
2941
+ # query parameters
2942
+ query_params = {}
2943
+ query_params[:'imageFile'] = opts[:'image_file'] if !opts[:'image_file'].nil?
2944
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
2945
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2946
+
2947
+ # header parameters
2948
+ header_params = {}
2949
+ # HTTP header 'Accept' (if needed)
2950
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2951
+ # HTTP header 'Content-Type'
2952
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2953
+
2954
+ # form parameters
2955
+ form_params = {}
2956
+
2957
+ # http body (model)
2958
+ post_body = nil
2959
+ auth_names = []
2960
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2961
+ :header_params => header_params,
2962
+ :query_params => query_params,
2963
+ :form_params => form_params,
2964
+ :body => post_body,
2965
+ :auth_names => auth_names,
2966
+ :return_type => 'ImageResponse')
2967
+ if @api_client.config.debugging
2968
+ @api_client.config.logger.debug "API called: PdfApi#post_replace_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2969
+ end
2970
+ return data, status_code, headers
2971
+ end
2972
+
2973
+ # Sign document.
2974
+ #
2975
+ # @param name The document name.
2976
+ # @param [Hash] opts the optional parameters
2977
+ # @option opts [Signature] :signature Signature object containing signature data.
2978
+ # @option opts [String] :storage The document storage.
2979
+ # @option opts [String] :folder The document folder.
2980
+ # @return [SaaSposeResponse]
2981
+ def post_sign_document(name, opts = {})
2982
+ data, _status_code, _headers = post_sign_document_with_http_info(name, opts)
2983
+ return data
2984
+ end
2985
+
2986
+ # Sign document.
2987
+ #
2988
+ # @param name The document name.
2989
+ # @param [Hash] opts the optional parameters
2990
+ # @option opts [Signature] :signature Signature object containing signature data.
2991
+ # @option opts [String] :storage The document storage.
2992
+ # @option opts [String] :folder The document folder.
2993
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
2994
+ def post_sign_document_with_http_info(name, opts = {})
2995
+ if @api_client.config.debugging
2996
+ @api_client.config.logger.debug "Calling API: PdfApi.post_sign_document ..."
2997
+ end
2998
+ # verify the required parameter 'name' is set
2999
+ if @api_client.config.client_side_validation && name.nil?
3000
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_sign_document"
3001
+ end
3002
+ # resource path
3003
+ local_var_path = "/pdf/{name}/sign".sub('{' + 'name' + '}', name.to_s)
3004
+
3005
+ # query parameters
3006
+ query_params = {}
3007
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3008
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3009
+
3010
+ # header parameters
3011
+ header_params = {}
3012
+ # HTTP header 'Accept' (if needed)
3013
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3014
+ # HTTP header 'Content-Type'
3015
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3016
+
3017
+ # form parameters
3018
+ form_params = {}
3019
+
3020
+ # http body (model)
3021
+ post_body = @api_client.object_to_http_body(opts[:'signature'])
3022
+ auth_names = []
3023
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3024
+ :header_params => header_params,
3025
+ :query_params => query_params,
3026
+ :form_params => form_params,
3027
+ :body => post_body,
3028
+ :auth_names => auth_names,
3029
+ :return_type => 'SaaSposeResponse')
3030
+ if @api_client.config.debugging
3031
+ @api_client.config.logger.debug "API called: PdfApi#post_sign_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3032
+ end
3033
+ return data, status_code, headers
3034
+ end
3035
+
3036
+ # Sign page.
3037
+ #
3038
+ # @param name The document name.
3039
+ # @param page_number The page number.
3040
+ # @param [Hash] opts the optional parameters
3041
+ # @option opts [Signature] :signature Signature object containing signature data.
3042
+ # @option opts [String] :storage The document storage.
3043
+ # @option opts [String] :folder The document folder.
3044
+ # @return [SaaSposeResponse]
3045
+ def post_sign_page(name, page_number, opts = {})
3046
+ data, _status_code, _headers = post_sign_page_with_http_info(name, page_number, opts)
3047
+ return data
3048
+ end
3049
+
3050
+ # Sign page.
3051
+ #
3052
+ # @param name The document name.
3053
+ # @param page_number The page number.
3054
+ # @param [Hash] opts the optional parameters
3055
+ # @option opts [Signature] :signature Signature object containing signature data.
3056
+ # @option opts [String] :storage The document storage.
3057
+ # @option opts [String] :folder The document folder.
3058
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
3059
+ def post_sign_page_with_http_info(name, page_number, opts = {})
3060
+ if @api_client.config.debugging
3061
+ @api_client.config.logger.debug "Calling API: PdfApi.post_sign_page ..."
3062
+ end
3063
+ # verify the required parameter 'name' is set
3064
+ if @api_client.config.client_side_validation && name.nil?
3065
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_sign_page"
3066
+ end
3067
+ # verify the required parameter 'page_number' is set
3068
+ if @api_client.config.client_side_validation && page_number.nil?
3069
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.post_sign_page"
3070
+ end
3071
+ # resource path
3072
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/sign".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
3073
+
3074
+ # query parameters
3075
+ query_params = {}
3076
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3077
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3078
+
3079
+ # header parameters
3080
+ header_params = {}
3081
+ # HTTP header 'Accept' (if needed)
3082
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3083
+ # HTTP header 'Content-Type'
3084
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3085
+
3086
+ # form parameters
3087
+ form_params = {}
3088
+
3089
+ # http body (model)
3090
+ post_body = @api_client.object_to_http_body(opts[:'signature'])
3091
+ auth_names = []
3092
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3093
+ :header_params => header_params,
3094
+ :query_params => query_params,
3095
+ :form_params => form_params,
3096
+ :body => post_body,
3097
+ :auth_names => auth_names,
3098
+ :return_type => 'SaaSposeResponse')
3099
+ if @api_client.config.debugging
3100
+ @api_client.config.logger.debug "API called: PdfApi#post_sign_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3101
+ end
3102
+ return data, status_code, headers
3103
+ end
3104
+
3105
+ # Split document to parts.
3106
+ #
3107
+ # @param name Document name.
3108
+ # @param [Hash] opts the optional parameters
3109
+ # @option opts [String] :format Resulting documents format.
3110
+ # @option opts [Integer] :from Start page if defined.
3111
+ # @option opts [Integer] :to End page if defined.
3112
+ # @option opts [String] :storage The document storage.
3113
+ # @option opts [String] :folder The document folder.
3114
+ # @return [SplitResultResponse]
3115
+ def post_split_document(name, opts = {})
3116
+ data, _status_code, _headers = post_split_document_with_http_info(name, opts)
3117
+ return data
3118
+ end
3119
+
3120
+ # Split document to parts.
3121
+ #
3122
+ # @param name Document name.
3123
+ # @param [Hash] opts the optional parameters
3124
+ # @option opts [String] :format Resulting documents format.
3125
+ # @option opts [Integer] :from Start page if defined.
3126
+ # @option opts [Integer] :to End page if defined.
3127
+ # @option opts [String] :storage The document storage.
3128
+ # @option opts [String] :folder The document folder.
3129
+ # @return [Array<(SplitResultResponse, Fixnum, Hash)>] SplitResultResponse data, response status code and response headers
3130
+ def post_split_document_with_http_info(name, opts = {})
3131
+ if @api_client.config.debugging
3132
+ @api_client.config.logger.debug "Calling API: PdfApi.post_split_document ..."
3133
+ end
3134
+ # verify the required parameter 'name' is set
3135
+ if @api_client.config.client_side_validation && name.nil?
3136
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.post_split_document"
3137
+ end
3138
+ # resource path
3139
+ local_var_path = "/pdf/{name}/split".sub('{' + 'name' + '}', name.to_s)
3140
+
3141
+ # query parameters
3142
+ query_params = {}
3143
+ query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
3144
+ query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
3145
+ query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
3146
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3147
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3148
+
3149
+ # header parameters
3150
+ header_params = {}
3151
+ # HTTP header 'Accept' (if needed)
3152
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3153
+ # HTTP header 'Content-Type'
3154
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3155
+
3156
+ # form parameters
3157
+ form_params = {}
3158
+
3159
+ # http body (model)
3160
+ post_body = nil
3161
+ auth_names = []
3162
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3163
+ :header_params => header_params,
3164
+ :query_params => query_params,
3165
+ :form_params => form_params,
3166
+ :body => post_body,
3167
+ :auth_names => auth_names,
3168
+ :return_type => 'SplitResultResponse')
3169
+ if @api_client.config.debugging
3170
+ @api_client.config.logger.debug "API called: PdfApi#post_split_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3171
+ end
3172
+ return data, status_code, headers
3173
+ end
3174
+
3175
+ # Add new page to end of the document.
3176
+ #
3177
+ # @param name The document name.
3178
+ # @param [Hash] opts the optional parameters
3179
+ # @option opts [String] :storage The document storage.
3180
+ # @option opts [String] :folder The document folder.
3181
+ # @return [DocumentPagesResponse]
3182
+ def put_add_new_page(name, opts = {})
3183
+ data, _status_code, _headers = put_add_new_page_with_http_info(name, opts)
3184
+ return data
3185
+ end
3186
+
3187
+ # Add new page to end of the document.
3188
+ #
3189
+ # @param name The document name.
3190
+ # @param [Hash] opts the optional parameters
3191
+ # @option opts [String] :storage The document storage.
3192
+ # @option opts [String] :folder The document folder.
3193
+ # @return [Array<(DocumentPagesResponse, Fixnum, Hash)>] DocumentPagesResponse data, response status code and response headers
3194
+ def put_add_new_page_with_http_info(name, opts = {})
3195
+ if @api_client.config.debugging
3196
+ @api_client.config.logger.debug "Calling API: PdfApi.put_add_new_page ..."
3197
+ end
3198
+ # verify the required parameter 'name' is set
3199
+ if @api_client.config.client_side_validation && name.nil?
3200
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_add_new_page"
3201
+ end
3202
+ # resource path
3203
+ local_var_path = "/pdf/{name}/pages".sub('{' + 'name' + '}', name.to_s)
3204
+
3205
+ # query parameters
3206
+ query_params = {}
3207
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3208
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3209
+
3210
+ # header parameters
3211
+ header_params = {}
3212
+ # HTTP header 'Accept' (if needed)
3213
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3214
+ # HTTP header 'Content-Type'
3215
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3216
+
3217
+ # form parameters
3218
+ form_params = {}
3219
+
3220
+ # http body (model)
3221
+ post_body = nil
3222
+ auth_names = []
3223
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3224
+ :header_params => header_params,
3225
+ :query_params => query_params,
3226
+ :form_params => form_params,
3227
+ :body => post_body,
3228
+ :auth_names => auth_names,
3229
+ :return_type => 'DocumentPagesResponse')
3230
+ if @api_client.config.debugging
3231
+ @api_client.config.logger.debug "API called: PdfApi#put_add_new_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3232
+ end
3233
+ return data, status_code, headers
3234
+ end
3235
+
3236
+ # Add text to PDF document page. Deprecate
3237
+ #
3238
+ # @param name Name of the document to which text should be added.
3239
+ # @param page_number Number of page (starting with 1) to which text should be added.
3240
+ # @param [Hash] opts the optional parameters
3241
+ # @option opts [Paragraph] :paragraph Paragraph data.
3242
+ # @option opts [String] :storage File storage to be used.
3243
+ # @option opts [String] :folder Document folder.
3244
+ # @return [SaaSposeResponse]
3245
+ def put_add_paragraph(name, page_number, opts = {})
3246
+ data, _status_code, _headers = put_add_paragraph_with_http_info(name, page_number, opts)
3247
+ return data
3248
+ end
3249
+
3250
+ # Add text to PDF document page. Deprecate
3251
+ #
3252
+ # @param name Name of the document to which text should be added.
3253
+ # @param page_number Number of page (starting with 1) to which text should be added.
3254
+ # @param [Hash] opts the optional parameters
3255
+ # @option opts [Paragraph] :paragraph Paragraph data.
3256
+ # @option opts [String] :storage File storage to be used.
3257
+ # @option opts [String] :folder Document folder.
3258
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
3259
+ def put_add_paragraph_with_http_info(name, page_number, opts = {})
3260
+ if @api_client.config.debugging
3261
+ @api_client.config.logger.debug "Calling API: PdfApi.put_add_paragraph ..."
3262
+ end
3263
+ # verify the required parameter 'name' is set
3264
+ if @api_client.config.client_side_validation && name.nil?
3265
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_add_paragraph"
3266
+ end
3267
+ # verify the required parameter 'page_number' is set
3268
+ if @api_client.config.client_side_validation && page_number.nil?
3269
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.put_add_paragraph"
3270
+ end
3271
+ # resource path
3272
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/paragraph".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
3273
+
3274
+ # query parameters
3275
+ query_params = {}
3276
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3277
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3278
+
3279
+ # header parameters
3280
+ header_params = {}
3281
+ # HTTP header 'Accept' (if needed)
3282
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3283
+ # HTTP header 'Content-Type'
3284
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3285
+
3286
+ # form parameters
3287
+ form_params = {}
3288
+
3289
+ # http body (model)
3290
+ post_body = @api_client.object_to_http_body(opts[:'paragraph'])
3291
+ auth_names = []
3292
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3293
+ :header_params => header_params,
3294
+ :query_params => query_params,
3295
+ :form_params => form_params,
3296
+ :body => post_body,
3297
+ :auth_names => auth_names,
3298
+ :return_type => 'SaaSposeResponse')
3299
+ if @api_client.config.debugging
3300
+ @api_client.config.logger.debug "API called: PdfApi#put_add_paragraph\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3301
+ end
3302
+ return data, status_code, headers
3303
+ end
3304
+
3305
+ # Add text to PDF document page.
3306
+ #
3307
+ # @param name Name of the document to which text should be added.
3308
+ # @param page_number Number of page (starting with 1) to which text should be added.
3309
+ # @param [Hash] opts the optional parameters
3310
+ # @option opts [Paragraph] :paragraph Paragraph data.
3311
+ # @option opts [String] :storage File storage to be used.
3312
+ # @option opts [String] :folder Document folder.
3313
+ # @return [SaaSposeResponse]
3314
+ def put_add_text(name, page_number, opts = {})
3315
+ data, _status_code, _headers = put_add_text_with_http_info(name, page_number, opts)
3316
+ return data
3317
+ end
3318
+
3319
+ # Add text to PDF document page.
3320
+ #
3321
+ # @param name Name of the document to which text should be added.
3322
+ # @param page_number Number of page (starting with 1) to which text should be added.
3323
+ # @param [Hash] opts the optional parameters
3324
+ # @option opts [Paragraph] :paragraph Paragraph data.
3325
+ # @option opts [String] :storage File storage to be used.
3326
+ # @option opts [String] :folder Document folder.
3327
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
3328
+ def put_add_text_with_http_info(name, page_number, opts = {})
3329
+ if @api_client.config.debugging
3330
+ @api_client.config.logger.debug "Calling API: PdfApi.put_add_text ..."
3331
+ end
3332
+ # verify the required parameter 'name' is set
3333
+ if @api_client.config.client_side_validation && name.nil?
3334
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_add_text"
3335
+ end
3336
+ # verify the required parameter 'page_number' is set
3337
+ if @api_client.config.client_side_validation && page_number.nil?
3338
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.put_add_text"
3339
+ end
3340
+ # resource path
3341
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/text".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
3342
+
3343
+ # query parameters
3344
+ query_params = {}
3345
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3346
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3347
+
3348
+ # header parameters
3349
+ header_params = {}
3350
+ # HTTP header 'Accept' (if needed)
3351
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3352
+ # HTTP header 'Content-Type'
3353
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3354
+
3355
+ # form parameters
3356
+ form_params = {}
3357
+
3358
+ # http body (model)
3359
+ post_body = @api_client.object_to_http_body(opts[:'paragraph'])
3360
+ auth_names = []
3361
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3362
+ :header_params => header_params,
3363
+ :query_params => query_params,
3364
+ :form_params => form_params,
3365
+ :body => post_body,
3366
+ :auth_names => auth_names,
3367
+ :return_type => 'SaaSposeResponse')
3368
+ if @api_client.config.debugging
3369
+ @api_client.config.logger.debug "API called: PdfApi#put_add_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3370
+ end
3371
+ return data, status_code, headers
3372
+ end
3373
+
3374
+ # Convert document from request content to format specified.
3375
+ #
3376
+ # @param [Hash] opts the optional parameters
3377
+ # @option opts [String] :format The format to convert.
3378
+ # @option opts [String] :url
3379
+ # @option opts [String] :out_path Path to save result
3380
+ # @return [File]
3381
+ def put_convert_document(opts = {})
3382
+ data, _status_code, _headers = put_convert_document_with_http_info(opts)
3383
+ return data
3384
+ end
3385
+
3386
+ # Convert document from request content to format specified.
3387
+ #
3388
+ # @param [Hash] opts the optional parameters
3389
+ # @option opts [String] :format The format to convert.
3390
+ # @option opts [String] :url
3391
+ # @option opts [String] :out_path Path to save result
3392
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
3393
+ def put_convert_document_with_http_info(opts = {})
3394
+ if @api_client.config.debugging
3395
+ @api_client.config.logger.debug "Calling API: PdfApi.put_convert_document ..."
3396
+ end
3397
+ # resource path
3398
+ local_var_path = "/pdf/convert"
3399
+
3400
+ # query parameters
3401
+ query_params = {}
3402
+ query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
3403
+ query_params[:'url'] = opts[:'url'] if !opts[:'url'].nil?
3404
+ query_params[:'outPath'] = opts[:'out_path'] if !opts[:'out_path'].nil?
3405
+
3406
+ # header parameters
3407
+ header_params = {}
3408
+ # HTTP header 'Accept' (if needed)
3409
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
3410
+ # HTTP header 'Content-Type'
3411
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3412
+
3413
+ # form parameters
3414
+ form_params = {}
3415
+
3416
+ # http body (model)
3417
+ post_body = nil
3418
+ auth_names = []
3419
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3420
+ :header_params => header_params,
3421
+ :query_params => query_params,
3422
+ :form_params => form_params,
3423
+ :body => post_body,
3424
+ :auth_names => auth_names,
3425
+ :return_type => 'File')
3426
+ if @api_client.config.debugging
3427
+ @api_client.config.logger.debug "API called: PdfApi#put_convert_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3428
+ end
3429
+ return data, status_code, headers
3430
+ end
3431
+
3432
+ # Create new document.
3433
+ #
3434
+ # @param name The new document name.
3435
+ # @param [Hash] opts the optional parameters
3436
+ # @option opts [String] :template_file The template file server path if defined.
3437
+ # @option opts [String] :data_file The data file path (for xml template only).
3438
+ # @option opts [String] :template_type The template type, can be xml, html, bmp, jpg, png, tiff, emf, cgm, tex.
3439
+ # @option opts [String] :storage The document storage.
3440
+ # @option opts [String] :folder The new document folder.
3441
+ # @option opts [String] :url The url of web page if defined.
3442
+ # @option opts [BOOLEAN] :fit_size Draw a margin around content in resulting pdf. (default to false)
3443
+ # @return [DocumentResponse]
3444
+ def put_create_document(name, opts = {})
3445
+ data, _status_code, _headers = put_create_document_with_http_info(name, opts)
3446
+ return data
3447
+ end
3448
+
3449
+ # Create new document.
3450
+ #
3451
+ # @param name The new document name.
3452
+ # @param [Hash] opts the optional parameters
3453
+ # @option opts [String] :template_file The template file server path if defined.
3454
+ # @option opts [String] :data_file The data file path (for xml template only).
3455
+ # @option opts [String] :template_type The template type, can be xml, html, bmp, jpg, png, tiff, emf, cgm, tex.
3456
+ # @option opts [String] :storage The document storage.
3457
+ # @option opts [String] :folder The new document folder.
3458
+ # @option opts [String] :url The url of web page if defined.
3459
+ # @option opts [BOOLEAN] :fit_size Draw a margin around content in resulting pdf.
3460
+ # @return [Array<(DocumentResponse, Fixnum, Hash)>] DocumentResponse data, response status code and response headers
3461
+ def put_create_document_with_http_info(name, opts = {})
3462
+ if @api_client.config.debugging
3463
+ @api_client.config.logger.debug "Calling API: PdfApi.put_create_document ..."
3464
+ end
3465
+ # verify the required parameter 'name' is set
3466
+ if @api_client.config.client_side_validation && name.nil?
3467
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_create_document"
3468
+ end
3469
+ # resource path
3470
+ local_var_path = "/pdf/{name}".sub('{' + 'name' + '}', name.to_s)
3471
+
3472
+ # query parameters
3473
+ query_params = {}
3474
+ query_params[:'templateFile'] = opts[:'template_file'] if !opts[:'template_file'].nil?
3475
+ query_params[:'dataFile'] = opts[:'data_file'] if !opts[:'data_file'].nil?
3476
+ query_params[:'templateType'] = opts[:'template_type'] if !opts[:'template_type'].nil?
3477
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3478
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3479
+ query_params[:'url'] = opts[:'url'] if !opts[:'url'].nil?
3480
+ query_params[:'fitSize'] = opts[:'fit_size'] if !opts[:'fit_size'].nil?
3481
+
3482
+ # header parameters
3483
+ header_params = {}
3484
+ # HTTP header 'Accept' (if needed)
3485
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3486
+ # HTTP header 'Content-Type'
3487
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3488
+
3489
+ # form parameters
3490
+ form_params = {}
3491
+
3492
+ # http body (model)
3493
+ post_body = nil
3494
+ auth_names = []
3495
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3496
+ :header_params => header_params,
3497
+ :query_params => query_params,
3498
+ :form_params => form_params,
3499
+ :body => post_body,
3500
+ :auth_names => auth_names,
3501
+ :return_type => 'DocumentResponse')
3502
+ if @api_client.config.debugging
3503
+ @api_client.config.logger.debug "API called: PdfApi#put_create_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3504
+ end
3505
+ return data, status_code, headers
3506
+ end
3507
+
3508
+ # Create new document from images.
3509
+ #
3510
+ # @param name The new document name.
3511
+ # @param [Hash] opts the optional parameters
3512
+ # @option opts [ImagesListRequest] :images The images file paths set.
3513
+ # @option opts [BOOLEAN] :ocr To create OCR layer for image or not. (default to false)
3514
+ # @option opts [String] :ocr_lang The language which is defined for OCR engine. Default is eng. (default to eng)
3515
+ # @option opts [String] :storage The document storage.
3516
+ # @option opts [String] :folder The new document folder.
3517
+ # @return [DocumentResponse]
3518
+ def put_create_document_from_images(name, opts = {})
3519
+ data, _status_code, _headers = put_create_document_from_images_with_http_info(name, opts)
3520
+ return data
3521
+ end
3522
+
3523
+ # Create new document from images.
3524
+ #
3525
+ # @param name The new document name.
3526
+ # @param [Hash] opts the optional parameters
3527
+ # @option opts [ImagesListRequest] :images The images file paths set.
3528
+ # @option opts [BOOLEAN] :ocr To create OCR layer for image or not.
3529
+ # @option opts [String] :ocr_lang The language which is defined for OCR engine. Default is eng.
3530
+ # @option opts [String] :storage The document storage.
3531
+ # @option opts [String] :folder The new document folder.
3532
+ # @return [Array<(DocumentResponse, Fixnum, Hash)>] DocumentResponse data, response status code and response headers
3533
+ def put_create_document_from_images_with_http_info(name, opts = {})
3534
+ if @api_client.config.debugging
3535
+ @api_client.config.logger.debug "Calling API: PdfApi.put_create_document_from_images ..."
3536
+ end
3537
+ # verify the required parameter 'name' is set
3538
+ if @api_client.config.client_side_validation && name.nil?
3539
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_create_document_from_images"
3540
+ end
3541
+ # resource path
3542
+ local_var_path = "/pdf/{name}/fromimages".sub('{' + 'name' + '}', name.to_s)
3543
+
3544
+ # query parameters
3545
+ query_params = {}
3546
+ query_params[:'ocr'] = opts[:'ocr'] if !opts[:'ocr'].nil?
3547
+ query_params[:'ocrLang'] = opts[:'ocr_lang'] if !opts[:'ocr_lang'].nil?
3548
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3549
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3550
+
3551
+ # header parameters
3552
+ header_params = {}
3553
+ # HTTP header 'Accept' (if needed)
3554
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3555
+ # HTTP header 'Content-Type'
3556
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3557
+
3558
+ # form parameters
3559
+ form_params = {}
3560
+
3561
+ # http body (model)
3562
+ post_body = @api_client.object_to_http_body(opts[:'images'])
3563
+ auth_names = []
3564
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3565
+ :header_params => header_params,
3566
+ :query_params => query_params,
3567
+ :form_params => form_params,
3568
+ :body => post_body,
3569
+ :auth_names => auth_names,
3570
+ :return_type => 'DocumentResponse')
3571
+ if @api_client.config.debugging
3572
+ @api_client.config.logger.debug "API called: PdfApi#put_create_document_from_images\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3573
+ end
3574
+ return data, status_code, headers
3575
+ end
3576
+
3577
+ # Save document as Tiff image.
3578
+ #
3579
+ # @param name The document name.
3580
+ # @param [Hash] opts the optional parameters
3581
+ # @option opts [TiffExportOptions] :export_options with tiff export options.
3582
+ # @option opts [String] :result_file The resulting file.
3583
+ # @option opts [Float] :brightness The image brightness.
3584
+ # @option opts [String] :compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
3585
+ # @option opts [String] :color_depth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
3586
+ # @option opts [Integer] :left_margin Left image margin.
3587
+ # @option opts [Integer] :right_margin Right image margin.
3588
+ # @option opts [Integer] :top_margin Top image margin.
3589
+ # @option opts [Integer] :bottom_margin Bottom image margin.
3590
+ # @option opts [String] :orientation Image orientation. Possible values are: None, Landscape, Portait.
3591
+ # @option opts [BOOLEAN] :skip_blank_pages Skip blank pages flag.
3592
+ # @option opts [Integer] :width Image width.
3593
+ # @option opts [Integer] :height Image height.
3594
+ # @option opts [Integer] :x_resolution Horizontal resolution.
3595
+ # @option opts [Integer] :y_resolution Vertical resolution.
3596
+ # @option opts [Integer] :page_index Start page to export.
3597
+ # @option opts [Integer] :page_count Number of pages to export.
3598
+ # @option opts [String] :storage The document storage.
3599
+ # @option opts [String] :folder The document folder.
3600
+ # @return [SaaSposeResponse]
3601
+ def put_document_save_as_tiff(name, opts = {})
3602
+ data, _status_code, _headers = put_document_save_as_tiff_with_http_info(name, opts)
3603
+ return data
3604
+ end
3605
+
3606
+ # Save document as Tiff image.
3607
+ #
3608
+ # @param name The document name.
3609
+ # @param [Hash] opts the optional parameters
3610
+ # @option opts [TiffExportOptions] :export_options with tiff export options.
3611
+ # @option opts [String] :result_file The resulting file.
3612
+ # @option opts [Float] :brightness The image brightness.
3613
+ # @option opts [String] :compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None.
3614
+ # @option opts [String] :color_depth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp.
3615
+ # @option opts [Integer] :left_margin Left image margin.
3616
+ # @option opts [Integer] :right_margin Right image margin.
3617
+ # @option opts [Integer] :top_margin Top image margin.
3618
+ # @option opts [Integer] :bottom_margin Bottom image margin.
3619
+ # @option opts [String] :orientation Image orientation. Possible values are: None, Landscape, Portait.
3620
+ # @option opts [BOOLEAN] :skip_blank_pages Skip blank pages flag.
3621
+ # @option opts [Integer] :width Image width.
3622
+ # @option opts [Integer] :height Image height.
3623
+ # @option opts [Integer] :x_resolution Horizontal resolution.
3624
+ # @option opts [Integer] :y_resolution Vertical resolution.
3625
+ # @option opts [Integer] :page_index Start page to export.
3626
+ # @option opts [Integer] :page_count Number of pages to export.
3627
+ # @option opts [String] :storage The document storage.
3628
+ # @option opts [String] :folder The document folder.
3629
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
3630
+ def put_document_save_as_tiff_with_http_info(name, opts = {})
3631
+ if @api_client.config.debugging
3632
+ @api_client.config.logger.debug "Calling API: PdfApi.put_document_save_as_tiff ..."
3633
+ end
3634
+ # verify the required parameter 'name' is set
3635
+ if @api_client.config.client_side_validation && name.nil?
3636
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_document_save_as_tiff"
3637
+ end
3638
+ # resource path
3639
+ local_var_path = "/pdf/{name}/SaveAs/tiff".sub('{' + 'name' + '}', name.to_s)
3640
+
3641
+ # query parameters
3642
+ query_params = {}
3643
+ query_params[:'resultFile'] = opts[:'result_file'] if !opts[:'result_file'].nil?
3644
+ query_params[:'brightness'] = opts[:'brightness'] if !opts[:'brightness'].nil?
3645
+ query_params[:'compression'] = opts[:'compression'] if !opts[:'compression'].nil?
3646
+ query_params[:'colorDepth'] = opts[:'color_depth'] if !opts[:'color_depth'].nil?
3647
+ query_params[:'leftMargin'] = opts[:'left_margin'] if !opts[:'left_margin'].nil?
3648
+ query_params[:'rightMargin'] = opts[:'right_margin'] if !opts[:'right_margin'].nil?
3649
+ query_params[:'topMargin'] = opts[:'top_margin'] if !opts[:'top_margin'].nil?
3650
+ query_params[:'bottomMargin'] = opts[:'bottom_margin'] if !opts[:'bottom_margin'].nil?
3651
+ query_params[:'orientation'] = opts[:'orientation'] if !opts[:'orientation'].nil?
3652
+ query_params[:'skipBlankPages'] = opts[:'skip_blank_pages'] if !opts[:'skip_blank_pages'].nil?
3653
+ query_params[:'width'] = opts[:'width'] if !opts[:'width'].nil?
3654
+ query_params[:'height'] = opts[:'height'] if !opts[:'height'].nil?
3655
+ query_params[:'xResolution'] = opts[:'x_resolution'] if !opts[:'x_resolution'].nil?
3656
+ query_params[:'yResolution'] = opts[:'y_resolution'] if !opts[:'y_resolution'].nil?
3657
+ query_params[:'pageIndex'] = opts[:'page_index'] if !opts[:'page_index'].nil?
3658
+ query_params[:'pageCount'] = opts[:'page_count'] if !opts[:'page_count'].nil?
3659
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3660
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3661
+
3662
+ # header parameters
3663
+ header_params = {}
3664
+ # HTTP header 'Accept' (if needed)
3665
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3666
+ # HTTP header 'Content-Type'
3667
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3668
+
3669
+ # form parameters
3670
+ form_params = {}
3671
+
3672
+ # http body (model)
3673
+ post_body = @api_client.object_to_http_body(opts[:'export_options'])
3674
+ auth_names = []
3675
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3676
+ :header_params => header_params,
3677
+ :query_params => query_params,
3678
+ :form_params => form_params,
3679
+ :body => post_body,
3680
+ :auth_names => auth_names,
3681
+ :return_type => 'SaaSposeResponse')
3682
+ if @api_client.config.debugging
3683
+ @api_client.config.logger.debug "API called: PdfApi#put_document_save_as_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3684
+ end
3685
+ return data, status_code, headers
3686
+ end
3687
+
3688
+ # Merge a list of documents.
3689
+ #
3690
+ # @param name Resulting documen name.
3691
+ # @param [Hash] opts the optional parameters
3692
+ # @option opts [MergeDocuments] :merge_documents with a list of documents.
3693
+ # @option opts [String] :storage Resulting document storage.
3694
+ # @option opts [String] :folder Resulting document folder.
3695
+ # @return [DocumentResponse]
3696
+ def put_merge_documents(name, opts = {})
3697
+ data, _status_code, _headers = put_merge_documents_with_http_info(name, opts)
3698
+ return data
3699
+ end
3700
+
3701
+ # Merge a list of documents.
3702
+ #
3703
+ # @param name Resulting documen name.
3704
+ # @param [Hash] opts the optional parameters
3705
+ # @option opts [MergeDocuments] :merge_documents with a list of documents.
3706
+ # @option opts [String] :storage Resulting document storage.
3707
+ # @option opts [String] :folder Resulting document folder.
3708
+ # @return [Array<(DocumentResponse, Fixnum, Hash)>] DocumentResponse data, response status code and response headers
3709
+ def put_merge_documents_with_http_info(name, opts = {})
3710
+ if @api_client.config.debugging
3711
+ @api_client.config.logger.debug "Calling API: PdfApi.put_merge_documents ..."
3712
+ end
3713
+ # verify the required parameter 'name' is set
3714
+ if @api_client.config.client_side_validation && name.nil?
3715
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_merge_documents"
3716
+ end
3717
+ # resource path
3718
+ local_var_path = "/pdf/{name}/merge".sub('{' + 'name' + '}', name.to_s)
3719
+
3720
+ # query parameters
3721
+ query_params = {}
3722
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3723
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3724
+
3725
+ # header parameters
3726
+ header_params = {}
3727
+ # HTTP header 'Accept' (if needed)
3728
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3729
+ # HTTP header 'Content-Type'
3730
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3731
+
3732
+ # form parameters
3733
+ form_params = {}
3734
+
3735
+ # http body (model)
3736
+ post_body = @api_client.object_to_http_body(opts[:'merge_documents'])
3737
+ auth_names = []
3738
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3739
+ :header_params => header_params,
3740
+ :query_params => query_params,
3741
+ :form_params => form_params,
3742
+ :body => post_body,
3743
+ :auth_names => auth_names,
3744
+ :return_type => 'DocumentResponse')
3745
+ if @api_client.config.debugging
3746
+ @api_client.config.logger.debug "API called: PdfApi#put_merge_documents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3747
+ end
3748
+ return data, status_code, headers
3749
+ end
3750
+
3751
+ # Add page stamp.
3752
+ #
3753
+ # @param name The document name.
3754
+ # @param page_number The page number.
3755
+ # @param stamp with data.
3756
+ # @param [Hash] opts the optional parameters
3757
+ # @option opts [String] :storage The document storage.
3758
+ # @option opts [String] :folder The document folder.
3759
+ # @return [SaaSposeResponse]
3760
+ def put_page_add_stamp(name, page_number, stamp, opts = {})
3761
+ data, _status_code, _headers = put_page_add_stamp_with_http_info(name, page_number, stamp, opts)
3762
+ return data
3763
+ end
3764
+
3765
+ # Add page stamp.
3766
+ #
3767
+ # @param name The document name.
3768
+ # @param page_number The page number.
3769
+ # @param stamp with data.
3770
+ # @param [Hash] opts the optional parameters
3771
+ # @option opts [String] :storage The document storage.
3772
+ # @option opts [String] :folder The document folder.
3773
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
3774
+ def put_page_add_stamp_with_http_info(name, page_number, stamp, opts = {})
3775
+ if @api_client.config.debugging
3776
+ @api_client.config.logger.debug "Calling API: PdfApi.put_page_add_stamp ..."
3777
+ end
3778
+ # verify the required parameter 'name' is set
3779
+ if @api_client.config.client_side_validation && name.nil?
3780
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_page_add_stamp"
3781
+ end
3782
+ # verify the required parameter 'page_number' is set
3783
+ if @api_client.config.client_side_validation && page_number.nil?
3784
+ fail ArgumentError, "Missing the required parameter 'page_number' when calling PdfApi.put_page_add_stamp"
3785
+ end
3786
+ # verify the required parameter 'stamp' is set
3787
+ if @api_client.config.client_side_validation && stamp.nil?
3788
+ fail ArgumentError, "Missing the required parameter 'stamp' when calling PdfApi.put_page_add_stamp"
3789
+ end
3790
+ # resource path
3791
+ local_var_path = "/pdf/{name}/pages/{pageNumber}/stamp".sub('{' + 'name' + '}', name.to_s).sub('{' + 'pageNumber' + '}', page_number.to_s)
3792
+
3793
+ # query parameters
3794
+ query_params = {}
3795
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3796
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3797
+
3798
+ # header parameters
3799
+ header_params = {}
3800
+ # HTTP header 'Accept' (if needed)
3801
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3802
+ # HTTP header 'Content-Type'
3803
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3804
+
3805
+ # form parameters
3806
+ form_params = {}
3807
+
3808
+ # http body (model)
3809
+ post_body = @api_client.object_to_http_body(stamp)
3810
+ auth_names = []
3811
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3812
+ :header_params => header_params,
3813
+ :query_params => query_params,
3814
+ :form_params => form_params,
3815
+ :body => post_body,
3816
+ :auth_names => auth_names,
3817
+ :return_type => 'SaaSposeResponse')
3818
+ if @api_client.config.debugging
3819
+ @api_client.config.logger.debug "API called: PdfApi#put_page_add_stamp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3820
+ end
3821
+ return data, status_code, headers
3822
+ end
3823
+
3824
+ # Create searchable PDF document. Generate OCR layer for images in input PDF document.
3825
+ #
3826
+ # @param name The document name.
3827
+ # @param [Hash] opts the optional parameters
3828
+ # @option opts [String] :storage The document storage.
3829
+ # @option opts [String] :folder The document folder.
3830
+ # @option opts [String] :lang language for OCR engine. Possible values: eng, ara, bel, ben, bul, ces, dan, deu, ell, fin, fra, heb, hin, ind, isl, ita, jpn, kor, nld, nor, pol, por, ron, rus, spa, swe, tha, tur, ukr, vie, chi_sim, chi_tra or thier combination e.g. eng,rus
3831
+ # @return [SaaSposeResponse]
3832
+ def put_searchable_document(name, opts = {})
3833
+ data, _status_code, _headers = put_searchable_document_with_http_info(name, opts)
3834
+ return data
3835
+ end
3836
+
3837
+ # Create searchable PDF document. Generate OCR layer for images in input PDF document.
3838
+ #
3839
+ # @param name The document name.
3840
+ # @param [Hash] opts the optional parameters
3841
+ # @option opts [String] :storage The document storage.
3842
+ # @option opts [String] :folder The document folder.
3843
+ # @option opts [String] :lang language for OCR engine. Possible values: eng, ara, bel, ben, bul, ces, dan, deu, ell, fin, fra, heb, hin, ind, isl, ita, jpn, kor, nld, nor, pol, por, ron, rus, spa, swe, tha, tur, ukr, vie, chi_sim, chi_tra or thier combination e.g. eng,rus
3844
+ # @return [Array<(SaaSposeResponse, Fixnum, Hash)>] SaaSposeResponse data, response status code and response headers
3845
+ def put_searchable_document_with_http_info(name, opts = {})
3846
+ if @api_client.config.debugging
3847
+ @api_client.config.logger.debug "Calling API: PdfApi.put_searchable_document ..."
3848
+ end
3849
+ # verify the required parameter 'name' is set
3850
+ if @api_client.config.client_side_validation && name.nil?
3851
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_searchable_document"
3852
+ end
3853
+ # resource path
3854
+ local_var_path = "/pdf/{name}/ocr".sub('{' + 'name' + '}', name.to_s)
3855
+
3856
+ # query parameters
3857
+ query_params = {}
3858
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3859
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3860
+ query_params[:'lang'] = opts[:'lang'] if !opts[:'lang'].nil?
3861
+
3862
+ # header parameters
3863
+ header_params = {}
3864
+ # HTTP header 'Accept' (if needed)
3865
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3866
+ # HTTP header 'Content-Type'
3867
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3868
+
3869
+ # form parameters
3870
+ form_params = {}
3871
+
3872
+ # http body (model)
3873
+ post_body = nil
3874
+ auth_names = []
3875
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3876
+ :header_params => header_params,
3877
+ :query_params => query_params,
3878
+ :form_params => form_params,
3879
+ :body => post_body,
3880
+ :auth_names => auth_names,
3881
+ :return_type => 'SaaSposeResponse')
3882
+ if @api_client.config.debugging
3883
+ @api_client.config.logger.debug "API called: PdfApi#put_searchable_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3884
+ end
3885
+ return data, status_code, headers
3886
+ end
3887
+
3888
+ # Add/update document property.
3889
+ #
3890
+ # @param name
3891
+ # @param property_name
3892
+ # @param [Hash] opts the optional parameters
3893
+ # @option opts [DocumentProperty] :property
3894
+ # @option opts [String] :storage
3895
+ # @option opts [String] :folder
3896
+ # @return [DocumentPropertyResponse]
3897
+ def put_set_property(name, property_name, opts = {})
3898
+ data, _status_code, _headers = put_set_property_with_http_info(name, property_name, opts)
3899
+ return data
3900
+ end
3901
+
3902
+ # Add/update document property.
3903
+ #
3904
+ # @param name
3905
+ # @param property_name
3906
+ # @param [Hash] opts the optional parameters
3907
+ # @option opts [DocumentProperty] :property
3908
+ # @option opts [String] :storage
3909
+ # @option opts [String] :folder
3910
+ # @return [Array<(DocumentPropertyResponse, Fixnum, Hash)>] DocumentPropertyResponse data, response status code and response headers
3911
+ def put_set_property_with_http_info(name, property_name, opts = {})
3912
+ if @api_client.config.debugging
3913
+ @api_client.config.logger.debug "Calling API: PdfApi.put_set_property ..."
3914
+ end
3915
+ # verify the required parameter 'name' is set
3916
+ if @api_client.config.client_side_validation && name.nil?
3917
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_set_property"
3918
+ end
3919
+ # verify the required parameter 'property_name' is set
3920
+ if @api_client.config.client_side_validation && property_name.nil?
3921
+ fail ArgumentError, "Missing the required parameter 'property_name' when calling PdfApi.put_set_property"
3922
+ end
3923
+ # resource path
3924
+ local_var_path = "/pdf/{name}/documentproperties/{propertyName}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'propertyName' + '}', property_name.to_s)
3925
+
3926
+ # query parameters
3927
+ query_params = {}
3928
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3929
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3930
+
3931
+ # header parameters
3932
+ header_params = {}
3933
+ # HTTP header 'Accept' (if needed)
3934
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3935
+ # HTTP header 'Content-Type'
3936
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3937
+
3938
+ # form parameters
3939
+ form_params = {}
3940
+
3941
+ # http body (model)
3942
+ post_body = @api_client.object_to_http_body(opts[:'property'])
3943
+ auth_names = []
3944
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
3945
+ :header_params => header_params,
3946
+ :query_params => query_params,
3947
+ :form_params => form_params,
3948
+ :body => post_body,
3949
+ :auth_names => auth_names,
3950
+ :return_type => 'DocumentPropertyResponse')
3951
+ if @api_client.config.debugging
3952
+ @api_client.config.logger.debug "API called: PdfApi#put_set_property\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3953
+ end
3954
+ return data, status_code, headers
3955
+ end
3956
+
3957
+ # Update field.
3958
+ #
3959
+ # @param name The document name.
3960
+ # @param field_name The field name/
3961
+ # @param [Hash] opts the optional parameters
3962
+ # @option opts [Field] :field with the field data.
3963
+ # @option opts [String] :storage The document storage.
3964
+ # @option opts [String] :folder The document folder.
3965
+ # @return [FieldResponse]
3966
+ def put_update_field(name, field_name, opts = {})
3967
+ data, _status_code, _headers = put_update_field_with_http_info(name, field_name, opts)
3968
+ return data
3969
+ end
3970
+
3971
+ # Update field.
3972
+ #
3973
+ # @param name The document name.
3974
+ # @param field_name The field name/
3975
+ # @param [Hash] opts the optional parameters
3976
+ # @option opts [Field] :field with the field data.
3977
+ # @option opts [String] :storage The document storage.
3978
+ # @option opts [String] :folder The document folder.
3979
+ # @return [Array<(FieldResponse, Fixnum, Hash)>] FieldResponse data, response status code and response headers
3980
+ def put_update_field_with_http_info(name, field_name, opts = {})
3981
+ if @api_client.config.debugging
3982
+ @api_client.config.logger.debug "Calling API: PdfApi.put_update_field ..."
3983
+ end
3984
+ # verify the required parameter 'name' is set
3985
+ if @api_client.config.client_side_validation && name.nil?
3986
+ fail ArgumentError, "Missing the required parameter 'name' when calling PdfApi.put_update_field"
3987
+ end
3988
+ # verify the required parameter 'field_name' is set
3989
+ if @api_client.config.client_side_validation && field_name.nil?
3990
+ fail ArgumentError, "Missing the required parameter 'field_name' when calling PdfApi.put_update_field"
3991
+ end
3992
+ # resource path
3993
+ local_var_path = "/pdf/{name}/fields/{fieldName}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'fieldName' + '}', field_name.to_s)
3994
+
3995
+ # query parameters
3996
+ query_params = {}
3997
+ query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?
3998
+ query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
3999
+
4000
+ # header parameters
4001
+ header_params = {}
4002
+ # HTTP header 'Accept' (if needed)
4003
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4004
+ # HTTP header 'Content-Type'
4005
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4006
+
4007
+ # form parameters
4008
+ form_params = {}
4009
+
4010
+ # http body (model)
4011
+ post_body = @api_client.object_to_http_body(opts[:'field'])
4012
+ auth_names = []
4013
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4014
+ :header_params => header_params,
4015
+ :query_params => query_params,
4016
+ :form_params => form_params,
4017
+ :body => post_body,
4018
+ :auth_names => auth_names,
4019
+ :return_type => 'FieldResponse')
4020
+ if @api_client.config.debugging
4021
+ @api_client.config.logger.debug "API called: PdfApi#put_update_field\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4022
+ end
4023
+ return data, status_code, headers
4024
+ end
4025
+ end
4026
+ end