Jump to content


convert html tags to pdflib code

  • Please log in to reply
1 reply to this topic

#1 johnnyhaff



  • New Members
  • Pip
  • 1 posts

Posted 08 February 2013 - 08:06 PM

I'm trying to parse html tags in php from a tinymce textarea into code that i can use to output on a pdflib document.

for example i have the following html code being passed from my form:
<p><strong>asdfasdf </strong><em>test&nbsp; </em><span style="text-decoration: underline;">undderline</span>&nbsp;<strong> </strong><span style="text-decoration: underline;"><strong>bold&amp; underline</strong></span></p>

and i'd like to generate code for pdflib such that the formatting stays the same when output to pdflib?

#2 avidev



  • New Members
  • Pip
  • 1 posts

Posted 19 February 2013 - 08:14 AM

use the class fpdf.php extending the class you can change the property values ....
and the formatting issue defintely it will work when you generate the pdf file

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users