pdf4me 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +472 -0
- data/Rakefile +8 -0
- data/docs/ActionFlow.md +8 -0
- data/docs/ApiUsageRes.md +11 -0
- data/docs/ArchiveConfig.md +11 -0
- data/docs/ArchiveJobReq.md +12 -0
- data/docs/ArchiveJobRes.md +9 -0
- data/docs/Color.md +10 -0
- data/docs/ConvertApi.md +102 -0
- data/docs/ConvertToPdf.md +10 -0
- data/docs/ConvertToPdfAction.md +10 -0
- data/docs/ConvertToPdfRes.md +8 -0
- data/docs/CreateImages.md +10 -0
- data/docs/CreateImagesRes.md +8 -0
- data/docs/CreatePdfA.md +10 -0
- data/docs/CreatePdfARes.md +8 -0
- data/docs/CustomCMSConfig.md +23 -0
- data/docs/DocAction.md +8 -0
- data/docs/DocLog.md +12 -0
- data/docs/DocMetadata.md +16 -0
- data/docs/Document.md +16 -0
- data/docs/DocumentApi.md +203 -0
- data/docs/DropDocumentReq.md +20 -0
- data/docs/DropDocumentRes.md +15 -0
- data/docs/ExecutionTrigger.md +10 -0
- data/docs/Extract.md +10 -0
- data/docs/ExtractAction.md +9 -0
- data/docs/ExtractApi.md +102 -0
- data/docs/ExtractRes.md +8 -0
- data/docs/GetDocumentListRes.md +13 -0
- data/docs/GetDocumentReq.md +14 -0
- data/docs/GetDocumentRes.md +14 -0
- data/docs/IFormFile.md +13 -0
- data/docs/Image.md +15 -0
- data/docs/ImageAction.md +30 -0
- data/docs/ImageApi.md +107 -0
- data/docs/Job.md +10 -0
- data/docs/JobApi.md +197 -0
- data/docs/JobConfig.md +18 -0
- data/docs/JobConfigRes.md +8 -0
- data/docs/KeyValuePairStringObject.md +9 -0
- data/docs/KeyValuePairStringString.md +9 -0
- data/docs/ManagementApi.md +92 -0
- data/docs/Merge.md +10 -0
- data/docs/MergeAction.md +8 -0
- data/docs/MergeApi.md +102 -0
- data/docs/MergeRes.md +8 -0
- data/docs/Notification.md +9 -0
- data/docs/OcrAction.md +12 -0
- data/docs/OcrApi.md +57 -0
- data/docs/Optimize.md +10 -0
- data/docs/OptimizeAction.md +35 -0
- data/docs/OptimizeApi.md +103 -0
- data/docs/OptimizeRes.md +9 -0
- data/docs/Page.md +14 -0
- data/docs/PageSelection.md +10 -0
- data/docs/Pdf4meAction.md +12 -0
- data/docs/Pdf4meDocument.md +32 -0
- data/docs/Pdf4meException.md +8 -0
- data/docs/PdfAAction.md +14 -0
- data/docs/PdfAApi.md +102 -0
- data/docs/PdfFont.md +9 -0
- data/docs/Pricing.md +13 -0
- data/docs/ProduceDocuments.md +14 -0
- data/docs/ProduceDocumentsRes.md +8 -0
- data/docs/ProduceOutput.md +8 -0
- data/docs/RGBSet.md +10 -0
- data/docs/RecognizeDocument.md +10 -0
- data/docs/RecognizeDocumentRes.md +9 -0
- data/docs/Rectangle.md +11 -0
- data/docs/Rotate.md +10 -0
- data/docs/RunJobRes.md +10 -0
- data/docs/SignatureConfig.md +7 -0
- data/docs/Split.md +10 -0
- data/docs/SplitAction.md +11 -0
- data/docs/SplitApi.md +103 -0
- data/docs/SplitRes.md +8 -0
- data/docs/Stamp.md +10 -0
- data/docs/StampAction.md +22 -0
- data/docs/StampApi.md +110 -0
- data/docs/StampRes.md +8 -0
- data/docs/StorageFolder.md +10 -0
- data/docs/Text.md +17 -0
- data/docs/Transform.md +13 -0
- data/docs/Translate.md +9 -0
- data/docs/UserFingerprint.md +9 -0
- data/docs/VersionRes.md +8 -0
- data/docs/java.md +425 -0
- data/git_push.sh +55 -0
- data/lib/pdf4me.rb +124 -0
- data/lib/pdf4me/api/convert_api.rb +130 -0
- data/lib/pdf4me/api/document_api.rb +218 -0
- data/lib/pdf4me/api/extract_api.rb +131 -0
- data/lib/pdf4me/api/image_api.rb +139 -0
- data/lib/pdf4me/api/job_api.rb +223 -0
- data/lib/pdf4me/api/management_api.rb +117 -0
- data/lib/pdf4me/api/merge_api.rb +131 -0
- data/lib/pdf4me/api/ocr_api.rb +74 -0
- data/lib/pdf4me/api/optimize_api.rb +139 -0
- data/lib/pdf4me/api/pdf_a_api.rb +134 -0
- data/lib/pdf4me/api/split_api.rb +135 -0
- data/lib/pdf4me/api/stamp_api.rb +159 -0
- data/lib/pdf4me/api_client.rb +380 -0
- data/lib/pdf4me/api_error.rb +38 -0
- data/lib/pdf4me/configuration.rb +109 -0
- data/lib/pdf4me/models/action_flow.rb +190 -0
- data/lib/pdf4me/models/api_usage_res.rb +219 -0
- data/lib/pdf4me/models/archive_config.rb +226 -0
- data/lib/pdf4me/models/archive_job_req.rb +249 -0
- data/lib/pdf4me/models/archive_job_res.rb +207 -0
- data/lib/pdf4me/models/color.rb +206 -0
- data/lib/pdf4me/models/convert_to_pdf.rb +209 -0
- data/lib/pdf4me/models/convert_to_pdf_action.rb +253 -0
- data/lib/pdf4me/models/convert_to_pdf_res.rb +189 -0
- data/lib/pdf4me/models/create_images.rb +209 -0
- data/lib/pdf4me/models/create_images_res.rb +189 -0
- data/lib/pdf4me/models/create_pdf_a.rb +209 -0
- data/lib/pdf4me/models/create_pdf_a_res.rb +189 -0
- data/lib/pdf4me/models/custom_cms_config.rb +323 -0
- data/lib/pdf4me/models/doc_action.rb +190 -0
- data/lib/pdf4me/models/doc_log.rb +257 -0
- data/lib/pdf4me/models/doc_metadata.rb +285 -0
- data/lib/pdf4me/models/document.rb +285 -0
- data/lib/pdf4me/models/drop_document_req.rb +348 -0
- data/lib/pdf4me/models/drop_document_res.rb +260 -0
- data/lib/pdf4me/models/execution_trigger.rb +206 -0
- data/lib/pdf4me/models/extract.rb +207 -0
- data/lib/pdf4me/models/extract_action.rb +201 -0
- data/lib/pdf4me/models/extract_res.rb +188 -0
- data/lib/pdf4me/models/get_document_list_res.rb +237 -0
- data/lib/pdf4me/models/get_document_req.rb +243 -0
- data/lib/pdf4me/models/get_document_res.rb +246 -0
- data/lib/pdf4me/models/i_form_file.rb +235 -0
- data/lib/pdf4me/models/image.rb +300 -0
- data/lib/pdf4me/models/image_action.rb +513 -0
- data/lib/pdf4me/models/job.rb +213 -0
- data/lib/pdf4me/models/job_config.rb +298 -0
- data/lib/pdf4me/models/job_config_res.rb +193 -0
- data/lib/pdf4me/models/key_value_pair_string_object.rb +197 -0
- data/lib/pdf4me/models/key_value_pair_string_string.rb +197 -0
- data/lib/pdf4me/models/merge.rb +209 -0
- data/lib/pdf4me/models/merge_action.rb +190 -0
- data/lib/pdf4me/models/merge_res.rb +188 -0
- data/lib/pdf4me/models/notification.rb +199 -0
- data/lib/pdf4me/models/ocr_action.rb +259 -0
- data/lib/pdf4me/models/optimize.rb +209 -0
- data/lib/pdf4me/models/optimize_action.rb +514 -0
- data/lib/pdf4me/models/optimize_res.rb +199 -0
- data/lib/pdf4me/models/page.rb +258 -0
- data/lib/pdf4me/models/page_selection.rb +246 -0
- data/lib/pdf4me/models/pdf4me_action.rb +259 -0
- data/lib/pdf4me/models/pdf4me_document.rb +511 -0
- data/lib/pdf4me/models/pdf4me_exception.rb +189 -0
- data/lib/pdf4me/models/pdf_a_action.rb +297 -0
- data/lib/pdf4me/models/pdf_font.rb +213 -0
- data/lib/pdf4me/models/pricing.rb +278 -0
- data/lib/pdf4me/models/produce_documents.rb +251 -0
- data/lib/pdf4me/models/produce_documents_res.rb +191 -0
- data/lib/pdf4me/models/produce_output.rb +221 -0
- data/lib/pdf4me/models/recognize_document.rb +209 -0
- data/lib/pdf4me/models/recognize_document_res.rb +198 -0
- data/lib/pdf4me/models/rectangle.rb +215 -0
- data/lib/pdf4me/models/rgb_set.rb +206 -0
- data/lib/pdf4me/models/rotate.rb +221 -0
- data/lib/pdf4me/models/run_job_res.rb +215 -0
- data/lib/pdf4me/models/signature_config.rb +179 -0
- data/lib/pdf4me/models/split.rb +207 -0
- data/lib/pdf4me/models/split_action.rb +219 -0
- data/lib/pdf4me/models/split_res.rb +190 -0
- data/lib/pdf4me/models/stamp.rb +209 -0
- data/lib/pdf4me/models/stamp_action.rb +387 -0
- data/lib/pdf4me/models/stamp_res.rb +189 -0
- data/lib/pdf4me/models/storage_folder.rb +239 -0
- data/lib/pdf4me/models/text.rb +320 -0
- data/lib/pdf4me/models/transform.rb +263 -0
- data/lib/pdf4me/models/translate.rb +207 -0
- data/lib/pdf4me/models/user_fingerprint.rb +197 -0
- data/lib/pdf4me/models/version_res.rb +188 -0
- data/lib/pdf4me/version.rb +15 -0
- data/pdf4me.gemspec +47 -0
- data/spec/api/convert_api_spec.rb +60 -0
- data/spec/api/document_api_spec.rb +83 -0
- data/spec/api/extract_api_spec.rb +60 -0
- data/spec/api/image_api_spec.rb +62 -0
- data/spec/api/job_api_spec.rb +82 -0
- data/spec/api/management_api_spec.rb +57 -0
- data/spec/api/merge_api_spec.rb +60 -0
- data/spec/api/ocr_api_spec.rb +47 -0
- data/spec/api/optimize_api_spec.rb +60 -0
- data/spec/api/pdf_a_api_spec.rb +60 -0
- data/spec/api/split_api_spec.rb +60 -0
- data/spec/api/stamp_api_spec.rb +63 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/action_flow_spec.rb +42 -0
- data/spec/models/api_usage_res_spec.rb +60 -0
- data/spec/models/archive_config_spec.rb +60 -0
- data/spec/models/archive_job_req_spec.rb +66 -0
- data/spec/models/archive_job_res_spec.rb +48 -0
- data/spec/models/color_spec.rb +54 -0
- data/spec/models/convert_to_pdf_action_spec.rb +62 -0
- data/spec/models/convert_to_pdf_res_spec.rb +42 -0
- data/spec/models/convert_to_pdf_spec.rb +54 -0
- data/spec/models/create_images_res_spec.rb +42 -0
- data/spec/models/create_images_spec.rb +54 -0
- data/spec/models/create_pdf_a_res_spec.rb +42 -0
- data/spec/models/create_pdf_a_spec.rb +54 -0
- data/spec/models/custom_cms_config_spec.rb +132 -0
- data/spec/models/doc_action_spec.rb +42 -0
- data/spec/models/doc_log_spec.rb +70 -0
- data/spec/models/doc_metadata_spec.rb +90 -0
- data/spec/models/document_spec.rb +90 -0
- data/spec/models/drop_document_req_spec.rb +118 -0
- data/spec/models/drop_document_res_spec.rb +84 -0
- data/spec/models/execution_trigger_spec.rb +54 -0
- data/spec/models/extract_action_spec.rb +48 -0
- data/spec/models/extract_res_spec.rb +42 -0
- data/spec/models/extract_spec.rb +54 -0
- data/spec/models/get_document_list_res_spec.rb +72 -0
- data/spec/models/get_document_req_spec.rb +78 -0
- data/spec/models/get_document_res_spec.rb +78 -0
- data/spec/models/i_form_file_spec.rb +72 -0
- data/spec/models/image_action_spec.rb +206 -0
- data/spec/models/image_spec.rb +88 -0
- data/spec/models/job_config_res_spec.rb +42 -0
- data/spec/models/job_config_spec.rb +102 -0
- data/spec/models/job_spec.rb +54 -0
- data/spec/models/key_value_pair_string_object_spec.rb +48 -0
- data/spec/models/key_value_pair_string_string_spec.rb +48 -0
- data/spec/models/merge_action_spec.rb +42 -0
- data/spec/models/merge_res_spec.rb +42 -0
- data/spec/models/merge_spec.rb +54 -0
- data/spec/models/notification_spec.rb +48 -0
- data/spec/models/ocr_action_spec.rb +70 -0
- data/spec/models/optimize_action_spec.rb +228 -0
- data/spec/models/optimize_res_spec.rb +48 -0
- data/spec/models/optimize_spec.rb +54 -0
- data/spec/models/page_selection_spec.rb +58 -0
- data/spec/models/page_spec.rb +78 -0
- data/spec/models/pdf4me_action_spec.rb +70 -0
- data/spec/models/pdf4me_document_spec.rb +202 -0
- data/spec/models/pdf4me_exception_spec.rb +42 -0
- data/spec/models/pdf_a_action_spec.rb +86 -0
- data/spec/models/pdf_font_spec.rb +48 -0
- data/spec/models/pricing_spec.rb +80 -0
- data/spec/models/produce_documents_res_spec.rb +42 -0
- data/spec/models/produce_documents_spec.rb +78 -0
- data/spec/models/produce_output_spec.rb +46 -0
- data/spec/models/recognize_document_res_spec.rb +48 -0
- data/spec/models/recognize_document_spec.rb +54 -0
- data/spec/models/rectangle_spec.rb +60 -0
- data/spec/models/rgb_set_spec.rb +54 -0
- data/spec/models/rotate_spec.rb +54 -0
- data/spec/models/run_job_res_spec.rb +54 -0
- data/spec/models/signature_config_spec.rb +36 -0
- data/spec/models/split_action_spec.rb +60 -0
- data/spec/models/split_res_spec.rb +42 -0
- data/spec/models/split_spec.rb +54 -0
- data/spec/models/stamp_action_spec.rb +142 -0
- data/spec/models/stamp_res_spec.rb +42 -0
- data/spec/models/stamp_spec.rb +54 -0
- data/spec/models/storage_folder_spec.rb +58 -0
- data/spec/models/text_spec.rb +104 -0
- data/spec/models/transform_spec.rb +72 -0
- data/spec/models/translate_spec.rb +48 -0
- data/spec/models/user_fingerprint_spec.rb +48 -0
- data/spec/models/version_res_spec.rb +42 -0
- data/spec/spec_helper.rb +111 -0
- metadata +594 -0
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id="GIT_USER_ID"
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id="GIT_REPO_ID"
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note="Minor update"
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
data/lib/pdf4me.rb
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
=begin
|
2
|
+
#DmsApi
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'pdf4me/api_client'
|
15
|
+
require 'pdf4me/api_error'
|
16
|
+
require 'pdf4me/version'
|
17
|
+
require 'pdf4me/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'pdf4me/models/action_flow'
|
21
|
+
require 'pdf4me/models/api_usage_res'
|
22
|
+
require 'pdf4me/models/archive_config'
|
23
|
+
require 'pdf4me/models/archive_job_req'
|
24
|
+
require 'pdf4me/models/archive_job_res'
|
25
|
+
require 'pdf4me/models/color'
|
26
|
+
require 'pdf4me/models/convert_to_pdf'
|
27
|
+
require 'pdf4me/models/convert_to_pdf_action'
|
28
|
+
require 'pdf4me/models/convert_to_pdf_res'
|
29
|
+
require 'pdf4me/models/create_images'
|
30
|
+
require 'pdf4me/models/create_images_res'
|
31
|
+
require 'pdf4me/models/create_pdf_a'
|
32
|
+
require 'pdf4me/models/create_pdf_a_res'
|
33
|
+
require 'pdf4me/models/custom_cms_config'
|
34
|
+
require 'pdf4me/models/doc_action'
|
35
|
+
require 'pdf4me/models/doc_log'
|
36
|
+
require 'pdf4me/models/doc_metadata'
|
37
|
+
require 'pdf4me/models/document'
|
38
|
+
require 'pdf4me/models/drop_document_req'
|
39
|
+
require 'pdf4me/models/drop_document_res'
|
40
|
+
require 'pdf4me/models/execution_trigger'
|
41
|
+
require 'pdf4me/models/extract'
|
42
|
+
require 'pdf4me/models/extract_action'
|
43
|
+
require 'pdf4me/models/extract_res'
|
44
|
+
require 'pdf4me/models/get_document_list_res'
|
45
|
+
require 'pdf4me/models/get_document_req'
|
46
|
+
require 'pdf4me/models/get_document_res'
|
47
|
+
require 'pdf4me/models/i_form_file'
|
48
|
+
require 'pdf4me/models/image'
|
49
|
+
require 'pdf4me/models/image_action'
|
50
|
+
require 'pdf4me/models/job'
|
51
|
+
require 'pdf4me/models/job_config'
|
52
|
+
require 'pdf4me/models/job_config_res'
|
53
|
+
require 'pdf4me/models/key_value_pair_string_object'
|
54
|
+
require 'pdf4me/models/key_value_pair_string_string'
|
55
|
+
require 'pdf4me/models/merge'
|
56
|
+
require 'pdf4me/models/merge_action'
|
57
|
+
require 'pdf4me/models/merge_res'
|
58
|
+
require 'pdf4me/models/notification'
|
59
|
+
require 'pdf4me/models/ocr_action'
|
60
|
+
require 'pdf4me/models/optimize'
|
61
|
+
require 'pdf4me/models/optimize_action'
|
62
|
+
require 'pdf4me/models/optimize_res'
|
63
|
+
require 'pdf4me/models/page'
|
64
|
+
require 'pdf4me/models/page_selection'
|
65
|
+
require 'pdf4me/models/pdf4me_action'
|
66
|
+
require 'pdf4me/models/pdf4me_document'
|
67
|
+
require 'pdf4me/models/pdf4me_exception'
|
68
|
+
require 'pdf4me/models/pdf_a_action'
|
69
|
+
require 'pdf4me/models/pdf_font'
|
70
|
+
require 'pdf4me/models/pricing'
|
71
|
+
require 'pdf4me/models/produce_documents'
|
72
|
+
require 'pdf4me/models/produce_documents_res'
|
73
|
+
require 'pdf4me/models/produce_output'
|
74
|
+
require 'pdf4me/models/rgb_set'
|
75
|
+
require 'pdf4me/models/recognize_document'
|
76
|
+
require 'pdf4me/models/recognize_document_res'
|
77
|
+
require 'pdf4me/models/rectangle'
|
78
|
+
require 'pdf4me/models/rotate'
|
79
|
+
require 'pdf4me/models/run_job_res'
|
80
|
+
require 'pdf4me/models/signature_config'
|
81
|
+
require 'pdf4me/models/split'
|
82
|
+
require 'pdf4me/models/split_action'
|
83
|
+
require 'pdf4me/models/split_res'
|
84
|
+
require 'pdf4me/models/stamp'
|
85
|
+
require 'pdf4me/models/stamp_action'
|
86
|
+
require 'pdf4me/models/stamp_res'
|
87
|
+
require 'pdf4me/models/storage_folder'
|
88
|
+
require 'pdf4me/models/text'
|
89
|
+
require 'pdf4me/models/transform'
|
90
|
+
require 'pdf4me/models/translate'
|
91
|
+
require 'pdf4me/models/user_fingerprint'
|
92
|
+
require 'pdf4me/models/version_res'
|
93
|
+
|
94
|
+
# APIs
|
95
|
+
require 'pdf4me/api/convert_api'
|
96
|
+
require 'pdf4me/api/document_api'
|
97
|
+
require 'pdf4me/api/extract_api'
|
98
|
+
require 'pdf4me/api/image_api'
|
99
|
+
require 'pdf4me/api/job_api'
|
100
|
+
require 'pdf4me/api/management_api'
|
101
|
+
require 'pdf4me/api/merge_api'
|
102
|
+
require 'pdf4me/api/ocr_api'
|
103
|
+
require 'pdf4me/api/optimize_api'
|
104
|
+
require 'pdf4me/api/pdf_a_api'
|
105
|
+
require 'pdf4me/api/split_api'
|
106
|
+
require 'pdf4me/api/stamp_api'
|
107
|
+
|
108
|
+
module Pdf4me
|
109
|
+
class << self
|
110
|
+
# Customize default settings for the SDK using block.
|
111
|
+
# Pdf4me.configure do |config|
|
112
|
+
# config.username = "xxx"
|
113
|
+
# config.password = "xxx"
|
114
|
+
# end
|
115
|
+
# If no block given, return the default Configuration object.
|
116
|
+
def configure
|
117
|
+
if block_given?
|
118
|
+
yield(Configuration.default)
|
119
|
+
else
|
120
|
+
Configuration.default
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
@@ -0,0 +1,130 @@
|
|
1
|
+
=begin
|
2
|
+
#DmsApi
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require "uri"
|
14
|
+
|
15
|
+
module Pdf4me
|
16
|
+
class ConvertApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
#
|
24
|
+
#
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :file_name
|
27
|
+
# @option opts [String] :file
|
28
|
+
# @return [File]
|
29
|
+
def convert_file_to_pdf(opts = {})
|
30
|
+
data, _status_code, _headers = convert_file_to_pdf_with_http_info(opts)
|
31
|
+
return data
|
32
|
+
end
|
33
|
+
|
34
|
+
#
|
35
|
+
#
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [String] :file_name
|
38
|
+
# @option opts [String] :file
|
39
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
40
|
+
def convert_file_to_pdf_with_http_info(opts = {})
|
41
|
+
if @api_client.config.debugging
|
42
|
+
@api_client.config.logger.debug "Calling API: ConvertApi.convert_file_to_pdf ..."
|
43
|
+
end
|
44
|
+
# resource path
|
45
|
+
local_var_path = "/Convert/ConvertFileToPdf"
|
46
|
+
|
47
|
+
# query parameters
|
48
|
+
query_params = {}
|
49
|
+
|
50
|
+
# header parameters
|
51
|
+
header_params = {}
|
52
|
+
# HTTP header 'Accept' (if needed)
|
53
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
54
|
+
header_params['Content-Type'] ='multipart/form-data'
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = {
|
58
|
+
fileName: opts[:file_name],
|
59
|
+
file: opts[:file]
|
60
|
+
}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = nil
|
64
|
+
auth_names = []
|
65
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names,
|
71
|
+
:return_type => 'File')
|
72
|
+
|
73
|
+
if @api_client.config.debugging
|
74
|
+
@api_client.config.logger.debug "API called: ConvertApi#convert_file_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
75
|
+
end
|
76
|
+
return data, status_code, headers
|
77
|
+
end
|
78
|
+
|
79
|
+
#
|
80
|
+
#
|
81
|
+
# @param [Hash] opts the optional parameters
|
82
|
+
# @option opts [ConvertToPdf] :req
|
83
|
+
# @return [ConvertToPdfRes]
|
84
|
+
def convert_to_pdf(opts = {})
|
85
|
+
data, _status_code, _headers = convert_to_pdf_with_http_info(opts)
|
86
|
+
return data
|
87
|
+
end
|
88
|
+
|
89
|
+
#
|
90
|
+
#
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @option opts [ConvertToPdf] :req
|
93
|
+
# @return [Array<(ConvertToPdfRes, Fixnum, Hash)>] ConvertToPdfRes data, response status code and response headers
|
94
|
+
def convert_to_pdf_with_http_info(opts = {})
|
95
|
+
if @api_client.config.debugging
|
96
|
+
@api_client.config.logger.debug "Calling API: ConvertApi.convert_to_pdf ..."
|
97
|
+
end
|
98
|
+
# resource path
|
99
|
+
local_var_path = "/Convert/ConvertToPdf"
|
100
|
+
|
101
|
+
# query parameters
|
102
|
+
query_params = {}
|
103
|
+
|
104
|
+
# header parameters
|
105
|
+
header_params = {}
|
106
|
+
# HTTP header 'Accept' (if needed)
|
107
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/bson'])
|
108
|
+
# HTTP header 'Content-Type'
|
109
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json', 'application/bson'])
|
110
|
+
|
111
|
+
# form parameters
|
112
|
+
form_params = {}
|
113
|
+
|
114
|
+
# http body (model)
|
115
|
+
post_body = @api_client.object_to_http_body(opts[:'req'])
|
116
|
+
auth_names = []
|
117
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
118
|
+
:header_params => header_params,
|
119
|
+
:query_params => query_params,
|
120
|
+
:form_params => form_params,
|
121
|
+
:body => post_body,
|
122
|
+
:auth_names => auth_names,
|
123
|
+
:return_type => 'ConvertToPdfRes')
|
124
|
+
if @api_client.config.debugging
|
125
|
+
@api_client.config.logger.debug "API called: ConvertApi#convert_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
126
|
+
end
|
127
|
+
return data, status_code, headers
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
@@ -0,0 +1,218 @@
|
|
1
|
+
require "uri"
|
2
|
+
|
3
|
+
module Pdf4me
|
4
|
+
class DocumentApi
|
5
|
+
attr_accessor :api_client
|
6
|
+
|
7
|
+
def initialize(api_client = ApiClient.default)
|
8
|
+
@api_client = api_client
|
9
|
+
end
|
10
|
+
|
11
|
+
# DropDocument
|
12
|
+
# Drop a document from local FIlesystem or give a cloud storage from where the files will be downloaded.
|
13
|
+
# @param [Hash] opts the optional parameters
|
14
|
+
# @option opts [DropDocumentReq] :req
|
15
|
+
# @return [DropDocumentRes]
|
16
|
+
def drop_document(opts = {})
|
17
|
+
data, _status_code, _headers = drop_document_with_http_info(opts)
|
18
|
+
return data
|
19
|
+
end
|
20
|
+
|
21
|
+
# DropDocument
|
22
|
+
# Drop a document from local FIlesystem or give a cloud storage from where the files will be downloaded.
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [DropDocumentReq] :req
|
25
|
+
# @return [Array<(DropDocumentRes, Fixnum, Hash)>] DropDocumentRes data, response status code and response headers
|
26
|
+
def drop_document_with_http_info(opts = {})
|
27
|
+
if @api_client.config.debugging
|
28
|
+
@api_client.config.logger.debug "Calling API: DocumentApi.drop_document ..."
|
29
|
+
end
|
30
|
+
# resource path
|
31
|
+
local_var_path = "/Document/DropDocument"
|
32
|
+
|
33
|
+
# query parameters
|
34
|
+
query_params = {}
|
35
|
+
|
36
|
+
# header parameters
|
37
|
+
header_params = {}
|
38
|
+
# HTTP header 'Accept' (if needed)
|
39
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/bson'])
|
40
|
+
# HTTP header 'Content-Type'
|
41
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json', 'application/bson'])
|
42
|
+
|
43
|
+
# form parameters
|
44
|
+
form_params = {}
|
45
|
+
|
46
|
+
# http body (model)
|
47
|
+
post_body = @api_client.object_to_http_body(opts[:'req'])
|
48
|
+
auth_names = []
|
49
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
50
|
+
:header_params => header_params,
|
51
|
+
:query_params => query_params,
|
52
|
+
:form_params => form_params,
|
53
|
+
:body => post_body,
|
54
|
+
:auth_names => auth_names,
|
55
|
+
:return_type => 'DropDocumentRes')
|
56
|
+
if @api_client.config.debugging
|
57
|
+
@api_client.config.logger.debug "API called: DocumentApi#drop_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
58
|
+
end
|
59
|
+
return data, status_code, headers
|
60
|
+
end
|
61
|
+
|
62
|
+
# ProduceDocuments
|
63
|
+
# Produce the requested new Order Documents.
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @option opts [ProduceDocuments] :req
|
66
|
+
# @return [ProduceDocumentsRes]
|
67
|
+
def drop_document_0(opts = {})
|
68
|
+
data, _status_code, _headers = drop_document_0_with_http_info(opts)
|
69
|
+
return data
|
70
|
+
end
|
71
|
+
|
72
|
+
# ProduceDocuments
|
73
|
+
# Produce the requested new Order Documents.
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @option opts [ProduceDocuments] :req
|
76
|
+
# @return [Array<(ProduceDocumentsRes, Fixnum, Hash)>] ProduceDocumentsRes data, response status code and response headers
|
77
|
+
def drop_document_0_with_http_info(opts = {})
|
78
|
+
if @api_client.config.debugging
|
79
|
+
@api_client.config.logger.debug "Calling API: DocumentApi.drop_document_0 ..."
|
80
|
+
end
|
81
|
+
# resource path
|
82
|
+
local_var_path = "/Document/ProduceDocuments"
|
83
|
+
|
84
|
+
# query parameters
|
85
|
+
query_params = {}
|
86
|
+
|
87
|
+
# header parameters
|
88
|
+
header_params = {}
|
89
|
+
# HTTP header 'Accept' (if needed)
|
90
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/bson'])
|
91
|
+
# HTTP header 'Content-Type'
|
92
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json', 'application/bson'])
|
93
|
+
|
94
|
+
# form parameters
|
95
|
+
form_params = {}
|
96
|
+
|
97
|
+
# http body (model)
|
98
|
+
post_body = @api_client.object_to_http_body(opts[:'req'])
|
99
|
+
auth_names = []
|
100
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
101
|
+
:header_params => header_params,
|
102
|
+
:query_params => query_params,
|
103
|
+
:form_params => form_params,
|
104
|
+
:body => post_body,
|
105
|
+
:auth_names => auth_names,
|
106
|
+
:return_type => 'ProduceDocumentsRes')
|
107
|
+
if @api_client.config.debugging
|
108
|
+
@api_client.config.logger.debug "API called: DocumentApi#drop_document_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
109
|
+
end
|
110
|
+
return data, status_code, headers
|
111
|
+
end
|
112
|
+
|
113
|
+
# GetDocument
|
114
|
+
# Get the content of a document in its full datastructure and content.
|
115
|
+
# @param [Hash] opts the optional parameters
|
116
|
+
# @option opts [GetDocumentReq] :req
|
117
|
+
# @return [GetDocumentRes]
|
118
|
+
def get_document(opts = {})
|
119
|
+
data, _status_code, _headers = get_document_with_http_info(opts)
|
120
|
+
return data
|
121
|
+
end
|
122
|
+
|
123
|
+
# GetDocument
|
124
|
+
# Get the content of a document in its full datastructure and content.
|
125
|
+
# @param [Hash] opts the optional parameters
|
126
|
+
# @option opts [GetDocumentReq] :req
|
127
|
+
# @return [Array<(GetDocumentRes, Fixnum, Hash)>] GetDocumentRes data, response status code and response headers
|
128
|
+
def get_document_with_http_info(opts = {})
|
129
|
+
if @api_client.config.debugging
|
130
|
+
@api_client.config.logger.debug "Calling API: DocumentApi.get_document ..."
|
131
|
+
end
|
132
|
+
# resource path
|
133
|
+
local_var_path = "/Document/GetDocument"
|
134
|
+
|
135
|
+
# query parameters
|
136
|
+
query_params = {}
|
137
|
+
|
138
|
+
# header parameters
|
139
|
+
header_params = {}
|
140
|
+
# HTTP header 'Accept' (if needed)
|
141
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/bson'])
|
142
|
+
# HTTP header 'Content-Type'
|
143
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json', 'application/bson'])
|
144
|
+
|
145
|
+
# form parameters
|
146
|
+
form_params = {}
|
147
|
+
|
148
|
+
# http body (model)
|
149
|
+
post_body = @api_client.object_to_http_body(opts[:'req'])
|
150
|
+
auth_names = []
|
151
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
152
|
+
:header_params => header_params,
|
153
|
+
:query_params => query_params,
|
154
|
+
:form_params => form_params,
|
155
|
+
:body => post_body,
|
156
|
+
:auth_names => auth_names,
|
157
|
+
:return_type => 'GetDocumentRes')
|
158
|
+
if @api_client.config.debugging
|
159
|
+
@api_client.config.logger.debug "API called: DocumentApi#get_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
160
|
+
end
|
161
|
+
return data, status_code, headers
|
162
|
+
end
|
163
|
+
|
164
|
+
# GetDocuments
|
165
|
+
# Get the workingset of documents by the JobId.
|
166
|
+
# @param job_id
|
167
|
+
# @param [Hash] opts the optional parameters
|
168
|
+
# @return [GetDocumentRes]
|
169
|
+
def get_documents(job_id, opts = {})
|
170
|
+
data, _status_code, _headers = get_documents_with_http_info(job_id, opts)
|
171
|
+
return data
|
172
|
+
end
|
173
|
+
|
174
|
+
# GetDocuments
|
175
|
+
# Get the workingset of documents by the JobId.
|
176
|
+
# @param job_id
|
177
|
+
# @param [Hash] opts the optional parameters
|
178
|
+
# @return [Array<(GetDocumentRes, Fixnum, Hash)>] GetDocumentRes data, response status code and response headers
|
179
|
+
def get_documents_with_http_info(job_id, opts = {})
|
180
|
+
if @api_client.config.debugging
|
181
|
+
@api_client.config.logger.debug "Calling API: DocumentApi.get_documents ..."
|
182
|
+
end
|
183
|
+
# verify the required parameter 'job_id' is set
|
184
|
+
if @api_client.config.client_side_validation && job_id.nil?
|
185
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling DocumentApi.get_documents"
|
186
|
+
end
|
187
|
+
# resource path
|
188
|
+
local_var_path = "/Document/GetDocuments"
|
189
|
+
|
190
|
+
# query parameters
|
191
|
+
query_params = {}
|
192
|
+
query_params[:'jobId'] = job_id
|
193
|
+
|
194
|
+
# header parameters
|
195
|
+
header_params = {}
|
196
|
+
# HTTP header 'Accept' (if needed)
|
197
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/bson'])
|
198
|
+
|
199
|
+
# form parameters
|
200
|
+
form_params = {}
|
201
|
+
|
202
|
+
# http body (model)
|
203
|
+
post_body = nil
|
204
|
+
auth_names = []
|
205
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
206
|
+
:header_params => header_params,
|
207
|
+
:query_params => query_params,
|
208
|
+
:form_params => form_params,
|
209
|
+
:body => post_body,
|
210
|
+
:auth_names => auth_names,
|
211
|
+
:return_type => 'GetDocumentRes')
|
212
|
+
if @api_client.config.debugging
|
213
|
+
@api_client.config.logger.debug "API called: DocumentApi#get_documents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
214
|
+
end
|
215
|
+
return data, status_code, headers
|
216
|
+
end
|
217
|
+
end
|
218
|
+
end
|