Your Ad Here

HTML To PDF with HTML2FPDF


This code in PHP to produce HTML To PDF. With HTML To PDF you will be easier to manage your code.

You can download the source code here :

HTML TO PDF

<?
function Input($nama,$asal,$memo,$link)
{
$HTML =

<HTML>
<BODY>
<TABLE BORDER=\”1\” WIDHT=\”700\”>
<TR><TD BGCOLOR=\”#00FF00\”><B>Name</B></TD><TD WIDTH=\”240\”>$nama</TD></TR>
<TR><TD BGCOLOR=\”#FF0000\”><B>From</B></TD><TD>$asal</TD></TR>
<TR><TD BGCOLOR=\”#123456\”><B>Web</B></TD><TD><A href=\”$link\”><I><U>$link</U></I></A></TD></TR>
<TR><TD VALIGN=\”TOP\” BGCOLOR=\”#0000FF\”><B>About</B></TD><TD>$memo</TD></TR>
<TR><TD BGCOLOR=\”#654321\”><B>Picture</B></TD><TD><IMG src=\”test.jpg\”></TD></TR>
</TABLE>

</BODY>
</HTML>
“;
return $HTML;
}
$HTML = Input(”gunungpring”,”indonesia”,”Web Site<BR>about<BR>PHP Programming and PHP Tips Trik For Beginner”,”http://www.gunungpring.com“);

require_once(”html2fpdf\html2fpdf.php”);
$myPDF = new HTML2FPDF();
$myPDF->HTML2FPDF(”P”,”mm”,”A4″);
$myPDF->AddPage();

$myPDF->WriteHTML($HTML);
$myPDF->Output();

?>

You can download the source code here :

HTML TO PDF







People are coming into this page using keywords :  bgcolor,  HTML2FPDF table with image,  html2fpdf korean,  php html2fpdf table ,  html2fpdf php css
This keyword are get by search engine terms.
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon
  • Furl


Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.

*
To prove that you're not a bot, enter this code
Anti-Spam Image