elibyy / tcpdf-laravel

TCPDF helper for laravel
MIT License
311 stars 74 forks source link

FPDI on Lumen #65

Open mmartinello opened 6 years ago

mmartinello commented 6 years ago

Hi @elibyy, I need to use FPDI with TCPDF on Lumen. I installed FPDI with Composer, and created the file config/tcpdf.php. I setup use_fpdi = true but the configuration seems to be false:

$ php artisan tinker
Psy Shell v0.9.6 (PHP 7.1.14 — cli) by Justin Hileman
New version is available (current: v0.9.6, latest: v0.9.8)
>>> >>> var_dump(config('tcpdf'));
array(11) {
  ["page_format"]=>
  string(2) "A4"
  ["page_orientation"]=>
  string(1) "P"
  ["page_units"]=>
  string(2) "mm"
  ["unicode"]=>
  bool(true)
  ["encoding"]=>
  string(5) "UTF-8"
  ["font_directory"]=>
  string(0) ""
  ["image_directory"]=>
  string(0) ""
  ["tcpdf_throw_exception"]=>
  bool(false)
  ["use_fpdi"]=>
  bool(false)
  ["use_original_header"]=>
  bool(false)
  ["use_original_footer"]=>
  bool(false)
}
=> null
>>>

Where I am wrong?

bcreeves commented 5 years ago

Try clearing your config cache. php artisan config:clear

thigas88 commented 3 years ago

How to use FPDI to import PDF pages?