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
Undefined array key "" #3384
Comments
Those should never be empty, what does your code look like on the PHP side of things? |
I have no idea why are those empty... A note - i am using https://github.com/barryvdh/laravel-dompdf but the error comes from dompdf/dompdf library. |
I'm not a laravel user, so you might ask on that project. Perhaps you need to update the fontDir configuration? |
I tried, but with no luck. |
What is layouts.pdf? Is that a PDF document or a Laravel blade template that just happens to have .pdf in its name? |
When i try to output my pdf i get "Undefined array key ''" on line 4752 in dompdf\dompdf\lib\Cpdf.php. That particular line of code is:
$font = $this->fonts[$this->currentFont];
Both $this->fonts and $this->currentFont are empty. Why is this happening and how can i fix it?
The text was updated successfully, but these errors were encountered: