| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/client-portal-laravel/releases/20260626120707/config/ |
Upload File : |
<?php
declare(strict_types=1);
return [
/*
|--------------------------------------------------------------------------
| Default PDF Driver
|--------------------------------------------------------------------------
|
| This option controls the default PDF generation driver that will be used
| by the application. DomPDF is the default, but you can configure
| wkhtmltopdf or puppeteer if installed on your system.
|
*/
'driver' => env('PDF_DRIVER', 'dompdf'),
/*
|--------------------------------------------------------------------------
| PDF Drivers Configuration
|--------------------------------------------------------------------------
|
| Configure each available PDF driver here. The options will be passed
| to the respective PDF library when generating documents.
|
*/
'drivers' => [
'dompdf' => [
'options' => [
'isHtml5ParserEnabled' => true,
'isRemoteEnabled' => true,
'defaultFont' => 'DejaVu Sans',
'dpi' => 150,
'isPhpEnabled' => false,
'isFontSubsettingEnabled' => true,
],
],
'wkhtmltopdf' => [
'binary' => env('WKHTMLTOPDF_PATH', '/usr/local/bin/wkhtmltopdf'),
'options' => [
'print-media-type' => true,
'enable-local-file-access' => true,
'encoding' => 'UTF-8',
],
],
'puppeteer' => [
'node_path' => env('NODE_PATH', '/usr/bin/node'),
'options' => [
'format' => 'A4',
'printBackground' => true,
],
],
],
/*
|--------------------------------------------------------------------------
| Custom Fonts Configuration
|--------------------------------------------------------------------------
|
| Configure how custom fonts are handled. Fonts are stored in the
| specified path and validated against allowed types and size limits.
|
*/
'fonts' => [
'path' => storage_path('app/fonts'),
'allowed_types' => ['ttf', 'otf', 'woff'],
'max_size' => 5 * 1024 * 1024, // 5MB
],
/*
|--------------------------------------------------------------------------
| Default Layout Settings
|--------------------------------------------------------------------------
|
| These are the default layout settings used when generating PDFs.
| Individual templates can override these settings.
|
*/
'defaults' => [
'page_size' => 'letter',
'orientation' => 'portrait',
'margins' => [
'top' => 25,
'right' => 20,
'bottom' => 25,
'left' => 20,
],
'dpi' => 150,
],
/*
|--------------------------------------------------------------------------
| Default Typography Settings
|--------------------------------------------------------------------------
|
| Default font and typography settings for PDF generation.
|
*/
'typography' => [
'font_family' => 'DejaVu Sans',
'font_size' => 12,
'line_height' => 1.5,
'heading_font_family' => null, // null uses same as font_family
'heading_scale' => 1.25,
],
/*
|--------------------------------------------------------------------------
| Default Color Scheme
|--------------------------------------------------------------------------
|
| Default colors used in PDF generation. Templates can override these.
|
*/
'colors' => [
'primary' => '#3B82F6',
'secondary' => '#1E40AF',
'text' => '#111827',
'muted' => '#6B7280',
'border' => '#E5E7EB',
'background' => '#FFFFFF',
'link' => '#2563EB',
],
/*
|--------------------------------------------------------------------------
| Component Types
|--------------------------------------------------------------------------
|
| Available types for PDF components. These are used for categorization
| and filtering in the admin interface.
|
*/
'component_types' => [
'header' => 'Header',
'footer' => 'Footer',
'letterhead' => 'Letterhead',
'signature' => 'Signature Block',
'table' => 'Table',
'terms' => 'Terms & Conditions',
'watermark' => 'Watermark',
'divider' => 'Divider/Separator',
'callout' => 'Callout Box',
'custom' => 'Custom',
],
/*
|--------------------------------------------------------------------------
| Component Categories
|--------------------------------------------------------------------------
|
| Categories for organizing PDF components in the admin interface.
|
*/
'component_categories' => [
'branding' => 'Branding',
'legal' => 'Legal',
'formatting' => 'Formatting',
'data' => 'Data Display',
'decorative' => 'Decorative',
],
];