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
Constant DOMPDF_ENABLE_REMOTE already defined #4
Comments
Should be fixed in dev-master. |
Also, do you use the facade or do you instantiate a new PDF object? I thought this issue didn't occur when using the facade, but not really sure. |
Actually I hadn't tried using the facade - I was using $pdf = new PDF(); If you want I can try it, but I see you've "fixed" it already so perhaps there's no point now! Thanks for such a fast response. Much appreciated. |
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Barry,
I have probably a fairly unique case here, but I've come up against an issue with this great wrapper for dompdf.
I have some code, that creates a very small pdf using the loadHTML method.
Later on the code needs to call itself again with new variables and tries ones again to create a new Dompdf object and then loadHTML.
On this SECOND attempt of instantiating DOMPDF, I get the above error concerning the already defined constants.
The issue I see is in
/barryvdh/laravel-dompdf/src/Barryvdh/DomPDF/PDF.php
If I do a test before defining the constants, everything works perfectly.
Would there be any chance of an update to your code so I could update reliably in the future?
Many thanks sir.
The text was updated successfully, but these errors were encountered: