pdf4me 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (271) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +472 -0
  4. data/Rakefile +8 -0
  5. data/docs/ActionFlow.md +8 -0
  6. data/docs/ApiUsageRes.md +11 -0
  7. data/docs/ArchiveConfig.md +11 -0
  8. data/docs/ArchiveJobReq.md +12 -0
  9. data/docs/ArchiveJobRes.md +9 -0
  10. data/docs/Color.md +10 -0
  11. data/docs/ConvertApi.md +102 -0
  12. data/docs/ConvertToPdf.md +10 -0
  13. data/docs/ConvertToPdfAction.md +10 -0
  14. data/docs/ConvertToPdfRes.md +8 -0
  15. data/docs/CreateImages.md +10 -0
  16. data/docs/CreateImagesRes.md +8 -0
  17. data/docs/CreatePdfA.md +10 -0
  18. data/docs/CreatePdfARes.md +8 -0
  19. data/docs/CustomCMSConfig.md +23 -0
  20. data/docs/DocAction.md +8 -0
  21. data/docs/DocLog.md +12 -0
  22. data/docs/DocMetadata.md +16 -0
  23. data/docs/Document.md +16 -0
  24. data/docs/DocumentApi.md +203 -0
  25. data/docs/DropDocumentReq.md +20 -0
  26. data/docs/DropDocumentRes.md +15 -0
  27. data/docs/ExecutionTrigger.md +10 -0
  28. data/docs/Extract.md +10 -0
  29. data/docs/ExtractAction.md +9 -0
  30. data/docs/ExtractApi.md +102 -0
  31. data/docs/ExtractRes.md +8 -0
  32. data/docs/GetDocumentListRes.md +13 -0
  33. data/docs/GetDocumentReq.md +14 -0
  34. data/docs/GetDocumentRes.md +14 -0
  35. data/docs/IFormFile.md +13 -0
  36. data/docs/Image.md +15 -0
  37. data/docs/ImageAction.md +30 -0
  38. data/docs/ImageApi.md +107 -0
  39. data/docs/Job.md +10 -0
  40. data/docs/JobApi.md +197 -0
  41. data/docs/JobConfig.md +18 -0
  42. data/docs/JobConfigRes.md +8 -0
  43. data/docs/KeyValuePairStringObject.md +9 -0
  44. data/docs/KeyValuePairStringString.md +9 -0
  45. data/docs/ManagementApi.md +92 -0
  46. data/docs/Merge.md +10 -0
  47. data/docs/MergeAction.md +8 -0
  48. data/docs/MergeApi.md +102 -0
  49. data/docs/MergeRes.md +8 -0
  50. data/docs/Notification.md +9 -0
  51. data/docs/OcrAction.md +12 -0
  52. data/docs/OcrApi.md +57 -0
  53. data/docs/Optimize.md +10 -0
  54. data/docs/OptimizeAction.md +35 -0
  55. data/docs/OptimizeApi.md +103 -0
  56. data/docs/OptimizeRes.md +9 -0
  57. data/docs/Page.md +14 -0
  58. data/docs/PageSelection.md +10 -0
  59. data/docs/Pdf4meAction.md +12 -0
  60. data/docs/Pdf4meDocument.md +32 -0
  61. data/docs/Pdf4meException.md +8 -0
  62. data/docs/PdfAAction.md +14 -0
  63. data/docs/PdfAApi.md +102 -0
  64. data/docs/PdfFont.md +9 -0
  65. data/docs/Pricing.md +13 -0
  66. data/docs/ProduceDocuments.md +14 -0
  67. data/docs/ProduceDocumentsRes.md +8 -0
  68. data/docs/ProduceOutput.md +8 -0
  69. data/docs/RGBSet.md +10 -0
  70. data/docs/RecognizeDocument.md +10 -0
  71. data/docs/RecognizeDocumentRes.md +9 -0
  72. data/docs/Rectangle.md +11 -0
  73. data/docs/Rotate.md +10 -0
  74. data/docs/RunJobRes.md +10 -0
  75. data/docs/SignatureConfig.md +7 -0
  76. data/docs/Split.md +10 -0
  77. data/docs/SplitAction.md +11 -0
  78. data/docs/SplitApi.md +103 -0
  79. data/docs/SplitRes.md +8 -0
  80. data/docs/Stamp.md +10 -0
  81. data/docs/StampAction.md +22 -0
  82. data/docs/StampApi.md +110 -0
  83. data/docs/StampRes.md +8 -0
  84. data/docs/StorageFolder.md +10 -0
  85. data/docs/Text.md +17 -0
  86. data/docs/Transform.md +13 -0
  87. data/docs/Translate.md +9 -0
  88. data/docs/UserFingerprint.md +9 -0
  89. data/docs/VersionRes.md +8 -0
  90. data/docs/java.md +425 -0
  91. data/git_push.sh +55 -0
  92. data/lib/pdf4me.rb +124 -0
  93. data/lib/pdf4me/api/convert_api.rb +130 -0
  94. data/lib/pdf4me/api/document_api.rb +218 -0
  95. data/lib/pdf4me/api/extract_api.rb +131 -0
  96. data/lib/pdf4me/api/image_api.rb +139 -0
  97. data/lib/pdf4me/api/job_api.rb +223 -0
  98. data/lib/pdf4me/api/management_api.rb +117 -0
  99. data/lib/pdf4me/api/merge_api.rb +131 -0
  100. data/lib/pdf4me/api/ocr_api.rb +74 -0
  101. data/lib/pdf4me/api/optimize_api.rb +139 -0
  102. data/lib/pdf4me/api/pdf_a_api.rb +134 -0
  103. data/lib/pdf4me/api/split_api.rb +135 -0
  104. data/lib/pdf4me/api/stamp_api.rb +159 -0
  105. data/lib/pdf4me/api_client.rb +380 -0
  106. data/lib/pdf4me/api_error.rb +38 -0
  107. data/lib/pdf4me/configuration.rb +109 -0
  108. data/lib/pdf4me/models/action_flow.rb +190 -0
  109. data/lib/pdf4me/models/api_usage_res.rb +219 -0
  110. data/lib/pdf4me/models/archive_config.rb +226 -0
  111. data/lib/pdf4me/models/archive_job_req.rb +249 -0
  112. data/lib/pdf4me/models/archive_job_res.rb +207 -0
  113. data/lib/pdf4me/models/color.rb +206 -0
  114. data/lib/pdf4me/models/convert_to_pdf.rb +209 -0
  115. data/lib/pdf4me/models/convert_to_pdf_action.rb +253 -0
  116. data/lib/pdf4me/models/convert_to_pdf_res.rb +189 -0
  117. data/lib/pdf4me/models/create_images.rb +209 -0
  118. data/lib/pdf4me/models/create_images_res.rb +189 -0
  119. data/lib/pdf4me/models/create_pdf_a.rb +209 -0
  120. data/lib/pdf4me/models/create_pdf_a_res.rb +189 -0
  121. data/lib/pdf4me/models/custom_cms_config.rb +323 -0
  122. data/lib/pdf4me/models/doc_action.rb +190 -0
  123. data/lib/pdf4me/models/doc_log.rb +257 -0
  124. data/lib/pdf4me/models/doc_metadata.rb +285 -0
  125. data/lib/pdf4me/models/document.rb +285 -0
  126. data/lib/pdf4me/models/drop_document_req.rb +348 -0
  127. data/lib/pdf4me/models/drop_document_res.rb +260 -0
  128. data/lib/pdf4me/models/execution_trigger.rb +206 -0
  129. data/lib/pdf4me/models/extract.rb +207 -0
  130. data/lib/pdf4me/models/extract_action.rb +201 -0
  131. data/lib/pdf4me/models/extract_res.rb +188 -0
  132. data/lib/pdf4me/models/get_document_list_res.rb +237 -0
  133. data/lib/pdf4me/models/get_document_req.rb +243 -0
  134. data/lib/pdf4me/models/get_document_res.rb +246 -0
  135. data/lib/pdf4me/models/i_form_file.rb +235 -0
  136. data/lib/pdf4me/models/image.rb +300 -0
  137. data/lib/pdf4me/models/image_action.rb +513 -0
  138. data/lib/pdf4me/models/job.rb +213 -0
  139. data/lib/pdf4me/models/job_config.rb +298 -0
  140. data/lib/pdf4me/models/job_config_res.rb +193 -0
  141. data/lib/pdf4me/models/key_value_pair_string_object.rb +197 -0
  142. data/lib/pdf4me/models/key_value_pair_string_string.rb +197 -0
  143. data/lib/pdf4me/models/merge.rb +209 -0
  144. data/lib/pdf4me/models/merge_action.rb +190 -0
  145. data/lib/pdf4me/models/merge_res.rb +188 -0
  146. data/lib/pdf4me/models/notification.rb +199 -0
  147. data/lib/pdf4me/models/ocr_action.rb +259 -0
  148. data/lib/pdf4me/models/optimize.rb +209 -0
  149. data/lib/pdf4me/models/optimize_action.rb +514 -0
  150. data/lib/pdf4me/models/optimize_res.rb +199 -0
  151. data/lib/pdf4me/models/page.rb +258 -0
  152. data/lib/pdf4me/models/page_selection.rb +246 -0
  153. data/lib/pdf4me/models/pdf4me_action.rb +259 -0
  154. data/lib/pdf4me/models/pdf4me_document.rb +511 -0
  155. data/lib/pdf4me/models/pdf4me_exception.rb +189 -0
  156. data/lib/pdf4me/models/pdf_a_action.rb +297 -0
  157. data/lib/pdf4me/models/pdf_font.rb +213 -0
  158. data/lib/pdf4me/models/pricing.rb +278 -0
  159. data/lib/pdf4me/models/produce_documents.rb +251 -0
  160. data/lib/pdf4me/models/produce_documents_res.rb +191 -0
  161. data/lib/pdf4me/models/produce_output.rb +221 -0
  162. data/lib/pdf4me/models/recognize_document.rb +209 -0
  163. data/lib/pdf4me/models/recognize_document_res.rb +198 -0
  164. data/lib/pdf4me/models/rectangle.rb +215 -0
  165. data/lib/pdf4me/models/rgb_set.rb +206 -0
  166. data/lib/pdf4me/models/rotate.rb +221 -0
  167. data/lib/pdf4me/models/run_job_res.rb +215 -0
  168. data/lib/pdf4me/models/signature_config.rb +179 -0
  169. data/lib/pdf4me/models/split.rb +207 -0
  170. data/lib/pdf4me/models/split_action.rb +219 -0
  171. data/lib/pdf4me/models/split_res.rb +190 -0
  172. data/lib/pdf4me/models/stamp.rb +209 -0
  173. data/lib/pdf4me/models/stamp_action.rb +387 -0
  174. data/lib/pdf4me/models/stamp_res.rb +189 -0
  175. data/lib/pdf4me/models/storage_folder.rb +239 -0
  176. data/lib/pdf4me/models/text.rb +320 -0
  177. data/lib/pdf4me/models/transform.rb +263 -0
  178. data/lib/pdf4me/models/translate.rb +207 -0
  179. data/lib/pdf4me/models/user_fingerprint.rb +197 -0
  180. data/lib/pdf4me/models/version_res.rb +188 -0
  181. data/lib/pdf4me/version.rb +15 -0
  182. data/pdf4me.gemspec +47 -0
  183. data/spec/api/convert_api_spec.rb +60 -0
  184. data/spec/api/document_api_spec.rb +83 -0
  185. data/spec/api/extract_api_spec.rb +60 -0
  186. data/spec/api/image_api_spec.rb +62 -0
  187. data/spec/api/job_api_spec.rb +82 -0
  188. data/spec/api/management_api_spec.rb +57 -0
  189. data/spec/api/merge_api_spec.rb +60 -0
  190. data/spec/api/ocr_api_spec.rb +47 -0
  191. data/spec/api/optimize_api_spec.rb +60 -0
  192. data/spec/api/pdf_a_api_spec.rb +60 -0
  193. data/spec/api/split_api_spec.rb +60 -0
  194. data/spec/api/stamp_api_spec.rb +63 -0
  195. data/spec/api_client_spec.rb +226 -0
  196. data/spec/configuration_spec.rb +42 -0
  197. data/spec/models/action_flow_spec.rb +42 -0
  198. data/spec/models/api_usage_res_spec.rb +60 -0
  199. data/spec/models/archive_config_spec.rb +60 -0
  200. data/spec/models/archive_job_req_spec.rb +66 -0
  201. data/spec/models/archive_job_res_spec.rb +48 -0
  202. data/spec/models/color_spec.rb +54 -0
  203. data/spec/models/convert_to_pdf_action_spec.rb +62 -0
  204. data/spec/models/convert_to_pdf_res_spec.rb +42 -0
  205. data/spec/models/convert_to_pdf_spec.rb +54 -0
  206. data/spec/models/create_images_res_spec.rb +42 -0
  207. data/spec/models/create_images_spec.rb +54 -0
  208. data/spec/models/create_pdf_a_res_spec.rb +42 -0
  209. data/spec/models/create_pdf_a_spec.rb +54 -0
  210. data/spec/models/custom_cms_config_spec.rb +132 -0
  211. data/spec/models/doc_action_spec.rb +42 -0
  212. data/spec/models/doc_log_spec.rb +70 -0
  213. data/spec/models/doc_metadata_spec.rb +90 -0
  214. data/spec/models/document_spec.rb +90 -0
  215. data/spec/models/drop_document_req_spec.rb +118 -0
  216. data/spec/models/drop_document_res_spec.rb +84 -0
  217. data/spec/models/execution_trigger_spec.rb +54 -0
  218. data/spec/models/extract_action_spec.rb +48 -0
  219. data/spec/models/extract_res_spec.rb +42 -0
  220. data/spec/models/extract_spec.rb +54 -0
  221. data/spec/models/get_document_list_res_spec.rb +72 -0
  222. data/spec/models/get_document_req_spec.rb +78 -0
  223. data/spec/models/get_document_res_spec.rb +78 -0
  224. data/spec/models/i_form_file_spec.rb +72 -0
  225. data/spec/models/image_action_spec.rb +206 -0
  226. data/spec/models/image_spec.rb +88 -0
  227. data/spec/models/job_config_res_spec.rb +42 -0
  228. data/spec/models/job_config_spec.rb +102 -0
  229. data/spec/models/job_spec.rb +54 -0
  230. data/spec/models/key_value_pair_string_object_spec.rb +48 -0
  231. data/spec/models/key_value_pair_string_string_spec.rb +48 -0
  232. data/spec/models/merge_action_spec.rb +42 -0
  233. data/spec/models/merge_res_spec.rb +42 -0
  234. data/spec/models/merge_spec.rb +54 -0
  235. data/spec/models/notification_spec.rb +48 -0
  236. data/spec/models/ocr_action_spec.rb +70 -0
  237. data/spec/models/optimize_action_spec.rb +228 -0
  238. data/spec/models/optimize_res_spec.rb +48 -0
  239. data/spec/models/optimize_spec.rb +54 -0
  240. data/spec/models/page_selection_spec.rb +58 -0
  241. data/spec/models/page_spec.rb +78 -0
  242. data/spec/models/pdf4me_action_spec.rb +70 -0
  243. data/spec/models/pdf4me_document_spec.rb +202 -0
  244. data/spec/models/pdf4me_exception_spec.rb +42 -0
  245. data/spec/models/pdf_a_action_spec.rb +86 -0
  246. data/spec/models/pdf_font_spec.rb +48 -0
  247. data/spec/models/pricing_spec.rb +80 -0
  248. data/spec/models/produce_documents_res_spec.rb +42 -0
  249. data/spec/models/produce_documents_spec.rb +78 -0
  250. data/spec/models/produce_output_spec.rb +46 -0
  251. data/spec/models/recognize_document_res_spec.rb +48 -0
  252. data/spec/models/recognize_document_spec.rb +54 -0
  253. data/spec/models/rectangle_spec.rb +60 -0
  254. data/spec/models/rgb_set_spec.rb +54 -0
  255. data/spec/models/rotate_spec.rb +54 -0
  256. data/spec/models/run_job_res_spec.rb +54 -0
  257. data/spec/models/signature_config_spec.rb +36 -0
  258. data/spec/models/split_action_spec.rb +60 -0
  259. data/spec/models/split_res_spec.rb +42 -0
  260. data/spec/models/split_spec.rb +54 -0
  261. data/spec/models/stamp_action_spec.rb +142 -0
  262. data/spec/models/stamp_res_spec.rb +42 -0
  263. data/spec/models/stamp_spec.rb +54 -0
  264. data/spec/models/storage_folder_spec.rb +58 -0
  265. data/spec/models/text_spec.rb +104 -0
  266. data/spec/models/transform_spec.rb +72 -0
  267. data/spec/models/translate_spec.rb +48 -0
  268. data/spec/models/user_fingerprint_spec.rb +48 -0
  269. data/spec/models/version_res_spec.rb +42 -0
  270. data/spec/spec_helper.rb +111 -0
  271. metadata +594 -0
