dcblogdev / dcblogcomments

2 stars 0 forks source link

laravel-merge-pdfs #32

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Laravel Merge PDFs - DC Blog

Ever needed to merge multiple PDF's together? It's a common need. In this tutorial, I'...

https://dcblog.dev/laravel-merge-pdfs

ThorinEk commented 3 years ago

Hello! Thanks for a great guide, I just have one problem, I am getting the error: https://paste.ubuntu.com/p/TtmjhhzDXg/

What could be causing this error? I can not find any file called Facade.php or similiar, perhaps something like that is missing? I also know that I am not doing this in a laravel project since I don't understand what Laravel is or how to add it to my existing code project.

dcblogdev commented 3 years ago

okay so the issue is these packages rely on Laravel and internally use classes like Facade's they won't work out side of Laravel.

This library may work, I haven't used it https://github.com/hanneskod/libmergepdf

ThorinEk commented 3 years ago

Thanks a lot for the quick answer! The library you linked worked perfectly! :-)

marksousa commented 3 years ago

Amazing tutorial David, thank you!

ghost commented 3 years ago

Hello. Installs ok. Copied the code but when I get to the $pdfMerger->merge() I get an error of array to string conversion error. It happens on line 938 or tcpdi_parser.php I am using laravel 7.3 and PHP 7.3 Thanks Neil