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

dompdf set_base_path #10

Closed
stechnique opened this issue Oct 21, 2013 · 1 comment
Closed

dompdf set_base_path #10

stechnique opened this issue Oct 21, 2013 · 1 comment

Comments

@stechnique
Copy link

Hi,
Thanks for you package and use and love it. I've run into problems especially now that we are using Queues and building PDFs and mailing them from the artisan CLI, with relative PATHs. The fix was to use dompdf's ->set_base_path() method but I couldn't figure out where I could do that with your package so in PDF.php in your package, inside the init() function I added this call:
$this->dompdf = new \DOMPDF();
$this->dompdf->set_base_path(realpath(public_path())); //Mod by LP

If you think this makes sense for others you can add it, and this way mine doesn't break when I composer update to the next version ;)

barryvdh added a commit that referenced this issue Oct 22, 2013
As suggested in #10
@barryvdh
Copy link
Owner

I think I had something similar once, but it didn't make a difference for me. But makes sense for CLI. Added this in the commit above.

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

2 participants