Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Problem to output PDF in Symfony 4 #399
Here's my code :
Class CustomTDB :
The request is send by AJAX, that way :
testpdf.html is a copy/paste of example00
I've tired a loooot of things without any result, so if you had an idea, I'll be glad to read it ^^"
You don't need tu use buffer with html page, juste juse file_get_contents.
Debug will be easier.
Try this kind of code with html file, it works fine for me
if you use twig, create a template, use twig service's createTemplate method, and render the template with your data.
if your problem is still here, you've got probably a wrong html format (unclosed tag for exemple).