I have researched this question on stackoverflow, but I'm confused by the answers. I've created an application in php that produces a report. I'd like for the report to be created as a pdf on a button push.
Using google chrome and firefox manually to 'file>print as pdf' renders the text of the report generated by my php script, but doesn't produce any of the colours.
Is there a relatively simple way to do this without apis, to take exactly what appears in the browser, and create a pdf of it? If there is, could somebody please tell me how?
Thank you.