snappy.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. | Timout:
  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' => '/usr/local/bin/wkhtmltopdf',
  36. 'binary' => base_path('vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64'),
  37. 'binary' => '"C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf"',
  38. 'timeout' => 3600,
  39. 'options' => [],
  40. 'env' => [],
  41. ],
  42. 'image' => [
  43. 'enabled' => true,
  44. 'binary' => '/usr/local/bin/wkhtmltoimage',
  45. 'timeout' => 3600,
  46. 'options' => [],
  47. 'env' => [],
  48. ],
  49. ];