@@ -0,0 +1,20 @@
1
+ # Pdf4me::DropDocumentReq
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **notification** | [**Notification**](Notification.md) | | [optional]
7
+ **job_id** | **String** | | [optional]
8
+ **document_id** | **String** | | [optional]
9
+ **user_id** | **String** | | [optional]
10
+ **url** | **String** | | [optional]
11
+ **document** | **String** | | [optional]
12
+ **file_name** | **String** | | [optional]
13
+ **cloud_storage_provider** | **String** | | [optional]
14
+ **cloud_storage_files** | **Array<String>** | | [optional]
15
+ **cloud_storage_files_desc** | **String** | | [optional]
16
+ **get_notified** | **BOOLEAN** | Run the action asynchronously, get notified for any status changes. | [optional]
17
+ **connection_id** | **String** | | [optional]
18
+ **user_fingerprint** | [**UserFingerprint**](UserFingerprint.md) | | [optional]
19
+
20
+
@@ -0,0 +1,15 @@
1
+ # Pdf4me::DropDocumentRes
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **document** | [**Document**](Document.md) | | [optional]
7
+ **job_id** | **String** | |
8
+ **document_list** | [**Array<Document>**](Document.md) | | [optional]
9
+ **doc_logs** | [**Array<DocLog>**](DocLog.md) | | [optional]
10
+ **pricing** | [**Pricing**](Pricing.md) | | [optional]
11
+ **success** | **BOOLEAN** | | [optional]
12
+ **error_msg** | **String** | | [optional]
13
+ **exception** | **Object** | | [optional]
14
+
15
+
@@ -0,0 +1,10 @@
1
+ # Pdf4me::ExecutionTrigger
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **start_time** | **DateTime** | | [optional]
7
+ **cron_trigger** | **String** | | [optional]
8
+ **continues** | **BOOLEAN** | | [optional]
9
+
10
+
data/docs/Extract.md ADDED
@@ -0,0 +1,10 @@
1
+ # Pdf4me::Extract
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **document** | [**Document**](Document.md) | | [optional]
7
+ **extract_action** | [**ExtractAction**](ExtractAction.md) | | [optional]
8
+ **notification** | [**Notification**](Notification.md) | Set Notification | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # Pdf4me::ExtractAction
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **extract_pages** | **Array<Integer>** | | [optional]
7
+ **custom_properties** | [**Array<KeyValuePairStringString>**](KeyValuePairStringString.md) | | [optional]
8
+
9
+
@@ -0,0 +1,102 @@
1
+ # Pdf4me::ExtractApi
2
+
3
+ All URIs are relative to *https://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**extract**](ExtractApi.md#extract) | **POST** /Extract/Extract |
8
+ [**extract_pages**](ExtractApi.md#extract_pages) | **POST** /Extract/ExtractPages |
9
+
10
+
11
+ # **extract**
12
+ > ExtractRes extract(opts)
13
+
14
+
15
+
16
+ ### Example
17
+ ```ruby
18
+ # load the gem
19
+ require 'pdf4me'
20
+
21
+ api_instance = Pdf4me::ExtractApi.new
22
+
23
+ opts = {
24
+ req: Pdf4me::Extract.new # Extract |
25
+ }
26
+
27
+ begin
28
+ result = api_instance.extract(opts)
29
+ p result
30
+ rescue Pdf4me::ApiError => e
31
+ puts "Exception when calling ExtractApi->extract: #{e}"
32
+ end
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ Name | Type | Description | Notes
38
+ ------------- | ------------- | ------------- | -------------
39
+ **req** | [**Extract**](Extract.md)| | [optional]
40
+
41
+ ### Return type
42
+
43
+ [**ExtractRes**](ExtractRes.md)
44
+
45
+ ### Authorization
46
+
47
+ No authorization required
48
+
49
+ ### HTTP request headers
50
+
51
+ - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json, application/bson
52
+ - **Accept**: text/plain, application/json, text/json, application/bson
53
+
54
+
55
+
56
+ # **extract_pages**
57
+ > File extract_pages(opts)
58
+
59
+
60
+
61
+ ### Example
62
+ ```ruby
63
+ # load the gem
64
+ require 'pdf4me'
65
+
66
+ api_instance = Pdf4me::ExtractApi.new
67
+
68
+ opts = {
69
+ page_nrs: "page_nrs_example", # String |
70
+ file: "file_example" # String |
71
+ }
72
+
73
+ begin
74
+ result = api_instance.extract_pages(opts)
75
+ p result
76
+ rescue Pdf4me::ApiError => e
77
+ puts "Exception when calling ExtractApi->extract_pages: #{e}"
78
+ end
79
+ ```
80
+
81
+ ### Parameters
82
+
83
+ Name | Type | Description | Notes
84
+ ------------- | ------------- | ------------- | -------------
85
+ **page_nrs** | **String**| | [optional]
86
+ **file** | **String**| | [optional]
87
+
88
+ ### Return type
89
+
90
+ **File**
91
+
92
+ ### Authorization
93
+
94
+ No authorization required
95
+
96
+ ### HTTP request headers
97
+
98
+ - **Content-Type**: Not defined
99
+ - **Accept**: application/octet-stream
100
+
101
+
102
+
@@ -0,0 +1,8 @@
1
+ # Pdf4me::ExtractRes
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **document** | [**Document**](Document.md) | | [optional]
7
+
8
+
@@ -0,0 +1,13 @@
1
+ # Pdf4me::GetDocumentListRes
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **document_list** | [**Array<Document>**](Document.md) | | [optional]
7
+ **doc_logs** | [**Array<DocLog>**](DocLog.md) | | [optional]
8
+ **pricing** | [**Pricing**](Pricing.md) | | [optional]
9
+ **success** | **BOOLEAN** | | [optional]
10
+ **error_msg** | **String** | | [optional]
11
+ **exception** | **Object** | | [optional]
12
+
13
+
@@ -0,0 +1,14 @@
1
+ # Pdf4me::GetDocumentReq
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **job_id** | **String** | | [optional]
7
+ **document_id** | **String** | | [optional]
8
+ **thumbnails_only** | **BOOLEAN** | | [optional]
9
+ **document_type** | **String** | | [optional]
10
+ **get_notified** | **BOOLEAN** | Run the action asynchronously, get notified for any status changes. | [optional]
11
+ **connection_id** | **String** | | [optional]
12
+ **user_fingerprint** | [**UserFingerprint**](UserFingerprint.md) | | [optional]
13
+
14
+
@@ -0,0 +1,14 @@
1
+ # Pdf4me::GetDocumentRes
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **document** | [**Pdf4meDocument**](Pdf4meDocument.md) | | [optional]
7
+ **doc_logs** | [**Array<DocLog>**](DocLog.md) | | [optional]
8
+ **pricing** | [**Pricing**](Pricing.md) | | [optional]
9
+ **document_list** | [**Array<Document>**](Document.md) | | [optional]
10
+ **success** | **BOOLEAN** | | [optional]
11
+ **error_msg** | **String** | | [optional]
12
+ **exception** | **Object** | | [optional]
13
+
14
+
data/docs/IFormFile.md ADDED
@@ -0,0 +1,13 @@
1
+ # Pdf4me::IFormFile
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **content_type** | **String** | | [optional]
7
+ **content_disposition** | **String** | | [optional]
8
+ **headers** | **Hash<String, Array<String>>** | | [optional]
9
+ **length** | **Integer** | | [optional]
10
+ **name** | **String** | | [optional]
11
+ **file_name** | **String** | | [optional]
12
+
13
+
data/docs/Image.md ADDED
@@ -0,0 +1,15 @@
1
+ # Pdf4me::Image
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **rectangle** | [**Rectangle**](Rectangle.md) | | [optional]
7
+ **image_data** | **String** | | [optional]
8
+ **image_type** | **String** | | [optional]
9
+ **file_name** | **String** | | [optional]
10
+ **compression** | **String** | | [optional]
11
+ **rotate** | [**Rotate**](Rotate.md) | | [optional]
12
+ **translate** | [**Translate**](Translate.md) | | [optional]
13
+ **transform** | [**Transform**](Transform.md) | | [optional]
14
+
15
+
@@ -0,0 +1,30 @@
1
+ # Pdf4me::ImageAction
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **page_selection** | [**PageSelection**](PageSelection.md) | Set the Pages wo apply the convertion. {default: PageSelection.All} | [optional]
7
+ **center** | **BOOLEAN** | Set or get the center mode. When set to True, the document is horizontally and vertically centered on the page. When set to False, the document is printed to the upper left corner of the page. {default: false} | [optional]
8
+ **fit_page** | **BOOLEAN** | set the fit page mode. If set to True, the page is scaled to fit the image (in either width or height). If set to False, the page is rendered with its true size. {default: true} | [optional]
9
+ **bits_per_pixel** | **Integer** | Get or set the color depth. Bi-tonal: 1, gray scale: 8, RGB true color: 24, CMYK: 32. {default: 24} | [optional]
10
+ **bilevel_threshold** | **Integer** | Set the threshold for converting from gray to bi-tonal when Dithering is eDitherNone. Value must be in the range of 0 to 255. {default: 181} | [optional]
11
+ **width_pixel** | **Integer** | | [optional]
12
+ **height_pixel** | **Integer** | | [optional]
13
+ **width_point** | **Integer** | | [optional]
14
+ **height_point** | **Integer** | | [optional]
15
+ **render_options** | **Array<String>** | Set a specific rendering option. | [optional]
16
+ **rotate_mode** | **String** | Set the rotation mode of the page. Attribute: Set the rotation to the viewing rotation attribute of the PDF page, i.e. rendering the page with the same rotation as it is displayed in a PDF viewer. {default: Attribute} | [optional]
17
+ **preserve_aspect_ratio** | **BOOLEAN** | If True a uniform up- or down-scaling is applied, i.e. the output image has the same ratio of width to height as the input file and its size will fit into the defined dimensions, given by SetBitmapDimensions. {default: true} | [optional]
18
+ **image_quality** | **Integer** | Set the quality index of lossy compression types. This value ranges from 1 to 100 and is applied to JPEG and JPEG2000 compression.For JPEG2000, a quality index of 100 means lossless compression.JPEG compression is always lossy. {default: 80} | [optional]
19
+ **cms_engine** | **String** | Set the Color Management System (CMS) Engine. {default: 80} | [optional]
20
+ **custom_cms_config** | [**CustomCMSConfig**](CustomCMSConfig.md) | Set the Color Management System (CMS) Engine. {default: 80} | [optional]
21
+ **dithering** | **String** | Set the dithering algorithm.Dithering refers to the procedure of simulating colors or grayscales.This is mainly useful for low color depth (e.g.black and white or indexed) images. The supported values for TPDFDithering are listed in the corresponding enumeration. {default: DitherFloydSteinberg} | [optional]
22
+ **dpi** | **Integer** | <p> Get or set the resolution of the image in DPI (dots per inch). Set Both the resolutions for the x- and y-axis are set to the same value. </p> <p> Setting DPI is redundant to setting the specialized properties XDPI and YDPI. </p> {default: 150} | [optional]
23
+ **fill_order** | **String** | Set the bit fill order. MSB (Most significant bit) or LSB (Least significant bit) first. {default: MostSignificantBit} | [optional]
24
+ **filter_ratio** | **Integer** | <p> This property is used to enable and parameterize super-sampling, a technique to initially render the image at a higher resolution and then sample it down to the target resolution.As a result of that process the final image appears smoother, i.e.anti-aliased. </p> <p> Applying super-sampling improves the image quality when rendering at low target resolutions(72 DPI or less); the higher the target resolution the less the visual impact. This property requires memory and CPU time quadratically to the ratio, therefore only small values, such as 2 or 3 should be used. </p> <p> If a too high value (in combination with the original image size) is set, it is ignored. </p> {default: 1} | [optional]
25
+ **image_extension** | **String** | Set output Type for image file. | [optional]
26
+ **color_space** | **String** | Set color space of the output image, see enumeration TPDFColorSpace. For black white bi-tonal images, a gray color space must be selected {default: ColorRGB} | [optional]
27
+ **compression** | **String** | Get or set the compression type of TIFF images. For any other image format, the compression is automatically defined by the file extension(the file name). The supported values for TPDFCompression are listed in the corresponding enumeration. {default: ComprLZW} | [optional]
28
+ **custom_properties** | [**Array<KeyValuePairStringString>**](KeyValuePairStringString.md) | | [optional]
29
+
30
+
data/docs/ImageApi.md ADDED
@@ -0,0 +1,107 @@
1
+ # Pdf4me::ImageApi
2
+
3
+ All URIs are relative to *https://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_images**](ImageApi.md#create_images) | **POST** /Image/CreateImages |
8
+ [**create_thumbnail**](ImageApi.md#create_thumbnail) | **POST** /Image/CreateThumbnail |
9
+
10
+
11
+ # **create_images**
12
+ > CreateImagesRes create_images(opts)
13
+
14
+
15
+
16
+ ### Example
17
+ ```ruby
18
+ # load the gem
19
+ require 'pdf4me'
20
+
21
+ api_instance = Pdf4me::ImageApi.new
22
+
23
+ opts = {
24
+ req: Pdf4me::CreateImages.new # CreateImages |
25
+ }
26
+
27
+ begin
28
+ result = api_instance.create_images(opts)
29
+ p result
30
+ rescue Pdf4me::ApiError => e
31
+ puts "Exception when calling ImageApi->create_images: #{e}"
32
+ end
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ Name | Type | Description | Notes
38
+ ------------- | ------------- | ------------- | -------------
39
+ **req** | [**CreateImages**](CreateImages.md)| | [optional]
40
+
41
+ ### Return type
42
+
43
+ [**CreateImagesRes**](CreateImagesRes.md)
44
+
45
+ ### Authorization
46
+
47
+ No authorization required
48
+
49
+ ### HTTP request headers
50
+
51
+ - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json, application/bson
52
+ - **Accept**: text/plain, application/json, text/json, application/bson
53
+
54
+
55
+
56
+ # **create_thumbnail**
57
+ > File create_thumbnail(width, opts)
58
+
59
+
60
+
61
+ ### Example
62
+ ```ruby
63
+ # load the gem
64
+ require 'pdf4me'
65
+
66
+ api_instance = Pdf4me::ImageApi.new
67
+
68
+ width = 56 # Integer |
69
+
70
+ opts = {
71
+ page_nr: "page_nr_example", # String |
72
+ image_format: "image_format_example", # String |
73
+ file: "file_example" # String |
74
+ }
75
+
76
+ begin
77
+ result = api_instance.create_thumbnail(width, opts)
78
+ p result
79
+ rescue Pdf4me::ApiError => e
80
+ puts "Exception when calling ImageApi->create_thumbnail: #{e}"
81
+ end
82
+ ```
83
+
84
+ ### Parameters
85
+
86
+ Name | Type | Description | Notes
87
+ ------------- | ------------- | ------------- | -------------
88
+ **width** | **Integer**| |
89
+ **page_nr** | **String**| | [optional]
90
+ **image_format** | **String**| | [optional]
91
+ **file** | **String**| | [optional]
92
+
93
+ ### Return type
94
+
95
+ **File**
96
+
97
+ ### Authorization
98
+
99
+ No authorization required
100
+
101
+ ### HTTP request headers
102
+
103
+ - **Content-Type**: Not defined
104
+ - **Accept**: application/octet-stream
105
+
106
+
107
+
data/docs/Job.md ADDED
@@ -0,0 +1,10 @@
1
+ # Pdf4me::Job
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **job_id** | **String** | | [optional]
7
+ **job_config_id** | **String** | |
8
+ **documents** | [**Array<Document>**](Document.md) | | [optional]
9
+
10
+
data/docs/JobApi.md ADDED
@@ -0,0 +1,197 @@
1
+ # Pdf4me::JobApi
2
+
3
+ All URIs are relative to *https://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_archive_job_config**](JobApi.md#create_archive_job_config) | **POST** /Job/CreateArchiveJobConfig | CreateArchiveJobConfig
8
+ [**job_configs**](JobApi.md#job_configs) | **GET** /Job/JobConfigs | JobConfigs
9
+ [**run_job**](JobApi.md#run_job) | **POST** /Job/RunJob | RunJob
10
+ [**save_job_config**](JobApi.md#save_job_config) | **POST** /Job/SaveJobConfig | SaveJobConfig
11
+
12
+
13
+ # **create_archive_job_config**
14
+ > ArchiveJobReq create_archive_job_config(opts)
15
+
16
+ CreateArchiveJobConfig
17
+
18
+ Create Archive Job which continuesly converts your PDF to Pdf-A.
19
+
20
+ ### Example
21
+ ```ruby
22
+ # load the gem
23
+ require 'pdf4me'
24
+
25
+ api_instance = Pdf4me::JobApi.new
26
+
27
+ opts = {
28
+ req: Pdf4me::ArchiveJobReq.new # ArchiveJobReq |
29
+ }
30
+
31
+ begin
32
+ #CreateArchiveJobConfig
33
+ result = api_instance.create_archive_job_config(opts)
34
+ p result
35
+ rescue Pdf4me::ApiError => e
36
+ puts "Exception when calling JobApi->create_archive_job_config: #{e}"
37
+ end
38
+ ```
39
+
40
+ ### Parameters
41
+
42
+ Name | Type | Description | Notes
43
+ ------------- | ------------- | ------------- | -------------
44
+ **req** | [**ArchiveJobReq**](ArchiveJobReq.md)| | [optional]
45
+
46
+ ### Return type
47
+
48
+ [**ArchiveJobReq**](ArchiveJobReq.md)
49
+
50
+ ### Authorization
51
+
52
+ No authorization required
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json, application/bson
57
+ - **Accept**: text/plain, application/json, text/json, application/bson
58
+
59
+
60
+
61
+ # **job_configs**
62
+ > Array<JobConfig> job_configs
63
+
64
+ JobConfigs
65
+
66
+ Give a list of user defined Job Configurations.
67
+
68
+ ### Example
69
+ ```ruby
70
+ # load the gem
71
+ require 'pdf4me'
72
+
73
+ api_instance = Pdf4me::JobApi.new
74
+
75
+ begin
76
+ #JobConfigs
77
+ result = api_instance.job_configs
78
+ p result
79
+ rescue Pdf4me::ApiError => e
80
+ puts "Exception when calling JobApi->job_configs: #{e}"
81
+ end
82
+ ```
83
+
84
+ ### Parameters
85
+ This endpoint does not need any parameter.
86
+
87
+ ### Return type
88
+
89
+ [**Array<JobConfig>**](JobConfig.md)
90
+
91
+ ### Authorization
92
+
93
+ No authorization required
94
+
95
+ ### HTTP request headers
96
+
97
+ - **Content-Type**: Not defined
98
+ - **Accept**: text/plain, application/json, text/json, application/bson
99
+
100
+
101
+
102
+ # **run_job**
103
+ > RunJobRes run_job(opts)
104
+
105
+ RunJob
106
+
107
+ Run a JobConfig with given Document Data. Documents can be given directly in the Job or as a Documen Reference.
108
+
109
+ ### Example
110
+ ```ruby
111
+ # load the gem
112
+ require 'pdf4me'
113
+
114
+ api_instance = Pdf4me::JobApi.new
115
+
116
+ opts = {
117
+ req: Pdf4me::Job.new # Job |
118
+ }
119
+
120
+ begin
121
+ #RunJob
122
+ result = api_instance.run_job(opts)
123
+ p result
124
+ rescue Pdf4me::ApiError => e
125
+ puts "Exception when calling JobApi->run_job: #{e}"
126
+ end
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+ Name | Type | Description | Notes
132
+ ------------- | ------------- | ------------- | -------------
133
+ **req** | [**Job**](Job.md)| | [optional]
134
+
135
+ ### Return type
136
+
137
+ [**RunJobRes**](RunJobRes.md)
138
+
139
+ ### Authorization
140
+
141
+ No authorization required
142
+
143
+ ### HTTP request headers
144
+
145
+ - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json, application/bson
146
+ - **Accept**: text/plain, application/json, text/json, application/bson
147
+
148
+
149
+
150
+ # **save_job_config**
151
+ > JobConfigRes save_job_config(opts)
152
+
153
+ SaveJobConfig
154
+
155
+ Create a Job Configuration for recurring executions or pipelining of pdf4me functionality. With pipelining it is possible to run pdf4me base functionality in a specific order as a single execution.
156
+
157
+ ### Example
158
+ ```ruby
159
+ # load the gem
160
+ require 'pdf4me'
161
+
162
+ api_instance = Pdf4me::JobApi.new
163
+
164
+ opts = {
165
+ req: Pdf4me::JobConfig.new # JobConfig |
166
+ }
167
+
168
+ begin
169
+ #SaveJobConfig
170
+ result = api_instance.save_job_config(opts)
171
+ p result
172
+ rescue Pdf4me::ApiError => e
173
+ puts "Exception when calling JobApi->save_job_config: #{e}"
174
+ end
175
+ ```
176
+
177
+ ### Parameters
178
+
179
+ Name | Type | Description | Notes
180
+ ------------- | ------------- | ------------- | -------------
181
+ **req** | [**JobConfig**](JobConfig.md)| | [optional]
182
+
183
+ ### Return type
184
+
185
+ [**JobConfigRes**](JobConfigRes.md)
186
+
187
+ ### Authorization
188
+
189
+ No authorization required
190
+
191
+ ### HTTP request headers
192
+
193
+ - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json, application/bson
194
+ - **Accept**: text/plain, application/json, text/json, application/bson
195
+
196
+
197
+