選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

snappy.php 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Snappy PDF / Image Configuration
  6. |--------------------------------------------------------------------------
  7. |
  8. | This option contains settings for PDF generation.
  9. |
  10. | Enabled:
  11. |
  12. | Whether to load PDF / Image generation.
  13. |
  14. | Binary:
  15. |
  16. | The file path of the wkhtmltopdf / wkhtmltoimage executable.
  17. |
  18. | Timeout:
  19. |
  20. | The amount of time to wait (in seconds) before PDF / Image generation is stopped.
  21. | Setting this to false disables the timeout (unlimited processing time).
  22. |
  23. | Options:
  24. |
  25. | The wkhtmltopdf command options. These are passed directly to wkhtmltopdf.
  26. | See https://wkhtmltopdf.org/usage/wkhtmltopdf.txt for all options.
  27. |
  28. | Env:
  29. |
  30. | The environment variables to set while running the wkhtmltopdf process.
  31. |
  32. */
  33. 'pdf' => [
  34. 'enabled' => true,
  35. 'binary' => env('WKHTMLTOPDF_BINARY', '/usr/local/bin/wkhtmltopdf'),
  36. 'timeout' => false,
  37. 'options' => [
  38. 'no-pdf-compression' => true,
  39. 'disable-javascript' => true,
  40. 'margin-top' => '10mm',
  41. 'margin-right' => '7.5mm',
  42. 'margin-bottom' => '15mm',
  43. 'margin-left' => '7.5mm',
  44. 'page-size' => 'Letter',
  45. 'footer-right' => 'Page [page] / [toPage]',
  46. 'footer-font-size' => '8',
  47. 'footer-spacing' => '5',
  48. 'zoom' => '1.3',
  49. ],
  50. 'env' => [],
  51. ],
  52. 'image' => [
  53. 'enabled' => true,
  54. 'binary' => env('WKHTMLTOIMAGE_BINARY', '/usr/local/bin/wkhtmltoimage'),
  55. 'timeout' => false,
  56. 'options' => [],
  57. 'env' => [],
  58. ],
  59. ];