HI,
I need export the text that I write in the CKEditor To PDF....
I first Send the text to My database and when I need to export to pdf y lookin for in my DB the text that I want....
I am using HTML2pdf but when I create the PDF my text has the HTML tags
I used some functions from PHP but doesn´t works....
My problem is this:
if I write in my code PHP this:
$text = "<p> ............................. </p>"; and using HTML2pdf .... this works
but when I do:
$result = mysql_query("SELECT * FROM Text where id='$id'",$link) or die(mysql_error());
$r_ok = mysql_fetch_array($result);
$text = $r_ok['mytext'];
I have a problem because in the PDF shows all the tags
i hope that you can help me thanks
Thu, 07/15/2010 - 22:57
#1
Re: EXPORT TO PDF
While I have not used HTML2PDF in a while, I wonder if the problem is one of the following:
- the lack of document start/end (etc) tags such as <html>, <body> etc.
- the lack of a script to convert various HTML entities back to their values - the important ones being < and > - or inotherwords < and >
Best,
Robert