I am trying to extract the table from database and trying to open it in .pdf-file, but i am facing problem in opening to it in .pdf-file , when i am trying it prompt a message which is given below,
“Acrobat could not open “Report.pdf” because it is either not a
supported file type or because the file has been damaged (for example,
it was sent as an eamil attachment and wasnt correctly decoded).To create an adobe PDF document,go to the source application. then
print the document to Adobe PDF.”
Generating a pdf file in php can be difficult. http://www.fpdf.org/ seems to be recommended, but i have never used it. Otherwise, please post some code as a lot of the PHP pdf functions are depreciated http://php.net/manual/en/ref.pdf.php