pdf_generator_api_client 8.0.28 → 8.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +19 -8
- data/docs/ConversionApi.md +1 -1
- data/docs/ConvertURL2PDFRequest.md +11 -1
- data/docs/DocumentSignature.md +42 -0
- data/docs/DocumentSignatures.md +28 -0
- data/docs/DocumentsApi.md +85 -11
- data/docs/FormActionSendSendDocument.md +1 -1
- data/docs/FormActionSign.md +18 -0
- data/docs/FormConfigurationImport.md +24 -0
- data/docs/FormConfigurationNew.md +3 -3
- data/docs/FormConfigurationNewActionsInner.md +3 -1
- data/docs/FormField.md +30 -0
- data/docs/FormFieldOptions.md +18 -0
- data/docs/FormFieldSubRowsInner.md +30 -0
- data/docs/FormTableColumn.md +28 -0
- data/docs/FormsApi.md +100 -32
- data/docs/ImportFormBase64.md +1 -1
- data/docs/ImportFormUrl.md +1 -1
- data/docs/InlineObject17.md +1 -1
- data/docs/InlineObject18.md +2 -4
- data/docs/InlineObject19.md +4 -2
- data/docs/InlineObject20.md +2 -4
- data/docs/InlineObject21.md +4 -2
- data/docs/{InlineObject20Meta.md → InlineObject21Meta.md} +2 -2
- data/docs/InlineObject22.md +2 -2
- data/docs/InlineObject23.md +2 -2
- data/docs/{InlineObject22Response.md → InlineObject23Response.md} +2 -2
- data/docs/InlineObject24.md +1 -1
- data/docs/InlineObject25.md +1 -1
- data/docs/InlineObject26.md +1 -1
- data/docs/InlineObject27.md +1 -3
- data/docs/InlineObject28.md +1 -1
- data/docs/InlineObject29.md +3 -1
- data/docs/InlineObject30.md +18 -0
- data/docs/InlineObject31.md +18 -0
- data/docs/TemplateLibraryApi.md +4 -4
- data/docs/TemplateVersionsApi.md +4 -4
- data/docs/TemplatesApi.md +20 -20
- data/lib/pdf_generator_api_client/api/assets_api.rb +1 -1
- data/lib/pdf_generator_api_client/api/conversion_api.rb +3 -3
- data/lib/pdf_generator_api_client/api/documents_api.rb +76 -10
- data/lib/pdf_generator_api_client/api/e_invoices_api.rb +1 -1
- data/lib/pdf_generator_api_client/api/forms_api.rb +98 -24
- data/lib/pdf_generator_api_client/api/misc_api.rb +1 -1
- data/lib/pdf_generator_api_client/api/services_api.rb +1 -1
- data/lib/pdf_generator_api_client/api/template_library_api.rb +4 -4
- data/lib/pdf_generator_api_client/api/template_versions_api.rb +4 -4
- data/lib/pdf_generator_api_client/api/templates_api.rb +16 -16
- data/lib/pdf_generator_api_client/api/workspaces_api.rb +1 -1
- data/lib/pdf_generator_api_client/api_client.rb +1 -1
- data/lib/pdf_generator_api_client/api_error.rb +1 -1
- data/lib/pdf_generator_api_client/configuration.rb +1 -1
- data/lib/pdf_generator_api_client/models/accessibility_option.rb +1 -1
- data/lib/pdf_generator_api_client/models/add_watermark_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/async_output_param.rb +1 -1
- data/lib/pdf_generator_api_client/models/callback_param.rb +1 -1
- data/lib/pdf_generator_api_client/models/component.rb +1 -1
- data/lib/pdf_generator_api_client/models/convert_html2_pdf_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/convert_pdf2_image_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/convert_url2_pdf_request.rb +151 -5
- data/lib/pdf_generator_api_client/models/copy_template_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/create_e_invoice_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/create_factur_xe_invoice_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/create_factur_xe_invoice_request_template.rb +1 -1
- data/lib/pdf_generator_api_client/models/create_workspace_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/data_batch_inner.rb +1 -1
- data/lib/pdf_generator_api_client/models/document.rb +1 -1
- data/lib/pdf_generator_api_client/models/document_action.rb +1 -1
- data/lib/pdf_generator_api_client/models/document_signature.rb +399 -0
- data/lib/pdf_generator_api_client/models/document_signatures.rb +307 -0
- data/lib/pdf_generator_api_client/models/document_user.rb +1 -1
- data/lib/pdf_generator_api_client/models/document_version.rb +1 -1
- data/lib/pdf_generator_api_client/models/encrypt_and_decrypt_base64.rb +1 -1
- data/lib/pdf_generator_api_client/models/encrypt_and_decrypt_url.rb +1 -1
- data/lib/pdf_generator_api_client/models/encrypt_document_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/extract_form_fields_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/fill_form_fields_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/form_action_download.rb +1 -1
- data/lib/pdf_generator_api_client/models/form_action_send.rb +1 -1
- data/lib/pdf_generator_api_client/models/form_action_send_send_document.rb +2 -2
- data/lib/pdf_generator_api_client/models/form_action_send_send_document_headers_inner.rb +19 -1
- data/lib/pdf_generator_api_client/models/form_action_sign.rb +221 -0
- data/lib/pdf_generator_api_client/models/form_action_store.rb +1 -1
- data/lib/pdf_generator_api_client/models/form_configuration.rb +28 -1
- data/lib/pdf_generator_api_client/models/form_configuration_import.rb +301 -0
- data/lib/pdf_generator_api_client/models/form_configuration_new.rb +92 -4
- data/lib/pdf_generator_api_client/models/form_configuration_new_actions_inner.rb +2 -1
- data/lib/pdf_generator_api_client/models/form_field.rb +462 -0
- data/lib/pdf_generator_api_client/models/{form_fields_inner.rb → form_field_options.rb} +45 -74
- data/lib/pdf_generator_api_client/models/form_field_sub_rows_inner.rb +104 -0
- data/lib/pdf_generator_api_client/models/form_fields_base64.rb +1 -1
- data/lib/pdf_generator_api_client/models/form_fields_url.rb +1 -1
- data/lib/pdf_generator_api_client/models/form_fill_base64.rb +1 -1
- data/lib/pdf_generator_api_client/models/form_fill_url.rb +1 -1
- data/lib/pdf_generator_api_client/models/form_table_column.rb +446 -0
- data/lib/pdf_generator_api_client/models/format_param.rb +1 -1
- data/lib/pdf_generator_api_client/models/generate_document_asynchronous_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/generate_document_batch_asynchronous_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/generate_document_batch_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/generate_document_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/generate_qr_code201_response.rb +1 -1
- data/lib/pdf_generator_api_client/models/generate_qr_code201_response_meta.rb +1 -1
- data/lib/pdf_generator_api_client/models/generate_qr_code_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/generate_viewer_url200_response.rb +1 -1
- data/lib/pdf_generator_api_client/models/generate_viewer_url200_response_meta.rb +1 -1
- data/lib/pdf_generator_api_client/models/generate_viewer_url_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/get_status200_response.rb +1 -1
- data/lib/pdf_generator_api_client/models/get_template_library200_response.rb +1 -1
- data/lib/pdf_generator_api_client/models/get_template_version422_response.rb +1 -1
- data/lib/pdf_generator_api_client/models/import_form_base64.rb +2 -2
- data/lib/pdf_generator_api_client/models/import_form_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/import_form_url.rb +2 -2
- data/lib/pdf_generator_api_client/models/import_template_base64.rb +1 -1
- data/lib/pdf_generator_api_client/models/import_template_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/import_template_url.rb +1 -1
- data/lib/pdf_generator_api_client/models/import_template_url_template.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object1.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object10.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object10_meta.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object11.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object11_meta.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object12.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object12_meta.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object12_meta_stats.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object13.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object14.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object14_response_value.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object14_response_value_default.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object14_response_value_value.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object15.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object16.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object17.rb +3 -5
- data/lib/pdf_generator_api_client/models/inline_object18.rb +8 -15
- data/lib/pdf_generator_api_client/models/inline_object19.rb +14 -5
- data/lib/pdf_generator_api_client/models/inline_object1_response.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object2.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object20.rb +5 -15
- data/lib/pdf_generator_api_client/models/inline_object21.rb +15 -6
- data/lib/pdf_generator_api_client/models/{inline_object20_meta.rb → inline_object21_meta.rb} +4 -4
- data/lib/pdf_generator_api_client/models/inline_object22.rb +3 -2
- data/lib/pdf_generator_api_client/models/inline_object23.rb +8 -43
- data/lib/pdf_generator_api_client/models/{inline_object22_response.rb → inline_object23_response.rb} +4 -4
- data/lib/pdf_generator_api_client/models/inline_object24.rb +3 -3
- data/lib/pdf_generator_api_client/models/inline_object25.rb +3 -3
- data/lib/pdf_generator_api_client/models/inline_object26.rb +3 -3
- data/lib/pdf_generator_api_client/models/inline_object27.rb +38 -14
- data/lib/pdf_generator_api_client/models/inline_object28.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object29.rb +15 -5
- data/lib/pdf_generator_api_client/models/inline_object3.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object30.rb +221 -0
- data/lib/pdf_generator_api_client/models/inline_object31.rb +221 -0
- data/lib/pdf_generator_api_client/models/inline_object4.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object5.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object6.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object7.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object7_response.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object8.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object9.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object9_meta.rb +1 -1
- data/lib/pdf_generator_api_client/models/inline_object_meta.rb +1 -1
- data/lib/pdf_generator_api_client/models/key_field_param.rb +1 -1
- data/lib/pdf_generator_api_client/models/make_accessible_base64.rb +1 -1
- data/lib/pdf_generator_api_client/models/make_accessible_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/make_accessible_url.rb +1 -1
- data/lib/pdf_generator_api_client/models/metadata_param.rb +1 -1
- data/lib/pdf_generator_api_client/models/open_editor_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/open_editor_request_data.rb +1 -1
- data/lib/pdf_generator_api_client/models/optimize_base64.rb +1 -1
- data/lib/pdf_generator_api_client/models/optimize_document_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/optimize_url.rb +1 -1
- data/lib/pdf_generator_api_client/models/output_param.rb +1 -1
- data/lib/pdf_generator_api_client/models/pagination_meta.rb +1 -1
- data/lib/pdf_generator_api_client/models/prefill_param.rb +1 -1
- data/lib/pdf_generator_api_client/models/promote_template_version200_response.rb +1 -1
- data/lib/pdf_generator_api_client/models/public_template_library_item.rb +1 -1
- data/lib/pdf_generator_api_client/models/status_param.rb +1 -1
- data/lib/pdf_generator_api_client/models/store_document_request.rb +1 -1
- data/lib/pdf_generator_api_client/models/template.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_definition.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_definition_data_settings.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_definition_editor.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_definition_new.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_definition_new_data_settings.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_definition_new_editor.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_definition_new_layout.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_definition_new_layout_margins.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_definition_new_layout_repeat_layout.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_definition_new_pages_inner.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_definition_new_pages_inner_margins.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_definition_pages_inner.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_param.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_param_data.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_param_id.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_version.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_version_collection.rb +1 -1
- data/lib/pdf_generator_api_client/models/template_version_collection_meta.rb +1 -1
- data/lib/pdf_generator_api_client/models/watermark_base64.rb +1 -1
- data/lib/pdf_generator_api_client/models/watermark_file_url_watermark.rb +1 -1
- data/lib/pdf_generator_api_client/models/watermark_image.rb +1 -1
- data/lib/pdf_generator_api_client/models/watermark_image_content_base64.rb +1 -1
- data/lib/pdf_generator_api_client/models/watermark_image_content_url.rb +1 -1
- data/lib/pdf_generator_api_client/models/watermark_position.rb +1 -1
- data/lib/pdf_generator_api_client/models/watermark_text.rb +1 -1
- data/lib/pdf_generator_api_client/models/workspace.rb +1 -1
- data/lib/pdf_generator_api_client/version.rb +2 -2
- data/lib/pdf_generator_api_client.rb +13 -4
- data/pdf_generator_api_client.gemspec +1 -1
- data/spec/api/assets_api_spec.rb +1 -1
- data/spec/api/conversion_api_spec.rb +2 -2
- data/spec/api/documents_api_spec.rb +17 -4
- data/spec/api/e_invoices_api_spec.rb +1 -1
- data/spec/api/forms_api_spec.rb +23 -9
- data/spec/api/misc_api_spec.rb +1 -1
- data/spec/api/services_api_spec.rb +1 -1
- data/spec/api/template_library_api_spec.rb +2 -2
- data/spec/api/template_versions_api_spec.rb +2 -2
- data/spec/api/templates_api_spec.rb +6 -6
- data/spec/api/workspaces_api_spec.rb +1 -1
- data/spec/models/accessibility_option_spec.rb +1 -1
- data/spec/models/add_watermark_request_spec.rb +1 -1
- data/spec/models/async_output_param_spec.rb +1 -1
- data/spec/models/callback_param_spec.rb +1 -1
- data/spec/models/component_spec.rb +1 -1
- data/spec/models/convert_html2_pdf_request_spec.rb +1 -1
- data/spec/models/convert_pdf2_image_request_spec.rb +1 -1
- data/spec/models/convert_url2_pdf_request_spec.rb +39 -1
- data/spec/models/copy_template_request_spec.rb +1 -1
- data/spec/models/create_e_invoice_request_spec.rb +1 -1
- data/spec/models/create_factur_xe_invoice_request_spec.rb +1 -1
- data/spec/models/create_factur_xe_invoice_request_template_spec.rb +1 -1
- data/spec/models/create_workspace_request_spec.rb +1 -1
- data/spec/models/data_batch_inner_spec.rb +1 -1
- data/spec/models/document_action_spec.rb +1 -1
- data/spec/models/document_signature_spec.rb +116 -0
- data/spec/models/document_signatures_spec.rb +70 -0
- data/spec/models/document_spec.rb +1 -1
- data/spec/models/document_user_spec.rb +1 -1
- data/spec/models/document_version_spec.rb +1 -1
- data/spec/models/encrypt_and_decrypt_base64_spec.rb +1 -1
- data/spec/models/encrypt_and_decrypt_url_spec.rb +1 -1
- data/spec/models/encrypt_document_request_spec.rb +1 -1
- data/spec/models/extract_form_fields_request_spec.rb +1 -1
- data/spec/models/fill_form_fields_request_spec.rb +1 -1
- data/spec/models/form_action_download_spec.rb +1 -1
- data/spec/models/form_action_send_send_document_headers_inner_spec.rb +1 -1
- data/spec/models/form_action_send_send_document_spec.rb +1 -1
- data/spec/models/form_action_send_spec.rb +1 -1
- data/spec/models/form_action_sign_spec.rb +36 -0
- data/spec/models/form_action_store_spec.rb +1 -1
- data/spec/models/{form_fields_inner_spec.rb → form_configuration_import_spec.rb} +10 -14
- data/spec/models/form_configuration_new_actions_inner_spec.rb +1 -1
- data/spec/models/form_configuration_new_spec.rb +1 -1
- data/spec/models/form_configuration_spec.rb +1 -1
- data/spec/models/form_field_options_spec.rb +36 -0
- data/spec/models/form_field_spec.rb +76 -0
- data/spec/models/form_field_sub_rows_inner_spec.rb +21 -0
- data/spec/models/form_fields_base64_spec.rb +1 -1
- data/spec/models/form_fields_url_spec.rb +1 -1
- data/spec/models/form_fill_base64_spec.rb +1 -1
- data/spec/models/form_fill_url_spec.rb +1 -1
- data/spec/models/form_table_column_spec.rb +70 -0
- data/spec/models/format_param_spec.rb +1 -1
- data/spec/models/generate_document_asynchronous_request_spec.rb +1 -1
- data/spec/models/generate_document_batch_asynchronous_request_spec.rb +1 -1
- data/spec/models/generate_document_batch_request_spec.rb +1 -1
- data/spec/models/generate_document_request_spec.rb +1 -1
- data/spec/models/generate_qr_code201_response_meta_spec.rb +1 -1
- data/spec/models/generate_qr_code201_response_spec.rb +1 -1
- data/spec/models/generate_qr_code_request_spec.rb +1 -1
- data/spec/models/generate_viewer_url200_response_meta_spec.rb +1 -1
- data/spec/models/generate_viewer_url200_response_spec.rb +1 -1
- data/spec/models/generate_viewer_url_request_spec.rb +1 -1
- data/spec/models/get_status200_response_spec.rb +1 -1
- data/spec/models/get_template_library200_response_spec.rb +1 -1
- data/spec/models/get_template_version422_response_spec.rb +1 -1
- data/spec/models/import_form_base64_spec.rb +1 -1
- data/spec/models/import_form_request_spec.rb +1 -1
- data/spec/models/import_form_url_spec.rb +1 -1
- data/spec/models/import_template_base64_spec.rb +1 -1
- data/spec/models/import_template_request_spec.rb +1 -1
- data/spec/models/import_template_url_spec.rb +1 -1
- data/spec/models/import_template_url_template_spec.rb +1 -1
- data/spec/models/inline_object10_meta_spec.rb +1 -1
- data/spec/models/inline_object10_spec.rb +1 -1
- data/spec/models/inline_object11_meta_spec.rb +1 -1
- data/spec/models/inline_object11_spec.rb +1 -1
- data/spec/models/inline_object12_meta_spec.rb +1 -1
- data/spec/models/inline_object12_meta_stats_spec.rb +1 -1
- data/spec/models/inline_object12_spec.rb +1 -1
- data/spec/models/inline_object13_spec.rb +1 -1
- data/spec/models/inline_object14_response_value_default_spec.rb +1 -1
- data/spec/models/inline_object14_response_value_spec.rb +1 -1
- data/spec/models/inline_object14_response_value_value_spec.rb +1 -1
- data/spec/models/inline_object14_spec.rb +1 -1
- data/spec/models/inline_object15_spec.rb +1 -1
- data/spec/models/inline_object16_spec.rb +1 -1
- data/spec/models/inline_object17_spec.rb +1 -1
- data/spec/models/inline_object18_spec.rb +1 -7
- data/spec/models/inline_object19_spec.rb +7 -1
- data/spec/models/inline_object1_response_spec.rb +1 -1
- data/spec/models/inline_object1_spec.rb +1 -1
- data/spec/models/inline_object20_spec.rb +1 -7
- data/spec/models/{inline_object20_meta_spec.rb → inline_object21_meta_spec.rb} +7 -7
- data/spec/models/inline_object21_spec.rb +7 -1
- data/spec/models/inline_object22_spec.rb +1 -1
- data/spec/models/{inline_object22_response_spec.rb → inline_object23_response_spec.rb} +7 -7
- data/spec/models/inline_object23_spec.rb +2 -6
- data/spec/models/inline_object24_spec.rb +2 -2
- data/spec/models/inline_object25_spec.rb +2 -2
- data/spec/models/inline_object26_spec.rb +2 -2
- data/spec/models/inline_object27_spec.rb +5 -7
- data/spec/models/inline_object28_spec.rb +1 -1
- data/spec/models/inline_object29_spec.rb +7 -1
- data/spec/models/inline_object2_spec.rb +1 -1
- data/spec/models/inline_object30_spec.rb +36 -0
- data/spec/models/inline_object31_spec.rb +36 -0
- data/spec/models/inline_object3_spec.rb +1 -1
- data/spec/models/inline_object4_spec.rb +1 -1
- data/spec/models/inline_object5_spec.rb +1 -1
- data/spec/models/inline_object6_spec.rb +1 -1
- data/spec/models/inline_object7_response_spec.rb +1 -1
- data/spec/models/inline_object7_spec.rb +1 -1
- data/spec/models/inline_object8_spec.rb +1 -1
- data/spec/models/inline_object9_meta_spec.rb +1 -1
- data/spec/models/inline_object9_spec.rb +1 -1
- data/spec/models/inline_object_meta_spec.rb +1 -1
- data/spec/models/inline_object_spec.rb +1 -1
- data/spec/models/key_field_param_spec.rb +1 -1
- data/spec/models/make_accessible_base64_spec.rb +1 -1
- data/spec/models/make_accessible_request_spec.rb +1 -1
- data/spec/models/make_accessible_url_spec.rb +1 -1
- data/spec/models/metadata_param_spec.rb +1 -1
- data/spec/models/open_editor_request_data_spec.rb +1 -1
- data/spec/models/open_editor_request_spec.rb +1 -1
- data/spec/models/optimize_base64_spec.rb +1 -1
- data/spec/models/optimize_document_request_spec.rb +1 -1
- data/spec/models/optimize_url_spec.rb +1 -1
- data/spec/models/output_param_spec.rb +1 -1
- data/spec/models/pagination_meta_spec.rb +1 -1
- data/spec/models/prefill_param_spec.rb +1 -1
- data/spec/models/promote_template_version200_response_spec.rb +1 -1
- data/spec/models/public_template_library_item_spec.rb +1 -1
- data/spec/models/status_param_spec.rb +1 -1
- data/spec/models/store_document_request_spec.rb +1 -1
- data/spec/models/template_definition_data_settings_spec.rb +1 -1
- data/spec/models/template_definition_editor_spec.rb +1 -1
- data/spec/models/template_definition_new_data_settings_spec.rb +1 -1
- data/spec/models/template_definition_new_editor_spec.rb +1 -1
- data/spec/models/template_definition_new_layout_margins_spec.rb +1 -1
- data/spec/models/template_definition_new_layout_repeat_layout_spec.rb +1 -1
- data/spec/models/template_definition_new_layout_spec.rb +1 -1
- data/spec/models/template_definition_new_pages_inner_margins_spec.rb +1 -1
- data/spec/models/template_definition_new_pages_inner_spec.rb +1 -1
- data/spec/models/template_definition_new_spec.rb +1 -1
- data/spec/models/template_definition_pages_inner_spec.rb +1 -1
- data/spec/models/template_definition_spec.rb +1 -1
- data/spec/models/template_param_data_spec.rb +1 -1
- data/spec/models/template_param_id_spec.rb +1 -1
- data/spec/models/template_param_spec.rb +1 -1
- data/spec/models/template_spec.rb +1 -1
- data/spec/models/template_version_collection_meta_spec.rb +1 -1
- data/spec/models/template_version_collection_spec.rb +1 -1
- data/spec/models/template_version_spec.rb +1 -1
- data/spec/models/watermark_base64_spec.rb +1 -1
- data/spec/models/watermark_file_url_watermark_spec.rb +1 -1
- data/spec/models/watermark_image_content_base64_spec.rb +1 -1
- data/spec/models/watermark_image_content_url_spec.rb +1 -1
- data/spec/models/watermark_image_spec.rb +1 -1
- data/spec/models/watermark_position_spec.rb +1 -1
- data/spec/models/watermark_text_spec.rb +1 -1
- data/spec/models/workspace_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +177 -141
- data/docs/FormFieldsInner.md +0 -24
data/docs/TemplateLibraryApi.md
CHANGED
|
@@ -76,7 +76,7 @@ No authorization required
|
|
|
76
76
|
|
|
77
77
|
## get_template_library_item
|
|
78
78
|
|
|
79
|
-
> <
|
|
79
|
+
> <InlineObject19> get_template_library_item(public_id)
|
|
80
80
|
|
|
81
81
|
Open template from the library
|
|
82
82
|
|
|
@@ -104,7 +104,7 @@ end
|
|
|
104
104
|
|
|
105
105
|
This returns an Array which contains the response data, status code and headers.
|
|
106
106
|
|
|
107
|
-
> <Array(<
|
|
107
|
+
> <Array(<InlineObject19>, Integer, Hash)> get_template_library_item_with_http_info(public_id)
|
|
108
108
|
|
|
109
109
|
```ruby
|
|
110
110
|
begin
|
|
@@ -112,7 +112,7 @@ begin
|
|
|
112
112
|
data, status_code, headers = api_instance.get_template_library_item_with_http_info(public_id)
|
|
113
113
|
p status_code # => 2xx
|
|
114
114
|
p headers # => { ... }
|
|
115
|
-
p data # => <
|
|
115
|
+
p data # => <InlineObject19>
|
|
116
116
|
rescue PDFGeneratorAPI::ApiError => e
|
|
117
117
|
puts "Error when calling TemplateLibraryApi->get_template_library_item_with_http_info: #{e}"
|
|
118
118
|
end
|
|
@@ -126,7 +126,7 @@ end
|
|
|
126
126
|
|
|
127
127
|
### Return type
|
|
128
128
|
|
|
129
|
-
[**
|
|
129
|
+
[**InlineObject19**](InlineObject19.md)
|
|
130
130
|
|
|
131
131
|
### Authorization
|
|
132
132
|
|
data/docs/TemplateVersionsApi.md
CHANGED
|
@@ -82,7 +82,7 @@ nil (empty response body)
|
|
|
82
82
|
|
|
83
83
|
## get_template_version
|
|
84
84
|
|
|
85
|
-
> <
|
|
85
|
+
> <InlineObject19> get_template_version(template_id, template_version)
|
|
86
86
|
|
|
87
87
|
Get template version
|
|
88
88
|
|
|
@@ -116,7 +116,7 @@ end
|
|
|
116
116
|
|
|
117
117
|
This returns an Array which contains the response data, status code and headers.
|
|
118
118
|
|
|
119
|
-
> <Array(<
|
|
119
|
+
> <Array(<InlineObject19>, Integer, Hash)> get_template_version_with_http_info(template_id, template_version)
|
|
120
120
|
|
|
121
121
|
```ruby
|
|
122
122
|
begin
|
|
@@ -124,7 +124,7 @@ begin
|
|
|
124
124
|
data, status_code, headers = api_instance.get_template_version_with_http_info(template_id, template_version)
|
|
125
125
|
p status_code # => 2xx
|
|
126
126
|
p headers # => { ... }
|
|
127
|
-
p data # => <
|
|
127
|
+
p data # => <InlineObject19>
|
|
128
128
|
rescue PDFGeneratorAPI::ApiError => e
|
|
129
129
|
puts "Error when calling TemplateVersionsApi->get_template_version_with_http_info: #{e}"
|
|
130
130
|
end
|
|
@@ -139,7 +139,7 @@ end
|
|
|
139
139
|
|
|
140
140
|
### Return type
|
|
141
141
|
|
|
142
|
-
[**
|
|
142
|
+
[**InlineObject19**](InlineObject19.md)
|
|
143
143
|
|
|
144
144
|
### Authorization
|
|
145
145
|
|
data/docs/TemplatesApi.md
CHANGED
|
@@ -19,7 +19,7 @@ All URIs are relative to *https://us1.pdfgeneratorapi.com/api/v4*
|
|
|
19
19
|
|
|
20
20
|
## copy_template
|
|
21
21
|
|
|
22
|
-
> <
|
|
22
|
+
> <InlineObject19> copy_template(template_id, opts)
|
|
23
23
|
|
|
24
24
|
Copy template
|
|
25
25
|
|
|
@@ -55,7 +55,7 @@ end
|
|
|
55
55
|
|
|
56
56
|
This returns an Array which contains the response data, status code and headers.
|
|
57
57
|
|
|
58
|
-
> <Array(<
|
|
58
|
+
> <Array(<InlineObject19>, Integer, Hash)> copy_template_with_http_info(template_id, opts)
|
|
59
59
|
|
|
60
60
|
```ruby
|
|
61
61
|
begin
|
|
@@ -63,7 +63,7 @@ begin
|
|
|
63
63
|
data, status_code, headers = api_instance.copy_template_with_http_info(template_id, opts)
|
|
64
64
|
p status_code # => 2xx
|
|
65
65
|
p headers # => { ... }
|
|
66
|
-
p data # => <
|
|
66
|
+
p data # => <InlineObject19>
|
|
67
67
|
rescue PDFGeneratorAPI::ApiError => e
|
|
68
68
|
puts "Error when calling TemplatesApi->copy_template_with_http_info: #{e}"
|
|
69
69
|
end
|
|
@@ -78,7 +78,7 @@ end
|
|
|
78
78
|
|
|
79
79
|
### Return type
|
|
80
80
|
|
|
81
|
-
[**
|
|
81
|
+
[**InlineObject19**](InlineObject19.md)
|
|
82
82
|
|
|
83
83
|
### Authorization
|
|
84
84
|
|
|
@@ -92,7 +92,7 @@ end
|
|
|
92
92
|
|
|
93
93
|
## create_template
|
|
94
94
|
|
|
95
|
-
> <
|
|
95
|
+
> <InlineObject19> create_template(template_definition_new)
|
|
96
96
|
|
|
97
97
|
Create template
|
|
98
98
|
|
|
@@ -125,7 +125,7 @@ end
|
|
|
125
125
|
|
|
126
126
|
This returns an Array which contains the response data, status code and headers.
|
|
127
127
|
|
|
128
|
-
> <Array(<
|
|
128
|
+
> <Array(<InlineObject19>, Integer, Hash)> create_template_with_http_info(template_definition_new)
|
|
129
129
|
|
|
130
130
|
```ruby
|
|
131
131
|
begin
|
|
@@ -133,7 +133,7 @@ begin
|
|
|
133
133
|
data, status_code, headers = api_instance.create_template_with_http_info(template_definition_new)
|
|
134
134
|
p status_code # => 2xx
|
|
135
135
|
p headers # => { ... }
|
|
136
|
-
p data # => <
|
|
136
|
+
p data # => <InlineObject19>
|
|
137
137
|
rescue PDFGeneratorAPI::ApiError => e
|
|
138
138
|
puts "Error when calling TemplatesApi->create_template_with_http_info: #{e}"
|
|
139
139
|
end
|
|
@@ -147,7 +147,7 @@ end
|
|
|
147
147
|
|
|
148
148
|
### Return type
|
|
149
149
|
|
|
150
|
-
[**
|
|
150
|
+
[**InlineObject19**](InlineObject19.md)
|
|
151
151
|
|
|
152
152
|
### Authorization
|
|
153
153
|
|
|
@@ -229,7 +229,7 @@ nil (empty response body)
|
|
|
229
229
|
|
|
230
230
|
## get_template
|
|
231
231
|
|
|
232
|
-
> <
|
|
232
|
+
> <InlineObject19> get_template(template_id)
|
|
233
233
|
|
|
234
234
|
Get template
|
|
235
235
|
|
|
@@ -262,7 +262,7 @@ end
|
|
|
262
262
|
|
|
263
263
|
This returns an Array which contains the response data, status code and headers.
|
|
264
264
|
|
|
265
|
-
> <Array(<
|
|
265
|
+
> <Array(<InlineObject19>, Integer, Hash)> get_template_with_http_info(template_id)
|
|
266
266
|
|
|
267
267
|
```ruby
|
|
268
268
|
begin
|
|
@@ -270,7 +270,7 @@ begin
|
|
|
270
270
|
data, status_code, headers = api_instance.get_template_with_http_info(template_id)
|
|
271
271
|
p status_code # => 2xx
|
|
272
272
|
p headers # => { ... }
|
|
273
|
-
p data # => <
|
|
273
|
+
p data # => <InlineObject19>
|
|
274
274
|
rescue PDFGeneratorAPI::ApiError => e
|
|
275
275
|
puts "Error when calling TemplatesApi->get_template_with_http_info: #{e}"
|
|
276
276
|
end
|
|
@@ -284,7 +284,7 @@ end
|
|
|
284
284
|
|
|
285
285
|
### Return type
|
|
286
286
|
|
|
287
|
-
[**
|
|
287
|
+
[**InlineObject19**](InlineObject19.md)
|
|
288
288
|
|
|
289
289
|
### Authorization
|
|
290
290
|
|
|
@@ -512,7 +512,7 @@ end
|
|
|
512
512
|
|
|
513
513
|
## import_template
|
|
514
514
|
|
|
515
|
-
> <
|
|
515
|
+
> <InlineObject19> import_template(import_template_request)
|
|
516
516
|
|
|
517
517
|
Import template
|
|
518
518
|
|
|
@@ -545,7 +545,7 @@ end
|
|
|
545
545
|
|
|
546
546
|
This returns an Array which contains the response data, status code and headers.
|
|
547
547
|
|
|
548
|
-
> <Array(<
|
|
548
|
+
> <Array(<InlineObject19>, Integer, Hash)> import_template_with_http_info(import_template_request)
|
|
549
549
|
|
|
550
550
|
```ruby
|
|
551
551
|
begin
|
|
@@ -553,7 +553,7 @@ begin
|
|
|
553
553
|
data, status_code, headers = api_instance.import_template_with_http_info(import_template_request)
|
|
554
554
|
p status_code # => 2xx
|
|
555
555
|
p headers # => { ... }
|
|
556
|
-
p data # => <
|
|
556
|
+
p data # => <InlineObject19>
|
|
557
557
|
rescue PDFGeneratorAPI::ApiError => e
|
|
558
558
|
puts "Error when calling TemplatesApi->import_template_with_http_info: #{e}"
|
|
559
559
|
end
|
|
@@ -567,7 +567,7 @@ end
|
|
|
567
567
|
|
|
568
568
|
### Return type
|
|
569
569
|
|
|
570
|
-
[**
|
|
570
|
+
[**InlineObject19**](InlineObject19.md)
|
|
571
571
|
|
|
572
572
|
### Authorization
|
|
573
573
|
|
|
@@ -652,7 +652,7 @@ end
|
|
|
652
652
|
|
|
653
653
|
## update_template
|
|
654
654
|
|
|
655
|
-
> <
|
|
655
|
+
> <InlineObject19> update_template(template_id, template_definition_new)
|
|
656
656
|
|
|
657
657
|
Update template
|
|
658
658
|
|
|
@@ -686,7 +686,7 @@ end
|
|
|
686
686
|
|
|
687
687
|
This returns an Array which contains the response data, status code and headers.
|
|
688
688
|
|
|
689
|
-
> <Array(<
|
|
689
|
+
> <Array(<InlineObject19>, Integer, Hash)> update_template_with_http_info(template_id, template_definition_new)
|
|
690
690
|
|
|
691
691
|
```ruby
|
|
692
692
|
begin
|
|
@@ -694,7 +694,7 @@ begin
|
|
|
694
694
|
data, status_code, headers = api_instance.update_template_with_http_info(template_id, template_definition_new)
|
|
695
695
|
p status_code # => 2xx
|
|
696
696
|
p headers # => { ... }
|
|
697
|
-
p data # => <
|
|
697
|
+
p data # => <InlineObject19>
|
|
698
698
|
rescue PDFGeneratorAPI::ApiError => e
|
|
699
699
|
puts "Error when calling TemplatesApi->update_template_with_http_info: #{e}"
|
|
700
700
|
end
|
|
@@ -709,7 +709,7 @@ end
|
|
|
709
709
|
|
|
710
710
|
### Return type
|
|
711
711
|
|
|
712
|
-
[**
|
|
712
|
+
[**InlineObject19**](InlineObject19.md)
|
|
713
713
|
|
|
714
714
|
### Authorization
|
|
715
715
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Introduction [PDF Generator API](https://pdfgeneratorapi.com) allows you easily generate transactional PDF documents and reduce the development and support costs by enabling your users to create and manage their document templates using a browser-based drag-and-drop document editor. The PDF Generator API features a web API architecture, allowing you to code in the language of your choice. This API supports the JSON media type, and uses UTF-8 character encoding. ## Base URL The base URL for all the API endpoints is `https://us1.pdfgeneratorapi.com/api/v4` For example * `https://us1.pdfgeneratorapi.com/api/v4/templates` * `https://us1.pdfgeneratorapi.com/api/v4/workspaces` * `https://us1.pdfgeneratorapi.com/api/v4/templates/123123` ## Editor PDF Generator API comes with a powerful drag & drop editor that allows to create any kind of document templates, from barcode labels to invoices, quotes and reports. You can find tutorials and videos from our [Support Portal](https://support.pdfgeneratorapi.com). * [Component specification](https://support.pdfgeneratorapi.com/en/category/components-1ffseaj/) * [Expression Language documentation](https://support.pdfgeneratorapi.com/en/category/expression-language-q203pa/) * [Frequently asked questions and answers](https://support.pdfgeneratorapi.com/en/category/qanda-1ov519d/) ## Definitions ### Organization Organization is a group of workspaces owned by your account. ### Workspace Workspace contains templates. Each workspace has access to their own templates and organization default templates. ### Master Workspace Master Workspace is the main/default workspace of your Organization. The Master Workspace identifier is the email you signed up with. ### Default Template Default template is a template that is available for all workspaces by default. You can set the template access type under Page Setup. If template has \"Organization\" access then your users can use them from the \"New\" menu in the Editor. ### Data Field Data Field is a placeholder for the specific data in your JSON data set. In this example JSON you can access the buyer name using Data Field `{paymentDetails::buyerName}`. The separator between depth levels is :: (two colons). When designing the template you don’t have to know every Data Field, our editor automatically extracts all the available fields from your data set and provides an easy way to insert them into the template. ``` { \"documentNumber\": 1, \"paymentDetails\": { \"method\": \"Credit Card\", \"buyerName\": \"John Smith\" }, \"items\": [ { \"id\": 1, \"name\": \"Item one\" } ] } ``` ## Rate limiting Our API endpoints use IP-based rate limiting and allow you to make up to 2 requests per second and 60 requests per minute. If you make more requests, you will receive a response with HTTP code 429. Response headers contain additional values: | Header | Description | |--------|--------------------------------| | X-RateLimit-Limit | Maximum requests per minute | | X-RateLimit-Remaining | The requests remaining in the current minute | | Retry-After | How many seconds you need to wait until you are allowed to make requests | * * * * * # Libraries and SDKs ## Postman Collection We have created a [Postman Collection](https://www.postman.com/pdfgeneratorapi/workspace/pdf-generator-api-public-workspace/overview) so you can easily test all the API endpoints without developing and code. ## Client Libraries All our Client Libraries are auto-generated using [OpenAPI Generator](https://openapi-generator.tech/) which uses the OpenAPI v3 specification to automatically generate a client library in specific programming language. * [PHP Client](https://github.com/pdfgeneratorapi/php-client) * [Java Client](https://github.com/pdfgeneratorapi/java-client) * [Ruby Client](https://github.com/pdfgeneratorapi/ruby-client) * [Python Client](https://github.com/pdfgeneratorapi/python-client) * [Javascript Client](https://github.com/pdfgeneratorapi/javascript-client) We have validated the generated libraries, but let us know if you find any anomalies in the client code. ## Model Context Protocol (MCP) Server Integrate document generation directly into your AI agents and LLM applications using our official Model Context Protocol (MCP) Server. The MCP server provides a standardized interface that allows AI assistants (like Claude Desktop and other MCP-compatible clients) to securely interact with the PDF Generator API. With it, your AI applications can automatically fetch workspaces, retrieve templates, merge data, and generate PDF documents on the fly. [Get PDF Generator API MCP Server](https://github.com/pdfgeneratorapi/mcp-server) * * * * * # Authentication The PDF Generator API uses __JSON Web Tokens (JWT)__ to authenticate all API requests. These tokens offer a method to establish secure server-to-server authentication by transferring a compact JSON object with a signed payload of your account’s API Key and Secret. When authenticating to the PDF Generator API, a JWT should be generated uniquely by a __server-side application__ and included as a __Bearer Token__ in the header of each request. <SecurityDefinitions /> ## Accessing your API Key and Secret You can find your __API Key__ and __API Secret__ from the __Account Settings__ page after you login to PDF Generator API [here](https://pdfgeneratorapi.com/login). ## Creating a JWT JSON Web Tokens are composed of three sections: a header, a payload (containing a claim set), and a signature. The header and payload are JSON objects, which are serialized to UTF-8 bytes, then encoded using base64url encoding. The JWT's header, payload, and signature are concatenated with periods (.). As a result, a JWT typically takes the following form: ``` {Base64url encoded header}.{Base64url encoded payload}.{Base64url encoded signature} ``` We recommend and support libraries provided on [jwt.io](https://jwt.io/). While other libraries can create JWT, these recommended libraries are the most robust. ### Header Property `alg` defines which signing algorithm is being used. PDF Generator API users HS256. Property `typ` defines the type of token and it is always JWT. ``` { \"alg\": \"HS256\", \"typ\": \"JWT\" } ``` ### Payload The second part of the token is the payload, which contains the claims or the pieces of information being passed about the user and any metadata required. It is mandatory to specify the following claims: * issuer (`iss`): Your API key * subject (`sub`): Workspace identifier * expiration time (`exp`): Timestamp (unix epoch time) until the token is valid. It is highly recommended to set the exp timestamp for a short period, i.e. a matter of seconds. This way, if a token is intercepted or shared, the token will only be valid for a short period of time. ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"exp\": 1586112639 } ``` ### Payload for Partners Our partners can send their unique identifier (provided by us) in JWT's partner_id claim. If the `partner_id` value is specified in the JWT, the organization making the request is automatically connected to the partner account. * Partner ID (`partner_id`): Unique identifier provide by PDF Generator API team ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"partner_id\": \"my-partner-identifier\", \"exp\": 1586112639 } ``` ### Signature To create the signature part you have to take the encoded header, the encoded payload, a secret, the algorithm specified in the header, and sign that. The signature is used to verify the message wasn't changed along the way, and, in the case of tokens signed with a private key, it can also verify that the sender of the JWT is who it says it is. ``` HMACSHA256( base64UrlEncode(header) + \".\" + base64UrlEncode(payload), API_SECRET) ``` ### Putting all together The output is three Base64-URL strings separated by dots. The following shows a JWT that has the previous header and payload encoded, and it is signed with a secret. ``` eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0.SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q // Base64 encoded header: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 // Base64 encoded payload: eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0 // Signature: SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q ``` ## Temporary JWTs You can create a temporary token in [Account Settings](https://pdfgeneratorapi.com/account/organization) page after you login to PDF Generator API. The generated token uses your email address as the subject (`sub`) value and is valid for __15 minutes__. You can also use [jwt.io](https://jwt.io/) to generate test tokens for your API calls. These test tokens should never be used in production applications. * * * * * # Error codes | Code | Description | |--------|--------------------------------| | 401 | Unauthorized | | 402 | Payment Required | | 403 | Forbidden | | 404 | Not Found | | 422 | Unprocessable Entity | | 429 | Too Many Requests | | 500 | Internal Server Error | ## 401 Unauthorized | Description | |-------------------------------------------------------------------------| | Authentication failed: request expired | | Authentication failed: workspace missing | | Authentication failed: key missing | | Authentication failed: property 'iss' (issuer) missing in JWT | | Authentication failed: property 'sub' (subject) missing in JWT | | Authentication failed: property 'exp' (expiration time) missing in JWT | | Authentication failed: incorrect signature | ## 402 Payment Required | Description | |-------------------------------------------------------------------------| | Your account is suspended, please upgrade your account | ## 403 Forbidden | Description | |-------------------------------------------------------------------------| | Your account has exceeded the monthly document generation limit. | | Access not granted: You cannot delete master workspace via API | | Access not granted: Template is not accessible by this organization | | Your session has expired, please close and reopen the editor. | ## 404 Entity not found | Description | |-------------------------------------------------------------------------| | Entity not found | | Resource not found | | None of the templates is available for the workspace. | ## 422 Unprocessable Entity | Description | |-------------------------------------------------------------------------| | Unable to parse JSON, please check formatting | | Required parameter missing | | Required parameter missing: template definition not defined | | Required parameter missing: template not defined | ## 429 Too Many Requests | Description | |-------------------------------------------------------------------------| | You can make up to 2 requests per second and 60 requests per minute. | * * * * *
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 4.0.
|
|
6
|
+
The version of the OpenAPI document: 4.0.31
|
|
7
7
|
Contact: support@pdfgeneratorapi.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.14.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Introduction [PDF Generator API](https://pdfgeneratorapi.com) allows you easily generate transactional PDF documents and reduce the development and support costs by enabling your users to create and manage their document templates using a browser-based drag-and-drop document editor. The PDF Generator API features a web API architecture, allowing you to code in the language of your choice. This API supports the JSON media type, and uses UTF-8 character encoding. ## Base URL The base URL for all the API endpoints is `https://us1.pdfgeneratorapi.com/api/v4` For example * `https://us1.pdfgeneratorapi.com/api/v4/templates` * `https://us1.pdfgeneratorapi.com/api/v4/workspaces` * `https://us1.pdfgeneratorapi.com/api/v4/templates/123123` ## Editor PDF Generator API comes with a powerful drag & drop editor that allows to create any kind of document templates, from barcode labels to invoices, quotes and reports. You can find tutorials and videos from our [Support Portal](https://support.pdfgeneratorapi.com). * [Component specification](https://support.pdfgeneratorapi.com/en/category/components-1ffseaj/) * [Expression Language documentation](https://support.pdfgeneratorapi.com/en/category/expression-language-q203pa/) * [Frequently asked questions and answers](https://support.pdfgeneratorapi.com/en/category/qanda-1ov519d/) ## Definitions ### Organization Organization is a group of workspaces owned by your account. ### Workspace Workspace contains templates. Each workspace has access to their own templates and organization default templates. ### Master Workspace Master Workspace is the main/default workspace of your Organization. The Master Workspace identifier is the email you signed up with. ### Default Template Default template is a template that is available for all workspaces by default. You can set the template access type under Page Setup. If template has \"Organization\" access then your users can use them from the \"New\" menu in the Editor. ### Data Field Data Field is a placeholder for the specific data in your JSON data set. In this example JSON you can access the buyer name using Data Field `{paymentDetails::buyerName}`. The separator between depth levels is :: (two colons). When designing the template you don’t have to know every Data Field, our editor automatically extracts all the available fields from your data set and provides an easy way to insert them into the template. ``` { \"documentNumber\": 1, \"paymentDetails\": { \"method\": \"Credit Card\", \"buyerName\": \"John Smith\" }, \"items\": [ { \"id\": 1, \"name\": \"Item one\" } ] } ``` ## Rate limiting Our API endpoints use IP-based rate limiting and allow you to make up to 2 requests per second and 60 requests per minute. If you make more requests, you will receive a response with HTTP code 429. Response headers contain additional values: | Header | Description | |--------|--------------------------------| | X-RateLimit-Limit | Maximum requests per minute | | X-RateLimit-Remaining | The requests remaining in the current minute | | Retry-After | How many seconds you need to wait until you are allowed to make requests | * * * * * # Libraries and SDKs ## Postman Collection We have created a [Postman Collection](https://www.postman.com/pdfgeneratorapi/workspace/pdf-generator-api-public-workspace/overview) so you can easily test all the API endpoints without developing and code. ## Client Libraries All our Client Libraries are auto-generated using [OpenAPI Generator](https://openapi-generator.tech/) which uses the OpenAPI v3 specification to automatically generate a client library in specific programming language. * [PHP Client](https://github.com/pdfgeneratorapi/php-client) * [Java Client](https://github.com/pdfgeneratorapi/java-client) * [Ruby Client](https://github.com/pdfgeneratorapi/ruby-client) * [Python Client](https://github.com/pdfgeneratorapi/python-client) * [Javascript Client](https://github.com/pdfgeneratorapi/javascript-client) We have validated the generated libraries, but let us know if you find any anomalies in the client code. ## Model Context Protocol (MCP) Server Integrate document generation directly into your AI agents and LLM applications using our official Model Context Protocol (MCP) Server. The MCP server provides a standardized interface that allows AI assistants (like Claude Desktop and other MCP-compatible clients) to securely interact with the PDF Generator API. With it, your AI applications can automatically fetch workspaces, retrieve templates, merge data, and generate PDF documents on the fly. [Get PDF Generator API MCP Server](https://github.com/pdfgeneratorapi/mcp-server) * * * * * # Authentication The PDF Generator API uses __JSON Web Tokens (JWT)__ to authenticate all API requests. These tokens offer a method to establish secure server-to-server authentication by transferring a compact JSON object with a signed payload of your account’s API Key and Secret. When authenticating to the PDF Generator API, a JWT should be generated uniquely by a __server-side application__ and included as a __Bearer Token__ in the header of each request. <SecurityDefinitions /> ## Accessing your API Key and Secret You can find your __API Key__ and __API Secret__ from the __Account Settings__ page after you login to PDF Generator API [here](https://pdfgeneratorapi.com/login). ## Creating a JWT JSON Web Tokens are composed of three sections: a header, a payload (containing a claim set), and a signature. The header and payload are JSON objects, which are serialized to UTF-8 bytes, then encoded using base64url encoding. The JWT's header, payload, and signature are concatenated with periods (.). As a result, a JWT typically takes the following form: ``` {Base64url encoded header}.{Base64url encoded payload}.{Base64url encoded signature} ``` We recommend and support libraries provided on [jwt.io](https://jwt.io/). While other libraries can create JWT, these recommended libraries are the most robust. ### Header Property `alg` defines which signing algorithm is being used. PDF Generator API users HS256. Property `typ` defines the type of token and it is always JWT. ``` { \"alg\": \"HS256\", \"typ\": \"JWT\" } ``` ### Payload The second part of the token is the payload, which contains the claims or the pieces of information being passed about the user and any metadata required. It is mandatory to specify the following claims: * issuer (`iss`): Your API key * subject (`sub`): Workspace identifier * expiration time (`exp`): Timestamp (unix epoch time) until the token is valid. It is highly recommended to set the exp timestamp for a short period, i.e. a matter of seconds. This way, if a token is intercepted or shared, the token will only be valid for a short period of time. ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"exp\": 1586112639 } ``` ### Payload for Partners Our partners can send their unique identifier (provided by us) in JWT's partner_id claim. If the `partner_id` value is specified in the JWT, the organization making the request is automatically connected to the partner account. * Partner ID (`partner_id`): Unique identifier provide by PDF Generator API team ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"partner_id\": \"my-partner-identifier\", \"exp\": 1586112639 } ``` ### Signature To create the signature part you have to take the encoded header, the encoded payload, a secret, the algorithm specified in the header, and sign that. The signature is used to verify the message wasn't changed along the way, and, in the case of tokens signed with a private key, it can also verify that the sender of the JWT is who it says it is. ``` HMACSHA256( base64UrlEncode(header) + \".\" + base64UrlEncode(payload), API_SECRET) ``` ### Putting all together The output is three Base64-URL strings separated by dots. The following shows a JWT that has the previous header and payload encoded, and it is signed with a secret. ``` eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0.SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q // Base64 encoded header: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 // Base64 encoded payload: eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0 // Signature: SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q ``` ## Temporary JWTs You can create a temporary token in [Account Settings](https://pdfgeneratorapi.com/account/organization) page after you login to PDF Generator API. The generated token uses your email address as the subject (`sub`) value and is valid for __15 minutes__. You can also use [jwt.io](https://jwt.io/) to generate test tokens for your API calls. These test tokens should never be used in production applications. * * * * * # Error codes | Code | Description | |--------|--------------------------------| | 401 | Unauthorized | | 402 | Payment Required | | 403 | Forbidden | | 404 | Not Found | | 422 | Unprocessable Entity | | 429 | Too Many Requests | | 500 | Internal Server Error | ## 401 Unauthorized | Description | |-------------------------------------------------------------------------| | Authentication failed: request expired | | Authentication failed: workspace missing | | Authentication failed: key missing | | Authentication failed: property 'iss' (issuer) missing in JWT | | Authentication failed: property 'sub' (subject) missing in JWT | | Authentication failed: property 'exp' (expiration time) missing in JWT | | Authentication failed: incorrect signature | ## 402 Payment Required | Description | |-------------------------------------------------------------------------| | Your account is suspended, please upgrade your account | ## 403 Forbidden | Description | |-------------------------------------------------------------------------| | Your account has exceeded the monthly document generation limit. | | Access not granted: You cannot delete master workspace via API | | Access not granted: Template is not accessible by this organization | | Your session has expired, please close and reopen the editor. | ## 404 Entity not found | Description | |-------------------------------------------------------------------------| | Entity not found | | Resource not found | | None of the templates is available for the workspace. | ## 422 Unprocessable Entity | Description | |-------------------------------------------------------------------------| | Unable to parse JSON, please check formatting | | Required parameter missing | | Required parameter missing: template definition not defined | | Required parameter missing: template not defined | ## 429 Too Many Requests | Description | |-------------------------------------------------------------------------| | You can make up to 2 requests per second and 60 requests per minute. | * * * * *
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 4.0.
|
|
6
|
+
The version of the OpenAPI document: 4.0.31
|
|
7
7
|
Contact: support@pdfgeneratorapi.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.14.0
|
|
@@ -156,7 +156,7 @@ module PDFGeneratorAPI
|
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
# URL to PDF
|
|
159
|
-
# Converts public URL to PDF
|
|
159
|
+
# Converts public URL to PDF. By default the page is printed once its network activity settles. Pages that keep making background requests (e.g. single-page applications) can signal when they have finished rendering with `wait_for_css` and/or `wait_for_js`; the page is then printed as soon as the signal is met. When both are given, both must be met.
|
|
160
160
|
# @param convert_url2_pdf_request [ConvertURL2PDFRequest]
|
|
161
161
|
# @param [Hash] opts the optional parameters
|
|
162
162
|
# @return [InlineObject9]
|
|
@@ -166,7 +166,7 @@ module PDFGeneratorAPI
|
|
|
166
166
|
end
|
|
167
167
|
|
|
168
168
|
# URL to PDF
|
|
169
|
-
# Converts public URL to PDF
|
|
169
|
+
# Converts public URL to PDF. By default the page is printed once its network activity settles. Pages that keep making background requests (e.g. single-page applications) can signal when they have finished rendering with `wait_for_css` and/or `wait_for_js`; the page is then printed as soon as the signal is met. When both are given, both must be met.
|
|
170
170
|
# @param convert_url2_pdf_request [ConvertURL2PDFRequest]
|
|
171
171
|
# @param [Hash] opts the optional parameters
|
|
172
172
|
# @return [Array<(InlineObject9, Integer, Hash)>] InlineObject9 data, response status code and response headers
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Introduction [PDF Generator API](https://pdfgeneratorapi.com) allows you easily generate transactional PDF documents and reduce the development and support costs by enabling your users to create and manage their document templates using a browser-based drag-and-drop document editor. The PDF Generator API features a web API architecture, allowing you to code in the language of your choice. This API supports the JSON media type, and uses UTF-8 character encoding. ## Base URL The base URL for all the API endpoints is `https://us1.pdfgeneratorapi.com/api/v4` For example * `https://us1.pdfgeneratorapi.com/api/v4/templates` * `https://us1.pdfgeneratorapi.com/api/v4/workspaces` * `https://us1.pdfgeneratorapi.com/api/v4/templates/123123` ## Editor PDF Generator API comes with a powerful drag & drop editor that allows to create any kind of document templates, from barcode labels to invoices, quotes and reports. You can find tutorials and videos from our [Support Portal](https://support.pdfgeneratorapi.com). * [Component specification](https://support.pdfgeneratorapi.com/en/category/components-1ffseaj/) * [Expression Language documentation](https://support.pdfgeneratorapi.com/en/category/expression-language-q203pa/) * [Frequently asked questions and answers](https://support.pdfgeneratorapi.com/en/category/qanda-1ov519d/) ## Definitions ### Organization Organization is a group of workspaces owned by your account. ### Workspace Workspace contains templates. Each workspace has access to their own templates and organization default templates. ### Master Workspace Master Workspace is the main/default workspace of your Organization. The Master Workspace identifier is the email you signed up with. ### Default Template Default template is a template that is available for all workspaces by default. You can set the template access type under Page Setup. If template has \"Organization\" access then your users can use them from the \"New\" menu in the Editor. ### Data Field Data Field is a placeholder for the specific data in your JSON data set. In this example JSON you can access the buyer name using Data Field `{paymentDetails::buyerName}`. The separator between depth levels is :: (two colons). When designing the template you don’t have to know every Data Field, our editor automatically extracts all the available fields from your data set and provides an easy way to insert them into the template. ``` { \"documentNumber\": 1, \"paymentDetails\": { \"method\": \"Credit Card\", \"buyerName\": \"John Smith\" }, \"items\": [ { \"id\": 1, \"name\": \"Item one\" } ] } ``` ## Rate limiting Our API endpoints use IP-based rate limiting and allow you to make up to 2 requests per second and 60 requests per minute. If you make more requests, you will receive a response with HTTP code 429. Response headers contain additional values: | Header | Description | |--------|--------------------------------| | X-RateLimit-Limit | Maximum requests per minute | | X-RateLimit-Remaining | The requests remaining in the current minute | | Retry-After | How many seconds you need to wait until you are allowed to make requests | * * * * * # Libraries and SDKs ## Postman Collection We have created a [Postman Collection](https://www.postman.com/pdfgeneratorapi/workspace/pdf-generator-api-public-workspace/overview) so you can easily test all the API endpoints without developing and code. ## Client Libraries All our Client Libraries are auto-generated using [OpenAPI Generator](https://openapi-generator.tech/) which uses the OpenAPI v3 specification to automatically generate a client library in specific programming language. * [PHP Client](https://github.com/pdfgeneratorapi/php-client) * [Java Client](https://github.com/pdfgeneratorapi/java-client) * [Ruby Client](https://github.com/pdfgeneratorapi/ruby-client) * [Python Client](https://github.com/pdfgeneratorapi/python-client) * [Javascript Client](https://github.com/pdfgeneratorapi/javascript-client) We have validated the generated libraries, but let us know if you find any anomalies in the client code. ## Model Context Protocol (MCP) Server Integrate document generation directly into your AI agents and LLM applications using our official Model Context Protocol (MCP) Server. The MCP server provides a standardized interface that allows AI assistants (like Claude Desktop and other MCP-compatible clients) to securely interact with the PDF Generator API. With it, your AI applications can automatically fetch workspaces, retrieve templates, merge data, and generate PDF documents on the fly. [Get PDF Generator API MCP Server](https://github.com/pdfgeneratorapi/mcp-server) * * * * * # Authentication The PDF Generator API uses __JSON Web Tokens (JWT)__ to authenticate all API requests. These tokens offer a method to establish secure server-to-server authentication by transferring a compact JSON object with a signed payload of your account’s API Key and Secret. When authenticating to the PDF Generator API, a JWT should be generated uniquely by a __server-side application__ and included as a __Bearer Token__ in the header of each request. <SecurityDefinitions /> ## Accessing your API Key and Secret You can find your __API Key__ and __API Secret__ from the __Account Settings__ page after you login to PDF Generator API [here](https://pdfgeneratorapi.com/login). ## Creating a JWT JSON Web Tokens are composed of three sections: a header, a payload (containing a claim set), and a signature. The header and payload are JSON objects, which are serialized to UTF-8 bytes, then encoded using base64url encoding. The JWT's header, payload, and signature are concatenated with periods (.). As a result, a JWT typically takes the following form: ``` {Base64url encoded header}.{Base64url encoded payload}.{Base64url encoded signature} ``` We recommend and support libraries provided on [jwt.io](https://jwt.io/). While other libraries can create JWT, these recommended libraries are the most robust. ### Header Property `alg` defines which signing algorithm is being used. PDF Generator API users HS256. Property `typ` defines the type of token and it is always JWT. ``` { \"alg\": \"HS256\", \"typ\": \"JWT\" } ``` ### Payload The second part of the token is the payload, which contains the claims or the pieces of information being passed about the user and any metadata required. It is mandatory to specify the following claims: * issuer (`iss`): Your API key * subject (`sub`): Workspace identifier * expiration time (`exp`): Timestamp (unix epoch time) until the token is valid. It is highly recommended to set the exp timestamp for a short period, i.e. a matter of seconds. This way, if a token is intercepted or shared, the token will only be valid for a short period of time. ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"exp\": 1586112639 } ``` ### Payload for Partners Our partners can send their unique identifier (provided by us) in JWT's partner_id claim. If the `partner_id` value is specified in the JWT, the organization making the request is automatically connected to the partner account. * Partner ID (`partner_id`): Unique identifier provide by PDF Generator API team ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"partner_id\": \"my-partner-identifier\", \"exp\": 1586112639 } ``` ### Signature To create the signature part you have to take the encoded header, the encoded payload, a secret, the algorithm specified in the header, and sign that. The signature is used to verify the message wasn't changed along the way, and, in the case of tokens signed with a private key, it can also verify that the sender of the JWT is who it says it is. ``` HMACSHA256( base64UrlEncode(header) + \".\" + base64UrlEncode(payload), API_SECRET) ``` ### Putting all together The output is three Base64-URL strings separated by dots. The following shows a JWT that has the previous header and payload encoded, and it is signed with a secret. ``` eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0.SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q // Base64 encoded header: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 // Base64 encoded payload: eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0 // Signature: SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q ``` ## Temporary JWTs You can create a temporary token in [Account Settings](https://pdfgeneratorapi.com/account/organization) page after you login to PDF Generator API. The generated token uses your email address as the subject (`sub`) value and is valid for __15 minutes__. You can also use [jwt.io](https://jwt.io/) to generate test tokens for your API calls. These test tokens should never be used in production applications. * * * * * # Error codes | Code | Description | |--------|--------------------------------| | 401 | Unauthorized | | 402 | Payment Required | | 403 | Forbidden | | 404 | Not Found | | 422 | Unprocessable Entity | | 429 | Too Many Requests | | 500 | Internal Server Error | ## 401 Unauthorized | Description | |-------------------------------------------------------------------------| | Authentication failed: request expired | | Authentication failed: workspace missing | | Authentication failed: key missing | | Authentication failed: property 'iss' (issuer) missing in JWT | | Authentication failed: property 'sub' (subject) missing in JWT | | Authentication failed: property 'exp' (expiration time) missing in JWT | | Authentication failed: incorrect signature | ## 402 Payment Required | Description | |-------------------------------------------------------------------------| | Your account is suspended, please upgrade your account | ## 403 Forbidden | Description | |-------------------------------------------------------------------------| | Your account has exceeded the monthly document generation limit. | | Access not granted: You cannot delete master workspace via API | | Access not granted: Template is not accessible by this organization | | Your session has expired, please close and reopen the editor. | ## 404 Entity not found | Description | |-------------------------------------------------------------------------| | Entity not found | | Resource not found | | None of the templates is available for the workspace. | ## 422 Unprocessable Entity | Description | |-------------------------------------------------------------------------| | Unable to parse JSON, please check formatting | | Required parameter missing | | Required parameter missing: template definition not defined | | Required parameter missing: template not defined | ## 429 Too Many Requests | Description | |-------------------------------------------------------------------------| | You can make up to 2 requests per second and 60 requests per minute. | * * * * *
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 4.0.
|
|
6
|
+
The version of the OpenAPI document: 4.0.31
|
|
7
7
|
Contact: support@pdfgeneratorapi.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.14.0
|
|
@@ -154,7 +154,7 @@ module PDFGeneratorAPI
|
|
|
154
154
|
# Merges template with data as asynchronous job and makes POST request to callback URL defined in the request. Request uses the same format as response of synchronous generation endpoint. The job id is also added to the callback request as header PDF-API-Job-Id *Example response from callback URL:* ``` { \"response\": \"https://us1.pdfgeneratorapi.com/share/12821/VBERi0xLjcKJeLjz9MKNyAwIG9i\", \"meta\": { \"name\": \"a2bd25b8921f3dc7a440fd7f427f90a4.pdf\", \"display_name\": \"a2bd25b8921f3dc7a440fd7f427f90a4\", \"encoding\": \"binary\", \"content-type\": \"application/pdf\" } } ```
|
|
155
155
|
# @param generate_document_asynchronous_request [GenerateDocumentAsynchronousRequest] Request parameters, including template id, data and formats.
|
|
156
156
|
# @param [Hash] opts the optional parameters
|
|
157
|
-
# @return [
|
|
157
|
+
# @return [InlineObject23]
|
|
158
158
|
def generate_document_asynchronous(generate_document_asynchronous_request, opts = {})
|
|
159
159
|
data, _status_code, _headers = generate_document_asynchronous_with_http_info(generate_document_asynchronous_request, opts)
|
|
160
160
|
data
|
|
@@ -164,7 +164,7 @@ module PDFGeneratorAPI
|
|
|
164
164
|
# Merges template with data as asynchronous job and makes POST request to callback URL defined in the request. Request uses the same format as response of synchronous generation endpoint. The job id is also added to the callback request as header PDF-API-Job-Id *Example response from callback URL:* ``` { \"response\": \"https://us1.pdfgeneratorapi.com/share/12821/VBERi0xLjcKJeLjz9MKNyAwIG9i\", \"meta\": { \"name\": \"a2bd25b8921f3dc7a440fd7f427f90a4.pdf\", \"display_name\": \"a2bd25b8921f3dc7a440fd7f427f90a4\", \"encoding\": \"binary\", \"content-type\": \"application/pdf\" } } ```
|
|
165
165
|
# @param generate_document_asynchronous_request [GenerateDocumentAsynchronousRequest] Request parameters, including template id, data and formats.
|
|
166
166
|
# @param [Hash] opts the optional parameters
|
|
167
|
-
# @return [Array<(
|
|
167
|
+
# @return [Array<(InlineObject23, Integer, Hash)>] InlineObject23 data, response status code and response headers
|
|
168
168
|
def generate_document_asynchronous_with_http_info(generate_document_asynchronous_request, opts = {})
|
|
169
169
|
if @api_client.config.debugging
|
|
170
170
|
@api_client.config.logger.debug 'Calling API: DocumentsApi.generate_document_asynchronous ...'
|
|
@@ -196,7 +196,7 @@ module PDFGeneratorAPI
|
|
|
196
196
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(generate_document_asynchronous_request)
|
|
197
197
|
|
|
198
198
|
# return_type
|
|
199
|
-
return_type = opts[:debug_return_type] || '
|
|
199
|
+
return_type = opts[:debug_return_type] || 'InlineObject23'
|
|
200
200
|
|
|
201
201
|
# auth_names
|
|
202
202
|
auth_names = opts[:debug_auth_names] || ['JSONWebTokenAuth']
|
|
@@ -290,7 +290,7 @@ module PDFGeneratorAPI
|
|
|
290
290
|
# Merges template with data as asynchronous job and makes POST request to callback URL defined in the request. Request uses the same format as response of synchronous generation endpoint. The job id is also added to the callback request as header PDF-API-Job-Id *Example response from callback URL:* ``` { \"response\": \"https://us1.pdfgeneratorapi.com/share/12821/VBERi0xLjcKJeLjz9MKNyAwIG9i\", \"meta\": { \"name\": \"a2bd25b8921f3dc7a440fd7f427f90a4.pdf\", \"display_name\": \"a2bd25b8921f3dc7a440fd7f427f90a4\", \"encoding\": \"binary\", \"content-type\": \"application/pdf\" } } ```
|
|
291
291
|
# @param generate_document_batch_asynchronous_request [GenerateDocumentBatchAsynchronousRequest] Request parameters, including template id, data and formats.
|
|
292
292
|
# @param [Hash] opts the optional parameters
|
|
293
|
-
# @return [
|
|
293
|
+
# @return [InlineObject23]
|
|
294
294
|
def generate_document_batch_asynchronous(generate_document_batch_asynchronous_request, opts = {})
|
|
295
295
|
data, _status_code, _headers = generate_document_batch_asynchronous_with_http_info(generate_document_batch_asynchronous_request, opts)
|
|
296
296
|
data
|
|
@@ -300,7 +300,7 @@ module PDFGeneratorAPI
|
|
|
300
300
|
# Merges template with data as asynchronous job and makes POST request to callback URL defined in the request. Request uses the same format as response of synchronous generation endpoint. The job id is also added to the callback request as header PDF-API-Job-Id *Example response from callback URL:* ``` { \"response\": \"https://us1.pdfgeneratorapi.com/share/12821/VBERi0xLjcKJeLjz9MKNyAwIG9i\", \"meta\": { \"name\": \"a2bd25b8921f3dc7a440fd7f427f90a4.pdf\", \"display_name\": \"a2bd25b8921f3dc7a440fd7f427f90a4\", \"encoding\": \"binary\", \"content-type\": \"application/pdf\" } } ```
|
|
301
301
|
# @param generate_document_batch_asynchronous_request [GenerateDocumentBatchAsynchronousRequest] Request parameters, including template id, data and formats.
|
|
302
302
|
# @param [Hash] opts the optional parameters
|
|
303
|
-
# @return [Array<(
|
|
303
|
+
# @return [Array<(InlineObject23, Integer, Hash)>] InlineObject23 data, response status code and response headers
|
|
304
304
|
def generate_document_batch_asynchronous_with_http_info(generate_document_batch_asynchronous_request, opts = {})
|
|
305
305
|
if @api_client.config.debugging
|
|
306
306
|
@api_client.config.logger.debug 'Calling API: DocumentsApi.generate_document_batch_asynchronous ...'
|
|
@@ -332,7 +332,7 @@ module PDFGeneratorAPI
|
|
|
332
332
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(generate_document_batch_asynchronous_request)
|
|
333
333
|
|
|
334
334
|
# return_type
|
|
335
|
-
return_type = opts[:debug_return_type] || '
|
|
335
|
+
return_type = opts[:debug_return_type] || 'InlineObject23'
|
|
336
336
|
|
|
337
337
|
# auth_names
|
|
338
338
|
auth_names = opts[:debug_auth_names] || ['JSONWebTokenAuth']
|
|
@@ -554,7 +554,7 @@ module PDFGeneratorAPI
|
|
|
554
554
|
# Returns a list of actions performed on a stored document
|
|
555
555
|
# @param public_id [String] Resource public id
|
|
556
556
|
# @param [Hash] opts the optional parameters
|
|
557
|
-
# @return [
|
|
557
|
+
# @return [InlineObject18]
|
|
558
558
|
def get_document_actions(public_id, opts = {})
|
|
559
559
|
data, _status_code, _headers = get_document_actions_with_http_info(public_id, opts)
|
|
560
560
|
data
|
|
@@ -564,7 +564,7 @@ module PDFGeneratorAPI
|
|
|
564
564
|
# Returns a list of actions performed on a stored document
|
|
565
565
|
# @param public_id [String] Resource public id
|
|
566
566
|
# @param [Hash] opts the optional parameters
|
|
567
|
-
# @return [Array<(
|
|
567
|
+
# @return [Array<(InlineObject18, Integer, Hash)>] InlineObject18 data, response status code and response headers
|
|
568
568
|
def get_document_actions_with_http_info(public_id, opts = {})
|
|
569
569
|
if @api_client.config.debugging
|
|
570
570
|
@api_client.config.logger.debug 'Calling API: DocumentsApi.get_document_actions ...'
|
|
@@ -591,7 +591,7 @@ module PDFGeneratorAPI
|
|
|
591
591
|
post_body = opts[:debug_body]
|
|
592
592
|
|
|
593
593
|
# return_type
|
|
594
|
-
return_type = opts[:debug_return_type] || '
|
|
594
|
+
return_type = opts[:debug_return_type] || 'InlineObject18'
|
|
595
595
|
|
|
596
596
|
# auth_names
|
|
597
597
|
auth_names = opts[:debug_auth_names] || ['JSONWebTokenAuth']
|
|
@@ -613,6 +613,72 @@ module PDFGeneratorAPI
|
|
|
613
613
|
return data, status_code, headers
|
|
614
614
|
end
|
|
615
615
|
|
|
616
|
+
# Validate document signatures
|
|
617
|
+
# Reports on every digital signature a stored document carries: who signed, when a timestamp authority attested it, whether the signed bytes are unchanged and whether the certificate chains to a trusted root. Facts are reported separately from the verdict, because a reader and a validation library can disagree in both directions. `status` reduces them to one answer, worst case first. Each request consumes one credit. A request that reports `unavailable` — signature validation not being enabled on the deployment — validates nothing and is not charged.
|
|
618
|
+
# @param public_id [String] Resource public id
|
|
619
|
+
# @param [Hash] opts the optional parameters
|
|
620
|
+
# @option opts [String] :version Which stored version to report on. A version identifier reports on that version, `initial` on the document as first generated. Defaults to the latest version. A version is always reported on as itself: reporting the latest would describe bytes the caller is not holding.
|
|
621
|
+
# @return [InlineObject17]
|
|
622
|
+
def get_document_signatures(public_id, opts = {})
|
|
623
|
+
data, _status_code, _headers = get_document_signatures_with_http_info(public_id, opts)
|
|
624
|
+
data
|
|
625
|
+
end
|
|
626
|
+
|
|
627
|
+
# Validate document signatures
|
|
628
|
+
# Reports on every digital signature a stored document carries: who signed, when a timestamp authority attested it, whether the signed bytes are unchanged and whether the certificate chains to a trusted root. Facts are reported separately from the verdict, because a reader and a validation library can disagree in both directions. `status` reduces them to one answer, worst case first. Each request consumes one credit. A request that reports `unavailable` — signature validation not being enabled on the deployment — validates nothing and is not charged.
|
|
629
|
+
# @param public_id [String] Resource public id
|
|
630
|
+
# @param [Hash] opts the optional parameters
|
|
631
|
+
# @option opts [String] :version Which stored version to report on. A version identifier reports on that version, `initial` on the document as first generated. Defaults to the latest version. A version is always reported on as itself: reporting the latest would describe bytes the caller is not holding.
|
|
632
|
+
# @return [Array<(InlineObject17, Integer, Hash)>] InlineObject17 data, response status code and response headers
|
|
633
|
+
def get_document_signatures_with_http_info(public_id, opts = {})
|
|
634
|
+
if @api_client.config.debugging
|
|
635
|
+
@api_client.config.logger.debug 'Calling API: DocumentsApi.get_document_signatures ...'
|
|
636
|
+
end
|
|
637
|
+
# verify the required parameter 'public_id' is set
|
|
638
|
+
if @api_client.config.client_side_validation && public_id.nil?
|
|
639
|
+
fail ArgumentError, "Missing the required parameter 'public_id' when calling DocumentsApi.get_document_signatures"
|
|
640
|
+
end
|
|
641
|
+
# resource path
|
|
642
|
+
local_var_path = '/documents/{publicId}/signatures'.sub('{' + 'publicId' + '}', CGI.escape(public_id.to_s))
|
|
643
|
+
|
|
644
|
+
# query parameters
|
|
645
|
+
query_params = opts[:query_params] || {}
|
|
646
|
+
query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
|
|
647
|
+
|
|
648
|
+
# header parameters
|
|
649
|
+
header_params = opts[:header_params] || {}
|
|
650
|
+
# HTTP header 'Accept' (if needed)
|
|
651
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
652
|
+
|
|
653
|
+
# form parameters
|
|
654
|
+
form_params = opts[:form_params] || {}
|
|
655
|
+
|
|
656
|
+
# http body (model)
|
|
657
|
+
post_body = opts[:debug_body]
|
|
658
|
+
|
|
659
|
+
# return_type
|
|
660
|
+
return_type = opts[:debug_return_type] || 'InlineObject17'
|
|
661
|
+
|
|
662
|
+
# auth_names
|
|
663
|
+
auth_names = opts[:debug_auth_names] || ['JSONWebTokenAuth']
|
|
664
|
+
|
|
665
|
+
new_options = opts.merge(
|
|
666
|
+
:operation => :"DocumentsApi.get_document_signatures",
|
|
667
|
+
:header_params => header_params,
|
|
668
|
+
:query_params => query_params,
|
|
669
|
+
:form_params => form_params,
|
|
670
|
+
:body => post_body,
|
|
671
|
+
:auth_names => auth_names,
|
|
672
|
+
:return_type => return_type
|
|
673
|
+
)
|
|
674
|
+
|
|
675
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
676
|
+
if @api_client.config.debugging
|
|
677
|
+
@api_client.config.logger.debug "API called: DocumentsApi#get_document_signatures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
678
|
+
end
|
|
679
|
+
return data, status_code, headers
|
|
680
|
+
end
|
|
681
|
+
|
|
616
682
|
# Get document versions
|
|
617
683
|
# Returns a list of versions for a stored document
|
|
618
684
|
# @param public_id [String] Resource public id
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Introduction [PDF Generator API](https://pdfgeneratorapi.com) allows you easily generate transactional PDF documents and reduce the development and support costs by enabling your users to create and manage their document templates using a browser-based drag-and-drop document editor. The PDF Generator API features a web API architecture, allowing you to code in the language of your choice. This API supports the JSON media type, and uses UTF-8 character encoding. ## Base URL The base URL for all the API endpoints is `https://us1.pdfgeneratorapi.com/api/v4` For example * `https://us1.pdfgeneratorapi.com/api/v4/templates` * `https://us1.pdfgeneratorapi.com/api/v4/workspaces` * `https://us1.pdfgeneratorapi.com/api/v4/templates/123123` ## Editor PDF Generator API comes with a powerful drag & drop editor that allows to create any kind of document templates, from barcode labels to invoices, quotes and reports. You can find tutorials and videos from our [Support Portal](https://support.pdfgeneratorapi.com). * [Component specification](https://support.pdfgeneratorapi.com/en/category/components-1ffseaj/) * [Expression Language documentation](https://support.pdfgeneratorapi.com/en/category/expression-language-q203pa/) * [Frequently asked questions and answers](https://support.pdfgeneratorapi.com/en/category/qanda-1ov519d/) ## Definitions ### Organization Organization is a group of workspaces owned by your account. ### Workspace Workspace contains templates. Each workspace has access to their own templates and organization default templates. ### Master Workspace Master Workspace is the main/default workspace of your Organization. The Master Workspace identifier is the email you signed up with. ### Default Template Default template is a template that is available for all workspaces by default. You can set the template access type under Page Setup. If template has \"Organization\" access then your users can use them from the \"New\" menu in the Editor. ### Data Field Data Field is a placeholder for the specific data in your JSON data set. In this example JSON you can access the buyer name using Data Field `{paymentDetails::buyerName}`. The separator between depth levels is :: (two colons). When designing the template you don’t have to know every Data Field, our editor automatically extracts all the available fields from your data set and provides an easy way to insert them into the template. ``` { \"documentNumber\": 1, \"paymentDetails\": { \"method\": \"Credit Card\", \"buyerName\": \"John Smith\" }, \"items\": [ { \"id\": 1, \"name\": \"Item one\" } ] } ``` ## Rate limiting Our API endpoints use IP-based rate limiting and allow you to make up to 2 requests per second and 60 requests per minute. If you make more requests, you will receive a response with HTTP code 429. Response headers contain additional values: | Header | Description | |--------|--------------------------------| | X-RateLimit-Limit | Maximum requests per minute | | X-RateLimit-Remaining | The requests remaining in the current minute | | Retry-After | How many seconds you need to wait until you are allowed to make requests | * * * * * # Libraries and SDKs ## Postman Collection We have created a [Postman Collection](https://www.postman.com/pdfgeneratorapi/workspace/pdf-generator-api-public-workspace/overview) so you can easily test all the API endpoints without developing and code. ## Client Libraries All our Client Libraries are auto-generated using [OpenAPI Generator](https://openapi-generator.tech/) which uses the OpenAPI v3 specification to automatically generate a client library in specific programming language. * [PHP Client](https://github.com/pdfgeneratorapi/php-client) * [Java Client](https://github.com/pdfgeneratorapi/java-client) * [Ruby Client](https://github.com/pdfgeneratorapi/ruby-client) * [Python Client](https://github.com/pdfgeneratorapi/python-client) * [Javascript Client](https://github.com/pdfgeneratorapi/javascript-client) We have validated the generated libraries, but let us know if you find any anomalies in the client code. ## Model Context Protocol (MCP) Server Integrate document generation directly into your AI agents and LLM applications using our official Model Context Protocol (MCP) Server. The MCP server provides a standardized interface that allows AI assistants (like Claude Desktop and other MCP-compatible clients) to securely interact with the PDF Generator API. With it, your AI applications can automatically fetch workspaces, retrieve templates, merge data, and generate PDF documents on the fly. [Get PDF Generator API MCP Server](https://github.com/pdfgeneratorapi/mcp-server) * * * * * # Authentication The PDF Generator API uses __JSON Web Tokens (JWT)__ to authenticate all API requests. These tokens offer a method to establish secure server-to-server authentication by transferring a compact JSON object with a signed payload of your account’s API Key and Secret. When authenticating to the PDF Generator API, a JWT should be generated uniquely by a __server-side application__ and included as a __Bearer Token__ in the header of each request. <SecurityDefinitions /> ## Accessing your API Key and Secret You can find your __API Key__ and __API Secret__ from the __Account Settings__ page after you login to PDF Generator API [here](https://pdfgeneratorapi.com/login). ## Creating a JWT JSON Web Tokens are composed of three sections: a header, a payload (containing a claim set), and a signature. The header and payload are JSON objects, which are serialized to UTF-8 bytes, then encoded using base64url encoding. The JWT's header, payload, and signature are concatenated with periods (.). As a result, a JWT typically takes the following form: ``` {Base64url encoded header}.{Base64url encoded payload}.{Base64url encoded signature} ``` We recommend and support libraries provided on [jwt.io](https://jwt.io/). While other libraries can create JWT, these recommended libraries are the most robust. ### Header Property `alg` defines which signing algorithm is being used. PDF Generator API users HS256. Property `typ` defines the type of token and it is always JWT. ``` { \"alg\": \"HS256\", \"typ\": \"JWT\" } ``` ### Payload The second part of the token is the payload, which contains the claims or the pieces of information being passed about the user and any metadata required. It is mandatory to specify the following claims: * issuer (`iss`): Your API key * subject (`sub`): Workspace identifier * expiration time (`exp`): Timestamp (unix epoch time) until the token is valid. It is highly recommended to set the exp timestamp for a short period, i.e. a matter of seconds. This way, if a token is intercepted or shared, the token will only be valid for a short period of time. ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"exp\": 1586112639 } ``` ### Payload for Partners Our partners can send their unique identifier (provided by us) in JWT's partner_id claim. If the `partner_id` value is specified in the JWT, the organization making the request is automatically connected to the partner account. * Partner ID (`partner_id`): Unique identifier provide by PDF Generator API team ``` { \"iss\": \"ad54aaff89ffdfeff178bb8a8f359b29fcb20edb56250b9f584aa2cb0162ed4a\", \"sub\": \"demo.example@actualreports.com\", \"partner_id\": \"my-partner-identifier\", \"exp\": 1586112639 } ``` ### Signature To create the signature part you have to take the encoded header, the encoded payload, a secret, the algorithm specified in the header, and sign that. The signature is used to verify the message wasn't changed along the way, and, in the case of tokens signed with a private key, it can also verify that the sender of the JWT is who it says it is. ``` HMACSHA256( base64UrlEncode(header) + \".\" + base64UrlEncode(payload), API_SECRET) ``` ### Putting all together The output is three Base64-URL strings separated by dots. The following shows a JWT that has the previous header and payload encoded, and it is signed with a secret. ``` eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0.SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q // Base64 encoded header: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 // Base64 encoded payload: eyJpc3MiOiJhZDU0YWFmZjg5ZmZkZmVmZjE3OGJiOGE4ZjM1OWIyOWZjYjIwZWRiNTYyNTBiOWY1ODRhYTJjYjAxNjJlZDRhIiwic3ViIjoiZGVtby5leGFtcGxlQGFjdHVhbHJlcG9ydHMuY29tIn0 // Signature: SxO-H7UYYYsclS8RGWO1qf0z1cB1m73wF9FLl9RCc1Q ``` ## Temporary JWTs You can create a temporary token in [Account Settings](https://pdfgeneratorapi.com/account/organization) page after you login to PDF Generator API. The generated token uses your email address as the subject (`sub`) value and is valid for __15 minutes__. You can also use [jwt.io](https://jwt.io/) to generate test tokens for your API calls. These test tokens should never be used in production applications. * * * * * # Error codes | Code | Description | |--------|--------------------------------| | 401 | Unauthorized | | 402 | Payment Required | | 403 | Forbidden | | 404 | Not Found | | 422 | Unprocessable Entity | | 429 | Too Many Requests | | 500 | Internal Server Error | ## 401 Unauthorized | Description | |-------------------------------------------------------------------------| | Authentication failed: request expired | | Authentication failed: workspace missing | | Authentication failed: key missing | | Authentication failed: property 'iss' (issuer) missing in JWT | | Authentication failed: property 'sub' (subject) missing in JWT | | Authentication failed: property 'exp' (expiration time) missing in JWT | | Authentication failed: incorrect signature | ## 402 Payment Required | Description | |-------------------------------------------------------------------------| | Your account is suspended, please upgrade your account | ## 403 Forbidden | Description | |-------------------------------------------------------------------------| | Your account has exceeded the monthly document generation limit. | | Access not granted: You cannot delete master workspace via API | | Access not granted: Template is not accessible by this organization | | Your session has expired, please close and reopen the editor. | ## 404 Entity not found | Description | |-------------------------------------------------------------------------| | Entity not found | | Resource not found | | None of the templates is available for the workspace. | ## 422 Unprocessable Entity | Description | |-------------------------------------------------------------------------| | Unable to parse JSON, please check formatting | | Required parameter missing | | Required parameter missing: template definition not defined | | Required parameter missing: template not defined | ## 429 Too Many Requests | Description | |-------------------------------------------------------------------------| | You can make up to 2 requests per second and 60 requests per minute. | * * * * *
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 4.0.
|
|
6
|
+
The version of the OpenAPI document: 4.0.31
|
|
7
7
|
Contact: support@pdfgeneratorapi.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.14.0
|