dompdf.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. return array(
  3. 'show_warnings' => false,
  4. 'public_path' => null,
  5. 'convert_entities' => true,
  6. 'options' => array(
  7. "font_dir" => storage_path('fonts'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782)
  8. "font_cache" => storage_path('fonts'),
  9. "temp_dir" => sys_get_temp_dir(),
  10. "chroot" => realpath(base_path()),
  11. 'allowed_protocols' => [
  12. "file://" => ["rules" => []],
  13. "http://" => ["rules" => []],
  14. "https://" => ["rules" => []]
  15. ],
  16. 'log_output_file' => storage_path('logs/logs.log'),
  17. "enable_font_subsetting" => false,
  18. //"DOMPDF_PDFLIB_LICENSE" => "your license key here",
  19. "default_media_type" => "all",
  20. "default_paper_size" => "a3",
  21. 'default_paper_orientation' => "portrait",
  22. "default_font" => "",
  23. "dpi" => 96,
  24. "enable_php" => false,
  25. "enable_javascript" => true,
  26. "enable_remote" => true,
  27. "enable_html5_parser" => true,
  28. "default_font_size" => 12,
  29. "font_height_ratio" => 1.1,
  30. "font_weight_ratio" => 0.9,
  31. ),
  32. );