This is an archived forum post. The information may be outdated. Contact us if you have any
Convert PHP file to PDF
wrote on 2013-07-17:
I am very amazed by your api. But I seem to be having a problem. I have a php file that includes a php variable array which I use in html divs to display an invoice template. Now I want convert that to pdf. I am failing at that.
First I have to put the script code on the top as the headers must be sent first. I used all the functions to get the pdf but what I get is a pdf with non php variable data. or errors. Can you please help. or post a sample of php code which can be converted to pdf. THanks a million