Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

laravel-merge-pdfs #32

Open
utterances-bot opened this issue Dec 19, 2020 · 5 comments
Open

laravel-merge-pdfs #32

utterances-bot opened this issue Dec 19, 2020 · 5 comments

Comments

@utterances-bot
Copy link

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

Copy link

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
Copy link
Owner

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

Copy link

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

Copy link

Amazing tutorial David, thank you!

Copy link

ghost commented May 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants