214 lines
6.4 KiB
PHP
214 lines
6.4 KiB
PHP
<?php
|
|
|
|
return [
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| PDF Storage Path
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This value determines the path where uploaded PDFs will be stored.
|
|
| The path is relative to the storage directory.
|
|
|
|
|
*/
|
|
'storage_path' => 'pdfs',
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Temporary Storage Path
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This value determines the path where temporary PDFs will be stored
|
|
| during processing. The path is relative to the storage directory.
|
|
|
|
|
*/
|
|
'temp_path' => 'pdfs/temp',
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| PDF Processing Options
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| These options control how PDFs are processed and rendered.
|
|
|
|
|
*/
|
|
'processing' => [
|
|
'max_file_size' => 10 * 1024 * 1024, // 10MB
|
|
'allowed_extensions' => ['pdf'],
|
|
'use_web_workers' => true,
|
|
'cache_rendered_pages' => true,
|
|
'cache_ttl' => 60 * 24, // 24 hours
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Form Field Options
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| These options control the default properties for form fields.
|
|
|
|
|
*/
|
|
'form_fields' => [
|
|
'text' => [
|
|
'font_size' => 12,
|
|
'font_family' => 'Helvetica',
|
|
'color' => '#000000',
|
|
'multiline' => false,
|
|
],
|
|
'checkbox' => [
|
|
'size' => 12,
|
|
'checked_by_default' => false,
|
|
],
|
|
'radio' => [
|
|
'size' => 12,
|
|
'selected_by_default' => false,
|
|
],
|
|
'dropdown' => [
|
|
'font_size' => 12,
|
|
'font_family' => 'Helvetica',
|
|
],
|
|
'signature' => [
|
|
'width' => 200,
|
|
'height' => 50,
|
|
],
|
|
'date' => [
|
|
'format' => 'YYYY-MM-DD',
|
|
'font_size' => 12,
|
|
'font_family' => 'Helvetica',
|
|
],
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| eSignature Platform Compatibility
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| These options control compatibility with various eSignature platforms.
|
|
|
|
|
*/
|
|
'esignature_compatibility' => [
|
|
'docusign' => [
|
|
'enabled' => true,
|
|
'field_naming_convention' => 'docusign',
|
|
],
|
|
'adobe_sign' => [
|
|
'enabled' => true,
|
|
'field_naming_convention' => 'adobe',
|
|
],
|
|
'pandadoc' => [
|
|
'enabled' => true,
|
|
'field_naming_convention' => 'pandadoc',
|
|
],
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| UI Configuration
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Configure the UI elements of the PDF viewer and editor.
|
|
|
|
|
*/
|
|
'ui' => [
|
|
// Available zoom levels for the PDF viewer
|
|
'zoom_levels' => [0.5, 0.75, 1, 1.25, 1.5, 2],
|
|
|
|
// Default zoom level
|
|
'default_zoom' => 1,
|
|
|
|
// Show page thumbnails
|
|
'show_thumbnails' => true,
|
|
|
|
// Show toolbar
|
|
'show_toolbar' => true,
|
|
|
|
// Show sidebar
|
|
'show_sidebar' => true,
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Form Field Types
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Configure the available form field types.
|
|
|
|
|
*/
|
|
'field_types' => [
|
|
'text' => [
|
|
'label' => 'Text Field',
|
|
'icon' => 'text-field',
|
|
'properties' => [
|
|
'font_size' => 12,
|
|
'font_family' => 'Helvetica',
|
|
'text_color' => '#000000',
|
|
'background_color' => '#FFFFFF',
|
|
'border_color' => '#000000',
|
|
'border_width' => 1,
|
|
'border_style' => 'solid',
|
|
'placeholder' => '',
|
|
'max_length' => null,
|
|
],
|
|
],
|
|
'checkbox' => [
|
|
'label' => 'Checkbox',
|
|
'icon' => 'checkbox',
|
|
'properties' => [
|
|
'checked' => false,
|
|
'background_color' => '#FFFFFF',
|
|
'border_color' => '#000000',
|
|
'border_width' => 1,
|
|
'border_style' => 'solid',
|
|
],
|
|
],
|
|
'radio' => [
|
|
'label' => 'Radio Button',
|
|
'icon' => 'radio',
|
|
'properties' => [
|
|
'checked' => false,
|
|
'background_color' => '#FFFFFF',
|
|
'border_color' => '#000000',
|
|
'border_width' => 1,
|
|
'border_style' => 'solid',
|
|
],
|
|
],
|
|
'dropdown' => [
|
|
'label' => 'Dropdown',
|
|
'icon' => 'dropdown',
|
|
'properties' => [
|
|
'options' => [],
|
|
'selected' => null,
|
|
'font_size' => 12,
|
|
'font_family' => 'Helvetica',
|
|
'text_color' => '#000000',
|
|
'background_color' => '#FFFFFF',
|
|
'border_color' => '#000000',
|
|
'border_width' => 1,
|
|
'border_style' => 'solid',
|
|
],
|
|
],
|
|
'signature' => [
|
|
'label' => 'Signature',
|
|
'icon' => 'signature',
|
|
'properties' => [
|
|
'background_color' => '#FFFFFF',
|
|
'border_color' => '#000000',
|
|
'border_width' => 1,
|
|
'border_style' => 'solid',
|
|
],
|
|
],
|
|
'date' => [
|
|
'label' => 'Date',
|
|
'icon' => 'date',
|
|
'properties' => [
|
|
'format' => 'YYYY-MM-DD',
|
|
'font_size' => 12,
|
|
'font_family' => 'Helvetica',
|
|
'text_color' => '#000000',
|
|
'background_color' => '#FFFFFF',
|
|
'border_color' => '#000000',
|
|
'border_width' => 1,
|
|
'border_style' => 'solid',
|
|
],
|
|
],
|
|
],
|
|
];
|