Jump to content


Photo

convert html tags to pdflib code


  • Please log in to reply
1 reply to this topic

#1 johnnyhaff

johnnyhaff

    Newbie

  • New Members
  • Pip
  • 1 posts

Posted 08 February 2013 - 03: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

avidev

    Newbie

  • New Members
  • Pip
  • 1 posts

Posted 19 February 2013 - 03:14 AM

Hi,
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

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com