HTML to PDF conversion not correctly display [on hold]











up vote
0
down vote

favorite












Sir i am using html2pdf and fpdf library in php to write my whole html code to pdf format.but now i am successfully create pdf file with name but when i open that file nothing display.please see the image enter image description here



my whole code are



    $stringData = "<?xml version='1.0' encoding='iso-8859-1'?>
<!DOCTYPE HTML PUBLIC '-//W3C//Dtd HTML 4.01//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<HEAD>
<META http-equiv='Content-Type' content='text/html; charset=UTF-8'>
<META http-equiv='X-UA-Compatible' content='IE=8'>
<TITLE>Invoice</TITLE>
<META name='generator' content='BCL easyConverter SDK 5.0.101'>
<style type='text/css'>

body {margin-top: 0px;margin-left: 0px;}

#page_1 {position:relative; overflow: hidden;margin: 0px auto;padding: 0px;border: none;width: 794px;height: 2353px;}
#page_1 #id_1 {
margin: 0px 0px 0px 45px;
padding: 0px;
width: 741px;
overflow: hidden;
border: solid 1px #000;
padding-top: 130px;
}
#page_1 #id_2 {border:none;margin: 331px 0px 0px 4px;padding: 0px;border:none;width: 790px;overflow: hidden;}

#page_1 #p1dimg1 {position:absolute;top:0px;left:0px;z-index:-1;width:794px;height:2353px;}
#page_1 #p1dimg1 #p1img1 {width:832px;height:auto;}
td.tr7.td25.Date_formt {
border-top: solid 1px;
position: relative;
}
.p12{text-align: right;padding-right: 8px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p13{text-align: right;padding-right: 5px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p14{text-align: left;padding-left: 28px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p15{text-align: right;padding-right: 6px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p16{text-align: left;padding-left: 35px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p17{text-align: left;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p18{text-align: left;padding-left: 30px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p19{text-align: right;padding-right: 29px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p20{text-align: left;padding-left: 15px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p21{text-align: right;padding-right: 7px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p22{text-align: right;padding-right: 27px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p23{text-align: left;padding-left: 126px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p24{text-align: center;padding-right: 1px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p25{text-align: left;padding-left: 57px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
.p26{text-align: left;padding-left: 6px;margin-top: 32px;margin-bottom: 0px;}
.p27{text-align: justify;padding-left: 6px;padding-right: 51px;margin-top: 0px;margin-bottom: 0px;}
.p28{text-align: left;margin-top: 0px;margin-bottom: 0px;}

.td0{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 44px;vertical-align: bottom;}
.td1{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 3px;vertical-align: bottom;}
.td2{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 86px;vertical-align: bottom;}
.td3{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 32px;vertical-align: bottom;}
.td4{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 41px;vertical-align: bottom;}
.td5{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 60px;vertical-align: bottom;}
.td6{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 27px;vertical-align: bottom;}
.td7{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 127px;vertical-align: bottom;}
.td8{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 286px;vertical-align: bottom;}
.td9{padding: 0px;margin: 0px;width: 362px;vertical-align: bottom;}
.td10{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 57px;vertical-align: bottom;}
.td11{padding: 0px;margin: 0px;width: 85px;vertical-align: bottom;}
.td12{padding: 0px;margin: 0px;width: 40px;vertical-align: bottom;}
.td13{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 17px;vertical-align: bottom;}
.td14{padding: 0px;margin: 0px;width: 143px;vertical-align: bottom;}
.td15{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 85px;vertical-align: bottom;}
.td16{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 40px;vertical-align: bottom;}
.td17{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 17px;vertical-align: bottom;}
.td18{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 140px;vertical-align: bottom;}
.td19{padding: 0px;margin: 0px;width: 3px;vertical-align: bottom;}
.td20{padding: 0px;margin: 0px;width: 165px;vertical-align: bottom;}
.td21{padding: 0px;margin: 0px;width: 41px;vertical-align: bottom;}
.td22{padding: 0px;margin: 0px;width: 60px;vertical-align: bottom;}
.td23{padding: 0px;margin: 0px;width: 27px;vertical-align: bottom;}
.td24{padding: 0px;margin: 0px;width: 69px;vertical-align: bottom;}
.td25{padding: 0px;margin: 0px;width: 125px;vertical-align: bottom;}
.td26{padding: 0px;margin: 0px;width: 206px;vertical-align: bottom;}
.td27{padding: 0px;margin: 0px;width: 140px;vertical-align: bottom;}
.td28{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 69px;vertical-align: bottom;}
.td29{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 57px;vertical-align: bottom;}
.td30{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 142px;vertical-align: bottom;}
.td31{padding: 0px;margin: 0px;width: 44px;vertical-align: bottom;}
.td32{padding: 0px;margin: 0px;width: 86px;vertical-align: bottom;}
.td33{padding: 0px;margin: 0px;width: 32px;vertical-align: bottom;}
.td34{padding: 0px;margin: 0px;width: 286px;vertical-align: bottom;}
.td35{padding: 0px;margin: 0px;width: 201px;vertical-align: bottom;}
.td36{padding: 0px;margin: 0px;width: 198px;vertical-align: bottom;}
.td37{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 161px;vertical-align: bottom;}
.td38{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 2px;vertical-align: bottom;}
.td39{padding: 0px;margin: 0px;width: 118px;vertical-align: bottom;}
.td40{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 26px;vertical-align: bottom;}
.td41{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 68px;vertical-align: bottom;}
.td42{padding: 0px;margin: 0px;width: 161px;vertical-align: bottom;}
.td43{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 2px;vertical-align: bottom;}
.td44{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 26px;vertical-align: bottom;}
.td45{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 68px;vertical-align: bottom;}
.td46{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 18px;vertical-align: bottom;}
.td47{padding: 0px;margin: 0px;width: 18px;vertical-align: bottom;}
.td48{padding: 0px;margin: 0px;width: 159px;vertical-align: bottom;}
.td49{padding: 0px;margin: 0px;width: 158px;vertical-align: bottom;}
.td50{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 159px;vertical-align: bottom;}
.td51{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 159px;vertical-align: bottom;}
.td52{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 143px;vertical-align: bottom;}
.td53{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 86px;vertical-align: bottom;}
.td54{padding: 0px;margin: 0px;width: 58px;vertical-align: bottom;}
.td55{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 505px;vertical-align: bottom;}
.td56{border-left: #000000 1px solid;padding: 0px;margin: 0px;width: 43px;vertical-align: bottom;}
.td57{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 88px;vertical-align: bottom;}
.td58{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 100px;vertical-align: bottom;}
.td59{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 58px;vertical-align: bottom;}
.td60{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 125px;vertical-align: bottom;}
.td61{border-left: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 43px;vertical-align: bottom;}
.td62{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 85px;vertical-align: bottom;}
.td63{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 59px;vertical-align: bottom;}
.td64{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 89px;vertical-align: bottom;}
.td65{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 158px;vertical-align: bottom;}
.td66{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 118px;vertical-align: bottom;}
.td67{border-left: #000000 1px solid;padding: 0px;margin: 0px;width: 164px;vertical-align: bottom;}
.td68{border-left: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 419px;vertical-align: bottom;}
.td69{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 59px;vertical-align: bottom;}
.td70{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 412px;vertical-align: bottom;}
.td71{border-left: #000000 1px solid;border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 264px;vertical-align: bottom;}
.td72{padding: 0px;margin: 0px;width: 96px;vertical-align: bottom;}

.tr0{height: 21px;}
.tr1{height: 15px;}
.tr2{height: 13px;}
.tr3{height: 11px;}
.tr4{height: 5px;}
.tr5{height: 4px;}
.tr6{height: 6px;}
.tr7{height: 12px;}
.tr8{height: 7px;}
.tr9{height: 14px;}
.tr10{height: 9px;}
.tr11{height: 3px;}
.tr12{height: 23px;}
.tr13{height: 8px;font-size: 13px;}
.tr14{height: 16px;}
.tr15{height: 2px;}
.tr16{height: 25px;}
.tr17{height: 22px;}
.tr18{height: 17px;}
.tr19{height: 19px;}
.tr20{height: 10px;}

.t0{width: 706px;font: 11px 'Arial';}

</style>
</HEAD>

<body>
<div id='page_1'>
<div id='p1dimg1'>
<img src=". base_url()."scripts/images/bg.jpg id='p1img1'></div>


<div class='dclr'></div>
<div id='id_1'>
<table cellpadding='0' cellspacing='0' class='t0'>
<tr>
<td class='tr0 td0'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr0 td1'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr0 td2'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr0 td3'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr0 td4'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr0 td5'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr0 td6'><P class='p0 ft0'>&nbsp;</P></td>
<td colspan=2 class='tr0 td7'><P class='p1 ft1'>Tax Invoice</P></td>
<td colspan=5 class='tr0 td8'><P class='p2 ft1'></P></td>
</tr>
<tr>
<td colspan=8 class='tr1 td9'><P class='p3 ft2'>dgdsgdg</P></td>
<td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr1 td11'><P class='p4 ft3'>Invoice No.</P></td>
<td class='tr1 td12'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr1 td13'><P class='p0 ft0'>&nbsp;</P></td>
<td colspan=2 class='tr1 td14'><P class='p5 ft3'>Date</P></td>
</tr>
<tr>
<td colspan=8 class='tr2 td9'><P class='p6 ft4'>gdgdgdg</P></td>
<td class='tr2 td10'><P class='p0 ft5'>&nbsp;</P></td>
<td class='tr2 td11'><P class='p6 pl-1 ft4'></P>".htmlspecialchars($update_invoice)."</td>
<td class='tr2 td12'><P class='p0 ft5'>&nbsp;</P></td>
<td class='tr2 td13'><P class='p0 ft5'>&nbsp;</P></td>
<td colspan=2 class='tr2 td14'><P class='p5 ft6'><NOBR> ". htmlspecialchars((date('d/m/Y')))."</NOBR></P></td>
</tr>
<tr>
<td colspan=8 rowspan=2 class='tr3 td9'><P class='p7 ft7'>hdfhdfh</P></td>
<td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
<td class='tr5 td15'><P class='p0 ft9'>&nbsp;</P></td>
<td class='tr5 td16'><P class='p0 ft9'>&nbsp;</P></td>
<td class='tr5 td17'><P class='p0 ft9'>&nbsp;</P></td>
<td class='tr5 td18'><P class='p0 ft9'>&nbsp;</P></td>
<td class='tr4 td19'><P class='p0 ft8'>&nbsp;</P></td>
</tr>
<tr>
<td class='tr6 td10'><P class='p0 ft10'>&nbsp;</P></td>
<td class='tr6 td11'><P class='p0 ft10'>&nbsp;</P></td>
<td class='tr6 td12'><P class='p0 ft10'>&nbsp;</P></td>
<td class='tr6 td13'><P class='p0 ft10'>&nbsp;</P></td>
<td colspan=2 rowspan=2 class='tr2 td14'><P class='p5 ft4'>Mode/Terms of Payment</P></td>
</tr>
<tr>
<td colspan=4 rowspan=2 class='tr7 td20'><P class='p7 ft11'>gty</P></td>
<td class='tr8 td21'><P class='p0 ft12'>&nbsp;</P></td>
<td class='tr8 td22'><P class='p0 ft12'>&nbsp;</P></td>
<td class='tr8 td23'><P class='p0 ft12'>&nbsp;</P></td>
<td class='tr8 td24'><P class='p0 ft12'>&nbsp;</P></td>
<td class='tr8 td10'><P class='p0 ft12'>&nbsp;</P></td>
<td colspan=2 rowspan=2 class='tr7 td25'><P class='p4 ft11'>Other References(s)</P></td>
<td class='tr8 td13'><P class='p0 ft12'>&nbsp;</P></td>
</tr>
<tr>
<td class='tr4 td21'><P class='p0 ft8'>&nbsp;</P></td>
<td class='tr4 td22'><P class='p0 ft8'>&nbsp;</P></td>
<td class='tr4 td23'><P class='p0 ft8'>&nbsp;</P></td>
<td class='tr4 td24'><P class='p0 ft8'>&nbsp;</P></td>
<td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
<td class='tr4 td13'><P class='p0 ft8'>&nbsp;</P></td>
<td colspan=2 rowspan=2 class='tr9 td14'><P class='p5 ft13'><NOBR>Cheque/Online</NOBR></P></td>
</tr>

<tr>
<td colspan=8 rowspan=2 class='tr3 td9'><P class='p7 ft7'>jghjj</P></td>
<td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
<td class='tr5 td15'><P class='p0 ft9'>&nbsp;</P></td>
<td class='tr5 td16'><P class='p0 ft9'>&nbsp;</P></td>
<td class='tr5 td17'><P class='p0 ft9'>&nbsp;</P></td>
<td class='tr5 td18'><P class='p0 ft9'>&nbsp;</P></td>
<td class='tr4 td19'><P class='p0 ft8'>&nbsp;</P></td>
</tr>
<tr>
<td class='tr6 td10'><P class='p0 ft10'>&nbsp;</P></td>
<td class='tr6 td11'><P class='p0 ft10'>&nbsp;</P></td>
<td class='tr6 td12'><P class='p0 ft10'>&nbsp;</P></td>
<td class='tr6 td13'><P class='p0 ft10'>&nbsp;</P></td>
<td colspan=2 rowspan=2 class='tr7 td25 Date_formt'><P class='p4 ft11 '>". htmlspecialchars(date('d/m/Y', strtotime('+7 days')))."</P></td>

</tr>
<tr>
<td colspan=4 rowspan=2 class='tr7 td20'><P class='p7 ft11'><NOBR>fgt</P></td>
<td class='tr8 td21'><P class='p0 ft12'>&nbsp;</P></td>
<td class='tr8 td22'><P class='p0 ft12'>&nbsp;</P></td>
<td class='tr8 td23'><P class='p0 ft12'>&nbsp;</P></td>
<td class='tr8 td24'><P class='p0 ft12'>&nbsp;</P></td>
<td class='tr8 td10'><P class='p0 ft12'>&nbsp;</P></td>
<td colspan=2 rowspan=2 class='tr7 td25'><P class='p4 ft11'>Due Date</P></td>
<td class='tr8 td13'><P class='p0 ft12'>&nbsp;</P></td>
</tr>
<tr>
<td class='tr4 td21'><P class='p0 ft8'>&nbsp;</P></td>
<td class='tr4 td22'><P class='p0 ft8'>&nbsp;</P></td>
<td class='tr4 td23'><P class='p0 ft8'>&nbsp;</P></td>
<td class='tr4 td24'><P class='p0 ft8'>&nbsp;</P></td>
<td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
<td class='tr4 td13'><P class='p0 ft8'>&nbsp;</P></td>

</tr>

<tr>
<td colspan=4 rowspan=2 class='tr2 td20'><P class='p7 ft4'>hfhf</P></td>
<td class='tr10 td21'><P class='p0 ft14'>&nbsp;</P></td>
<td class='tr10 td22'><P class='p0 ft14'>&nbsp;</P></td>
<td class='tr10 td23'><P class='p0 ft14'>&nbsp;</P></td>
<td class='tr10 td24'><P class='p0 ft14'>&nbsp;</P></td>
<td class='tr10 td10'><P class='p0 ft14'>&nbsp;</P></td>
<td class='tr10 td11'><P class='p0 ft14'>&nbsp;</P></td>
<td class='tr10 td12'><P class='p0 ft14'>&nbsp;</P></td>
<td class='tr10 td13'><P class='p0 ft14'>&nbsp;</P></td>
</tr>
<tr>
<td class='tr5 td21'><P class='p0 ft9'>&nbsp;</P></td>
<td class='tr5 td22'><P class='p0 ft9'>&nbsp;</P></td>
<td class='tr5 td23'><P class='p0 ft9'>&nbsp;</P></td>
<td class='tr5 td24'><P class='p0 ft9'>&nbsp;</P></td>
<td class='tr5 td10'><P class='p0 ft9'>&nbsp;</P></td>
<td class='tr11 td15'><P class='p0 ft15'>&nbsp;</P></td>
<td class='tr11 td16'><P class='p0 ft15'>&nbsp;</P></td>
<td class='tr11 td17'><P class='p0 ft15'>&nbsp;</P></td>
<td class='tr11 td18'><P class='p0 ft15'>&nbsp;</P></td>
<td class='tr5 td19'><P class='p0 ft9'>&nbsp;</P></td>
</tr>

<tr>
<td class='tr13 td0'><P class='p7 ft11'> hhgfh</p><P class='p7 ft11'> gfjgfj</p><P class='p7 ft11'> gjfgj</p></td>
<td class='tr13 td1'><P class='p0 ft18'>&nbsp;</P></td>
<td class='tr13 td2'><P class='p0 ft18'>&nbsp;</P></td>
<td class='tr13 td3'><P class='p0 ft18'>&nbsp;</P></td>
<td class='tr13 td4'><P class='p0 ft18'>&nbsp;</P></td>
<td class='tr13 td5'><P class='p0 ft18'>&nbsp;</P></td>
<td class='tr13 td6'><P class='p0 ft18'>&nbsp;</P></td>
<td class='tr13 td28'><P class='p0 ft18'>&nbsp;</P></td>
<td class='tr13 td29'><P class='p0 ft18'>&nbsp;</P></td>
<td colspan=3 class='tr13 td30'><P class='p0 ft18'>&nbsp;</P></td>
<td class='tr13 td18'><P class='p0 ft18'>&nbsp;</P></td>
<td class='tr13 td1'><P class='p0 ft18'>&nbsp;</P></td>
</tr>
<tr>
<td class='tr1 td31'><P class='p7 ft3'>Client Details</P></td>
<td class='tr1 td19'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr1 td32'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr1 td33'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr1 td21'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr1 td22'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr1 td23'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr1 td24'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>

</tr>
<tr>
<td colspan=8 class='tr1 td9'><P class='p7 ft2'>". htmlspecialchars($invoice_generation[0]['gjgj'])."</P></td>
<td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>
</tr>
<tr>
<td colspan=4 class='tr1 td20'><P class='p6 ft3'>".htmlspecialchars($invoice_generation[0]['jgj'].''.$invoice_generation[0]['gjg'])."</P></td>
<td class='tr1 td21'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr1 td22'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr1 td23'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr1 td24'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr1 td19'><P class='p0 ft0'>&nbsp;</P></td>
</tr>
<tr>
<td colspan=5 class='tr14 td26'><P class='p7 ft22'>GST:".htmlspecialchars($invoice_generation[0]['jgj'])."</P></td>
<td class='tr14 td22'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr14 td23'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr14 td24'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr14 td10'><P class='p0 ft0'>&nbsp;</P></td>
</tr>
<tr>
<td colspan=5 class='tr14 td26'><P class='p7 ft22'>PAN: ".htmlspecialchars($invoice_generation[0]['gjgfj'])."</P></td>
<td class='tr14 td22'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr14 td23'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr14 td24'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr14 td10'><P class='p0 ft0'>&nbsp;</P></td>
</tr>
<tr>
<td class='tr15 td0'><P class='p0 ft23'>&nbsp;</P></td>
<td class='tr15 td1'><P class='p0 ft23'>&nbsp;</P></td>
<td class='tr15 td2'><P class='p0 ft23'>&nbsp;</P></td>
<td class='tr15 td3'><P class='p0 ft23'>&nbsp;</P></td>
<td class='tr15 td4'><P class='p0 ft23'>&nbsp;</P></td>
<td class='tr15 td5'><P class='p0 ft23'>&nbsp;</P></td>
<td class='tr15 td6'><P class='p0 ft23'>&nbsp;</P></td>
<td class='tr15 td28'><P class='p0 ft23'>&nbsp;</P></td>
<td class='tr15 td29'><P class='p0 ft23'>&nbsp;</P></td>
<td class='tr15 td15'><P class='p0 ft23'>&nbsp;</P></td>
<td class='tr15 td16'><P class='p0 ft23'>&nbsp;</P></td>
<td colspan=3 class='tr15 td37'><P class='p0 ft23'>&nbsp;</P></td>
</tr>
<tr>
<td class='tr9 td31' colspan='15'>
<table style='width:740px;text-align: left; text-align: left;' cellspacing='0' cellpadding='5'>
<tr>
<th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>SI No</th>
<th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Date</th>
<th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Destination</th>
<th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Vehicle</th>
<th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Fixed Rate</th>
<th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Make</th>
<th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>No of Vehicle</th>
<th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Extra km/hr</th>
<th style='border-bottom: solid 1px #000; border-right: solid 0px #000;'>Amount</th>
</tr>";

$i=1;
$sum = 0;
foreach($invoice_generation as $list_invoice) {
$stringData .= "<tr>
<td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". htmlspecialchars($i)."</td>
<td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>".htmlspecialchars($list_invoice['assigned_date'])."</td>
<td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". htmlspecialchars($list_invoice['bmv'])."</td>
<td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>".htmlspecialchars($list_invoice['mvb'])."</td>

<td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>";
if($type=='vendor'){
if($list_invoice['t_city_from']==$list_invoice['t_city_to']){

$list1_invoice = $list_invoice['fixed_rate_l'];
}else{
$list1_invoice = $list_invoice['rate_from_to'];
} }else if($type=='transporter') {
if($list_invoice['t_city_from']==$list_invoice['t_city_to']){

$list1_invoice = $list_invoice['vehicle_rate'];
}else{
$list1_invoice = $list_invoice['vehicle_rate'];
}
}
$stringData .= "".htmlspecialchars($list1_invoice)."</td>
<td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'></td>
<td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". $list_invoice['vehicle_count_i']."</td>
<td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". $list_invoice['extra_charges']."</td>
<td style='border-bottom: solid 1px #000; border-right: solid 0px #000;'>";
if($type=='vendor'){
if($list_invoice['t_city_from']==$list_invoice['t_city_to']){
$total_amt = round(($list_invoice['fixed_rate_l'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charges']);
}else{
$total_amt = round(($list_invoice['rate_from_to'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charges']);
} }else if($type=='transporter'){
if($list_invoice['t_city_from']==$list_invoice['t_city_to']){
$total_amt = round(($list_invoice['vehicle_rate'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charge']);
}else{
$total_amt = round(($list_invoice['vehicle_rate'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charge']);
}
}
$stringData .= "".htmlspecialchars($total_amt)." </td>
</tr>";
$i++;
$sum+= $total_amt;
}

$stringData .= " </table>
</td>

</tr>


<tr>
<td class='tr18 td0' style='border-left: solid 0px #000;'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr18 td43'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr18 td2'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr18 td3'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr18 td4'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr18 td45'><P class='p0 ft0'>&nbsp;</P></td>
<td colspan=2 class='tr18 td53'><P class='p16 ft22'>TOTAL</P></td>
<td class='tr18 td15'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr18 td16'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr18 td46'><P class='p0 ft0'>&nbsp;</P></td>
<td colspan=2 class='tr18 td52' style='border-right: solid 0px #000;'><P class='p17 ft22'>INR ". htmlspecialchars(number_format($sum))."</P></td>
</tr>

<tr>
<td class='tr18 td0' style='border-left: solid 0px #000;'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr18 td43'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr18 td2'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr18 td3'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr18 td4'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr18 td45'><P class='p0 ft0'>&nbsp;</P></td>
<td colspan=2 class='tr18 td53'><P class='p16 ft22'>TOTAL AMOUNT</P></td>
<td class='tr18 td15'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr18 td16'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr18 td46'><P class='p0 ft0'>&nbsp;</P></td>
<td colspan=2 class='tr18 td52' style='border-right: solid 0px #000;'><P class='p17 ft22'>INR";
$amount = round(($sum*18)/100);
$total_tax_amount = number_format($sum + $amount);
$total_word = ($sum + $amount);
$stringData .= "".htmlspecialchars($total_tax_amount)."</P></td>
</tr>
<tr>
<td colspan=5 class='tr2 td26' style='border-left: solid 0px;'><P class='p7 ft4'>Tax Amount (in words) :</P></td>
<td class='tr2 td22'><P class='p0 ft5'>&nbsp;</P></td>
<td class='tr2 td23'><P class='p0 ft5'>&nbsp;</P></td>
<td class='tr2 td24'><P class='p0 ft5'>&nbsp;</P></td>
<td class='tr2 td54'><P class='p0 ft5'>&nbsp;</P></td>
<td class='tr2 td11'><P class='p0 ft5'>&nbsp;</P></td>
<td class='tr2 td12'><P class='p0 ft5'>&nbsp;</P></td>
<td class='tr2 td47'><P class='p0 ft5'>&nbsp;</P></td>
<td class='tr2 td27' style='border-right: solid 0px #000;'><P class='p0 ft5'>&nbsp;</P></td>
<td class='tr2 td19'><P class='p0 ft5'>&nbsp;</P></td>
</tr>
<tr>
<td colspan=10 class='tr19 td55' style='border-left: solid 0px;'><P class='p7 ft22'>";
$number = $total_word;

$stringData .= " ".htmlspecialchars($wordsing)."</P></td>
<td class='tr19 td16'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr19 td46'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr19 td18' style='border-right: solid 0px #000;'><P class='p0 ft0'>&nbsp;</P></td>
<td class='tr19 td1'><P class='p0 ft0'>&nbsp;</P></td>
</tr>



</table>

</div>

</div>
</body>
</html>";
//echo $stringData; die;
fwrite($fh, $stringData);

fclose($fh);

include ('html2fpdf.php');

$pdf = new HTML2FPDF();

$pdf->AddPage();
$pdf->DisplayPreferences('');
$pdf->SetFont('Arial','B',16);
//$pdf->SetFont('Arial','B',14);
$fp = fopen($file_path, "r");

$strContent = fread($fp, filesize($file_path));
//echo "<pre>";print_r(file_get_contents($strContent)); die;
fclose($fp);


$pdf->WriteHTML($stringData);
//$pdf->FancyTable($strContent);
@header('Content-Type: application/pdf');

@header('Content-Disposition: attachment; filename="' . $myFilePdf . '"');
$pdf->Output($file_path_pdf, "F");

$file = $file_path_pdf;



$filename = $file_path_pdf;



//@header('Content-Transfer-Encoding: binary');

//@header('Accept-Ranges: bytes');

@readfile($file);

exit();


this is my code please suggest if any changes required i try many times but can't simulate the problem.










share|improve this question









New contributor




Ankit Kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by Yvette Colomb 10 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Yvette Colomb

If this question can be reworded to fit the rules in the help center, please edit the question.

















    up vote
    0
    down vote

    favorite












    Sir i am using html2pdf and fpdf library in php to write my whole html code to pdf format.but now i am successfully create pdf file with name but when i open that file nothing display.please see the image enter image description here



    my whole code are



        $stringData = "<?xml version='1.0' encoding='iso-8859-1'?>
    <!DOCTYPE HTML PUBLIC '-//W3C//Dtd HTML 4.01//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
    <html xmlns='http://www.w3.org/1999/xhtml'>
    <HEAD>
    <META http-equiv='Content-Type' content='text/html; charset=UTF-8'>
    <META http-equiv='X-UA-Compatible' content='IE=8'>
    <TITLE>Invoice</TITLE>
    <META name='generator' content='BCL easyConverter SDK 5.0.101'>
    <style type='text/css'>

    body {margin-top: 0px;margin-left: 0px;}

    #page_1 {position:relative; overflow: hidden;margin: 0px auto;padding: 0px;border: none;width: 794px;height: 2353px;}
    #page_1 #id_1 {
    margin: 0px 0px 0px 45px;
    padding: 0px;
    width: 741px;
    overflow: hidden;
    border: solid 1px #000;
    padding-top: 130px;
    }
    #page_1 #id_2 {border:none;margin: 331px 0px 0px 4px;padding: 0px;border:none;width: 790px;overflow: hidden;}

    #page_1 #p1dimg1 {position:absolute;top:0px;left:0px;z-index:-1;width:794px;height:2353px;}
    #page_1 #p1dimg1 #p1img1 {width:832px;height:auto;}
    td.tr7.td25.Date_formt {
    border-top: solid 1px;
    position: relative;
    }
    .p12{text-align: right;padding-right: 8px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
    .p13{text-align: right;padding-right: 5px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
    .p14{text-align: left;padding-left: 28px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
    .p15{text-align: right;padding-right: 6px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
    .p16{text-align: left;padding-left: 35px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
    .p17{text-align: left;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
    .p18{text-align: left;padding-left: 30px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
    .p19{text-align: right;padding-right: 29px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
    .p20{text-align: left;padding-left: 15px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
    .p21{text-align: right;padding-right: 7px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
    .p22{text-align: right;padding-right: 27px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
    .p23{text-align: left;padding-left: 126px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
    .p24{text-align: center;padding-right: 1px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
    .p25{text-align: left;padding-left: 57px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
    .p26{text-align: left;padding-left: 6px;margin-top: 32px;margin-bottom: 0px;}
    .p27{text-align: justify;padding-left: 6px;padding-right: 51px;margin-top: 0px;margin-bottom: 0px;}
    .p28{text-align: left;margin-top: 0px;margin-bottom: 0px;}

    .td0{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 44px;vertical-align: bottom;}
    .td1{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 3px;vertical-align: bottom;}
    .td2{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 86px;vertical-align: bottom;}
    .td3{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 32px;vertical-align: bottom;}
    .td4{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 41px;vertical-align: bottom;}
    .td5{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 60px;vertical-align: bottom;}
    .td6{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 27px;vertical-align: bottom;}
    .td7{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 127px;vertical-align: bottom;}
    .td8{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 286px;vertical-align: bottom;}
    .td9{padding: 0px;margin: 0px;width: 362px;vertical-align: bottom;}
    .td10{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 57px;vertical-align: bottom;}
    .td11{padding: 0px;margin: 0px;width: 85px;vertical-align: bottom;}
    .td12{padding: 0px;margin: 0px;width: 40px;vertical-align: bottom;}
    .td13{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 17px;vertical-align: bottom;}
    .td14{padding: 0px;margin: 0px;width: 143px;vertical-align: bottom;}
    .td15{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 85px;vertical-align: bottom;}
    .td16{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 40px;vertical-align: bottom;}
    .td17{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 17px;vertical-align: bottom;}
    .td18{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 140px;vertical-align: bottom;}
    .td19{padding: 0px;margin: 0px;width: 3px;vertical-align: bottom;}
    .td20{padding: 0px;margin: 0px;width: 165px;vertical-align: bottom;}
    .td21{padding: 0px;margin: 0px;width: 41px;vertical-align: bottom;}
    .td22{padding: 0px;margin: 0px;width: 60px;vertical-align: bottom;}
    .td23{padding: 0px;margin: 0px;width: 27px;vertical-align: bottom;}
    .td24{padding: 0px;margin: 0px;width: 69px;vertical-align: bottom;}
    .td25{padding: 0px;margin: 0px;width: 125px;vertical-align: bottom;}
    .td26{padding: 0px;margin: 0px;width: 206px;vertical-align: bottom;}
    .td27{padding: 0px;margin: 0px;width: 140px;vertical-align: bottom;}
    .td28{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 69px;vertical-align: bottom;}
    .td29{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 57px;vertical-align: bottom;}
    .td30{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 142px;vertical-align: bottom;}
    .td31{padding: 0px;margin: 0px;width: 44px;vertical-align: bottom;}
    .td32{padding: 0px;margin: 0px;width: 86px;vertical-align: bottom;}
    .td33{padding: 0px;margin: 0px;width: 32px;vertical-align: bottom;}
    .td34{padding: 0px;margin: 0px;width: 286px;vertical-align: bottom;}
    .td35{padding: 0px;margin: 0px;width: 201px;vertical-align: bottom;}
    .td36{padding: 0px;margin: 0px;width: 198px;vertical-align: bottom;}
    .td37{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 161px;vertical-align: bottom;}
    .td38{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 2px;vertical-align: bottom;}
    .td39{padding: 0px;margin: 0px;width: 118px;vertical-align: bottom;}
    .td40{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 26px;vertical-align: bottom;}
    .td41{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 68px;vertical-align: bottom;}
    .td42{padding: 0px;margin: 0px;width: 161px;vertical-align: bottom;}
    .td43{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 2px;vertical-align: bottom;}
    .td44{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 26px;vertical-align: bottom;}
    .td45{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 68px;vertical-align: bottom;}
    .td46{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 18px;vertical-align: bottom;}
    .td47{padding: 0px;margin: 0px;width: 18px;vertical-align: bottom;}
    .td48{padding: 0px;margin: 0px;width: 159px;vertical-align: bottom;}
    .td49{padding: 0px;margin: 0px;width: 158px;vertical-align: bottom;}
    .td50{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 159px;vertical-align: bottom;}
    .td51{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 159px;vertical-align: bottom;}
    .td52{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 143px;vertical-align: bottom;}
    .td53{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 86px;vertical-align: bottom;}
    .td54{padding: 0px;margin: 0px;width: 58px;vertical-align: bottom;}
    .td55{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 505px;vertical-align: bottom;}
    .td56{border-left: #000000 1px solid;padding: 0px;margin: 0px;width: 43px;vertical-align: bottom;}
    .td57{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 88px;vertical-align: bottom;}
    .td58{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 100px;vertical-align: bottom;}
    .td59{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 58px;vertical-align: bottom;}
    .td60{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 125px;vertical-align: bottom;}
    .td61{border-left: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 43px;vertical-align: bottom;}
    .td62{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 85px;vertical-align: bottom;}
    .td63{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 59px;vertical-align: bottom;}
    .td64{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 89px;vertical-align: bottom;}
    .td65{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 158px;vertical-align: bottom;}
    .td66{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 118px;vertical-align: bottom;}
    .td67{border-left: #000000 1px solid;padding: 0px;margin: 0px;width: 164px;vertical-align: bottom;}
    .td68{border-left: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 419px;vertical-align: bottom;}
    .td69{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 59px;vertical-align: bottom;}
    .td70{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 412px;vertical-align: bottom;}
    .td71{border-left: #000000 1px solid;border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 264px;vertical-align: bottom;}
    .td72{padding: 0px;margin: 0px;width: 96px;vertical-align: bottom;}

    .tr0{height: 21px;}
    .tr1{height: 15px;}
    .tr2{height: 13px;}
    .tr3{height: 11px;}
    .tr4{height: 5px;}
    .tr5{height: 4px;}
    .tr6{height: 6px;}
    .tr7{height: 12px;}
    .tr8{height: 7px;}
    .tr9{height: 14px;}
    .tr10{height: 9px;}
    .tr11{height: 3px;}
    .tr12{height: 23px;}
    .tr13{height: 8px;font-size: 13px;}
    .tr14{height: 16px;}
    .tr15{height: 2px;}
    .tr16{height: 25px;}
    .tr17{height: 22px;}
    .tr18{height: 17px;}
    .tr19{height: 19px;}
    .tr20{height: 10px;}

    .t0{width: 706px;font: 11px 'Arial';}

    </style>
    </HEAD>

    <body>
    <div id='page_1'>
    <div id='p1dimg1'>
    <img src=". base_url()."scripts/images/bg.jpg id='p1img1'></div>


    <div class='dclr'></div>
    <div id='id_1'>
    <table cellpadding='0' cellspacing='0' class='t0'>
    <tr>
    <td class='tr0 td0'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr0 td1'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr0 td2'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr0 td3'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr0 td4'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr0 td5'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr0 td6'><P class='p0 ft0'>&nbsp;</P></td>
    <td colspan=2 class='tr0 td7'><P class='p1 ft1'>Tax Invoice</P></td>
    <td colspan=5 class='tr0 td8'><P class='p2 ft1'></P></td>
    </tr>
    <tr>
    <td colspan=8 class='tr1 td9'><P class='p3 ft2'>dgdsgdg</P></td>
    <td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr1 td11'><P class='p4 ft3'>Invoice No.</P></td>
    <td class='tr1 td12'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr1 td13'><P class='p0 ft0'>&nbsp;</P></td>
    <td colspan=2 class='tr1 td14'><P class='p5 ft3'>Date</P></td>
    </tr>
    <tr>
    <td colspan=8 class='tr2 td9'><P class='p6 ft4'>gdgdgdg</P></td>
    <td class='tr2 td10'><P class='p0 ft5'>&nbsp;</P></td>
    <td class='tr2 td11'><P class='p6 pl-1 ft4'></P>".htmlspecialchars($update_invoice)."</td>
    <td class='tr2 td12'><P class='p0 ft5'>&nbsp;</P></td>
    <td class='tr2 td13'><P class='p0 ft5'>&nbsp;</P></td>
    <td colspan=2 class='tr2 td14'><P class='p5 ft6'><NOBR> ". htmlspecialchars((date('d/m/Y')))."</NOBR></P></td>
    </tr>
    <tr>
    <td colspan=8 rowspan=2 class='tr3 td9'><P class='p7 ft7'>hdfhdfh</P></td>
    <td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
    <td class='tr5 td15'><P class='p0 ft9'>&nbsp;</P></td>
    <td class='tr5 td16'><P class='p0 ft9'>&nbsp;</P></td>
    <td class='tr5 td17'><P class='p0 ft9'>&nbsp;</P></td>
    <td class='tr5 td18'><P class='p0 ft9'>&nbsp;</P></td>
    <td class='tr4 td19'><P class='p0 ft8'>&nbsp;</P></td>
    </tr>
    <tr>
    <td class='tr6 td10'><P class='p0 ft10'>&nbsp;</P></td>
    <td class='tr6 td11'><P class='p0 ft10'>&nbsp;</P></td>
    <td class='tr6 td12'><P class='p0 ft10'>&nbsp;</P></td>
    <td class='tr6 td13'><P class='p0 ft10'>&nbsp;</P></td>
    <td colspan=2 rowspan=2 class='tr2 td14'><P class='p5 ft4'>Mode/Terms of Payment</P></td>
    </tr>
    <tr>
    <td colspan=4 rowspan=2 class='tr7 td20'><P class='p7 ft11'>gty</P></td>
    <td class='tr8 td21'><P class='p0 ft12'>&nbsp;</P></td>
    <td class='tr8 td22'><P class='p0 ft12'>&nbsp;</P></td>
    <td class='tr8 td23'><P class='p0 ft12'>&nbsp;</P></td>
    <td class='tr8 td24'><P class='p0 ft12'>&nbsp;</P></td>
    <td class='tr8 td10'><P class='p0 ft12'>&nbsp;</P></td>
    <td colspan=2 rowspan=2 class='tr7 td25'><P class='p4 ft11'>Other References(s)</P></td>
    <td class='tr8 td13'><P class='p0 ft12'>&nbsp;</P></td>
    </tr>
    <tr>
    <td class='tr4 td21'><P class='p0 ft8'>&nbsp;</P></td>
    <td class='tr4 td22'><P class='p0 ft8'>&nbsp;</P></td>
    <td class='tr4 td23'><P class='p0 ft8'>&nbsp;</P></td>
    <td class='tr4 td24'><P class='p0 ft8'>&nbsp;</P></td>
    <td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
    <td class='tr4 td13'><P class='p0 ft8'>&nbsp;</P></td>
    <td colspan=2 rowspan=2 class='tr9 td14'><P class='p5 ft13'><NOBR>Cheque/Online</NOBR></P></td>
    </tr>

    <tr>
    <td colspan=8 rowspan=2 class='tr3 td9'><P class='p7 ft7'>jghjj</P></td>
    <td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
    <td class='tr5 td15'><P class='p0 ft9'>&nbsp;</P></td>
    <td class='tr5 td16'><P class='p0 ft9'>&nbsp;</P></td>
    <td class='tr5 td17'><P class='p0 ft9'>&nbsp;</P></td>
    <td class='tr5 td18'><P class='p0 ft9'>&nbsp;</P></td>
    <td class='tr4 td19'><P class='p0 ft8'>&nbsp;</P></td>
    </tr>
    <tr>
    <td class='tr6 td10'><P class='p0 ft10'>&nbsp;</P></td>
    <td class='tr6 td11'><P class='p0 ft10'>&nbsp;</P></td>
    <td class='tr6 td12'><P class='p0 ft10'>&nbsp;</P></td>
    <td class='tr6 td13'><P class='p0 ft10'>&nbsp;</P></td>
    <td colspan=2 rowspan=2 class='tr7 td25 Date_formt'><P class='p4 ft11 '>". htmlspecialchars(date('d/m/Y', strtotime('+7 days')))."</P></td>

    </tr>
    <tr>
    <td colspan=4 rowspan=2 class='tr7 td20'><P class='p7 ft11'><NOBR>fgt</P></td>
    <td class='tr8 td21'><P class='p0 ft12'>&nbsp;</P></td>
    <td class='tr8 td22'><P class='p0 ft12'>&nbsp;</P></td>
    <td class='tr8 td23'><P class='p0 ft12'>&nbsp;</P></td>
    <td class='tr8 td24'><P class='p0 ft12'>&nbsp;</P></td>
    <td class='tr8 td10'><P class='p0 ft12'>&nbsp;</P></td>
    <td colspan=2 rowspan=2 class='tr7 td25'><P class='p4 ft11'>Due Date</P></td>
    <td class='tr8 td13'><P class='p0 ft12'>&nbsp;</P></td>
    </tr>
    <tr>
    <td class='tr4 td21'><P class='p0 ft8'>&nbsp;</P></td>
    <td class='tr4 td22'><P class='p0 ft8'>&nbsp;</P></td>
    <td class='tr4 td23'><P class='p0 ft8'>&nbsp;</P></td>
    <td class='tr4 td24'><P class='p0 ft8'>&nbsp;</P></td>
    <td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
    <td class='tr4 td13'><P class='p0 ft8'>&nbsp;</P></td>

    </tr>

    <tr>
    <td colspan=4 rowspan=2 class='tr2 td20'><P class='p7 ft4'>hfhf</P></td>
    <td class='tr10 td21'><P class='p0 ft14'>&nbsp;</P></td>
    <td class='tr10 td22'><P class='p0 ft14'>&nbsp;</P></td>
    <td class='tr10 td23'><P class='p0 ft14'>&nbsp;</P></td>
    <td class='tr10 td24'><P class='p0 ft14'>&nbsp;</P></td>
    <td class='tr10 td10'><P class='p0 ft14'>&nbsp;</P></td>
    <td class='tr10 td11'><P class='p0 ft14'>&nbsp;</P></td>
    <td class='tr10 td12'><P class='p0 ft14'>&nbsp;</P></td>
    <td class='tr10 td13'><P class='p0 ft14'>&nbsp;</P></td>
    </tr>
    <tr>
    <td class='tr5 td21'><P class='p0 ft9'>&nbsp;</P></td>
    <td class='tr5 td22'><P class='p0 ft9'>&nbsp;</P></td>
    <td class='tr5 td23'><P class='p0 ft9'>&nbsp;</P></td>
    <td class='tr5 td24'><P class='p0 ft9'>&nbsp;</P></td>
    <td class='tr5 td10'><P class='p0 ft9'>&nbsp;</P></td>
    <td class='tr11 td15'><P class='p0 ft15'>&nbsp;</P></td>
    <td class='tr11 td16'><P class='p0 ft15'>&nbsp;</P></td>
    <td class='tr11 td17'><P class='p0 ft15'>&nbsp;</P></td>
    <td class='tr11 td18'><P class='p0 ft15'>&nbsp;</P></td>
    <td class='tr5 td19'><P class='p0 ft9'>&nbsp;</P></td>
    </tr>

    <tr>
    <td class='tr13 td0'><P class='p7 ft11'> hhgfh</p><P class='p7 ft11'> gfjgfj</p><P class='p7 ft11'> gjfgj</p></td>
    <td class='tr13 td1'><P class='p0 ft18'>&nbsp;</P></td>
    <td class='tr13 td2'><P class='p0 ft18'>&nbsp;</P></td>
    <td class='tr13 td3'><P class='p0 ft18'>&nbsp;</P></td>
    <td class='tr13 td4'><P class='p0 ft18'>&nbsp;</P></td>
    <td class='tr13 td5'><P class='p0 ft18'>&nbsp;</P></td>
    <td class='tr13 td6'><P class='p0 ft18'>&nbsp;</P></td>
    <td class='tr13 td28'><P class='p0 ft18'>&nbsp;</P></td>
    <td class='tr13 td29'><P class='p0 ft18'>&nbsp;</P></td>
    <td colspan=3 class='tr13 td30'><P class='p0 ft18'>&nbsp;</P></td>
    <td class='tr13 td18'><P class='p0 ft18'>&nbsp;</P></td>
    <td class='tr13 td1'><P class='p0 ft18'>&nbsp;</P></td>
    </tr>
    <tr>
    <td class='tr1 td31'><P class='p7 ft3'>Client Details</P></td>
    <td class='tr1 td19'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr1 td32'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr1 td33'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr1 td21'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr1 td22'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr1 td23'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr1 td24'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>

    </tr>
    <tr>
    <td colspan=8 class='tr1 td9'><P class='p7 ft2'>". htmlspecialchars($invoice_generation[0]['gjgj'])."</P></td>
    <td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>
    </tr>
    <tr>
    <td colspan=4 class='tr1 td20'><P class='p6 ft3'>".htmlspecialchars($invoice_generation[0]['jgj'].''.$invoice_generation[0]['gjg'])."</P></td>
    <td class='tr1 td21'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr1 td22'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr1 td23'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr1 td24'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr1 td19'><P class='p0 ft0'>&nbsp;</P></td>
    </tr>
    <tr>
    <td colspan=5 class='tr14 td26'><P class='p7 ft22'>GST:".htmlspecialchars($invoice_generation[0]['jgj'])."</P></td>
    <td class='tr14 td22'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr14 td23'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr14 td24'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr14 td10'><P class='p0 ft0'>&nbsp;</P></td>
    </tr>
    <tr>
    <td colspan=5 class='tr14 td26'><P class='p7 ft22'>PAN: ".htmlspecialchars($invoice_generation[0]['gjgfj'])."</P></td>
    <td class='tr14 td22'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr14 td23'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr14 td24'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr14 td10'><P class='p0 ft0'>&nbsp;</P></td>
    </tr>
    <tr>
    <td class='tr15 td0'><P class='p0 ft23'>&nbsp;</P></td>
    <td class='tr15 td1'><P class='p0 ft23'>&nbsp;</P></td>
    <td class='tr15 td2'><P class='p0 ft23'>&nbsp;</P></td>
    <td class='tr15 td3'><P class='p0 ft23'>&nbsp;</P></td>
    <td class='tr15 td4'><P class='p0 ft23'>&nbsp;</P></td>
    <td class='tr15 td5'><P class='p0 ft23'>&nbsp;</P></td>
    <td class='tr15 td6'><P class='p0 ft23'>&nbsp;</P></td>
    <td class='tr15 td28'><P class='p0 ft23'>&nbsp;</P></td>
    <td class='tr15 td29'><P class='p0 ft23'>&nbsp;</P></td>
    <td class='tr15 td15'><P class='p0 ft23'>&nbsp;</P></td>
    <td class='tr15 td16'><P class='p0 ft23'>&nbsp;</P></td>
    <td colspan=3 class='tr15 td37'><P class='p0 ft23'>&nbsp;</P></td>
    </tr>
    <tr>
    <td class='tr9 td31' colspan='15'>
    <table style='width:740px;text-align: left; text-align: left;' cellspacing='0' cellpadding='5'>
    <tr>
    <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>SI No</th>
    <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Date</th>
    <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Destination</th>
    <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Vehicle</th>
    <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Fixed Rate</th>
    <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Make</th>
    <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>No of Vehicle</th>
    <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Extra km/hr</th>
    <th style='border-bottom: solid 1px #000; border-right: solid 0px #000;'>Amount</th>
    </tr>";

    $i=1;
    $sum = 0;
    foreach($invoice_generation as $list_invoice) {
    $stringData .= "<tr>
    <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". htmlspecialchars($i)."</td>
    <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>".htmlspecialchars($list_invoice['assigned_date'])."</td>
    <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". htmlspecialchars($list_invoice['bmv'])."</td>
    <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>".htmlspecialchars($list_invoice['mvb'])."</td>

    <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>";
    if($type=='vendor'){
    if($list_invoice['t_city_from']==$list_invoice['t_city_to']){

    $list1_invoice = $list_invoice['fixed_rate_l'];
    }else{
    $list1_invoice = $list_invoice['rate_from_to'];
    } }else if($type=='transporter') {
    if($list_invoice['t_city_from']==$list_invoice['t_city_to']){

    $list1_invoice = $list_invoice['vehicle_rate'];
    }else{
    $list1_invoice = $list_invoice['vehicle_rate'];
    }
    }
    $stringData .= "".htmlspecialchars($list1_invoice)."</td>
    <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'></td>
    <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". $list_invoice['vehicle_count_i']."</td>
    <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". $list_invoice['extra_charges']."</td>
    <td style='border-bottom: solid 1px #000; border-right: solid 0px #000;'>";
    if($type=='vendor'){
    if($list_invoice['t_city_from']==$list_invoice['t_city_to']){
    $total_amt = round(($list_invoice['fixed_rate_l'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charges']);
    }else{
    $total_amt = round(($list_invoice['rate_from_to'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charges']);
    } }else if($type=='transporter'){
    if($list_invoice['t_city_from']==$list_invoice['t_city_to']){
    $total_amt = round(($list_invoice['vehicle_rate'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charge']);
    }else{
    $total_amt = round(($list_invoice['vehicle_rate'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charge']);
    }
    }
    $stringData .= "".htmlspecialchars($total_amt)." </td>
    </tr>";
    $i++;
    $sum+= $total_amt;
    }

    $stringData .= " </table>
    </td>

    </tr>


    <tr>
    <td class='tr18 td0' style='border-left: solid 0px #000;'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr18 td43'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr18 td2'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr18 td3'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr18 td4'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr18 td45'><P class='p0 ft0'>&nbsp;</P></td>
    <td colspan=2 class='tr18 td53'><P class='p16 ft22'>TOTAL</P></td>
    <td class='tr18 td15'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr18 td16'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr18 td46'><P class='p0 ft0'>&nbsp;</P></td>
    <td colspan=2 class='tr18 td52' style='border-right: solid 0px #000;'><P class='p17 ft22'>INR ". htmlspecialchars(number_format($sum))."</P></td>
    </tr>

    <tr>
    <td class='tr18 td0' style='border-left: solid 0px #000;'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr18 td43'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr18 td2'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr18 td3'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr18 td4'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr18 td45'><P class='p0 ft0'>&nbsp;</P></td>
    <td colspan=2 class='tr18 td53'><P class='p16 ft22'>TOTAL AMOUNT</P></td>
    <td class='tr18 td15'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr18 td16'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr18 td46'><P class='p0 ft0'>&nbsp;</P></td>
    <td colspan=2 class='tr18 td52' style='border-right: solid 0px #000;'><P class='p17 ft22'>INR";
    $amount = round(($sum*18)/100);
    $total_tax_amount = number_format($sum + $amount);
    $total_word = ($sum + $amount);
    $stringData .= "".htmlspecialchars($total_tax_amount)."</P></td>
    </tr>
    <tr>
    <td colspan=5 class='tr2 td26' style='border-left: solid 0px;'><P class='p7 ft4'>Tax Amount (in words) :</P></td>
    <td class='tr2 td22'><P class='p0 ft5'>&nbsp;</P></td>
    <td class='tr2 td23'><P class='p0 ft5'>&nbsp;</P></td>
    <td class='tr2 td24'><P class='p0 ft5'>&nbsp;</P></td>
    <td class='tr2 td54'><P class='p0 ft5'>&nbsp;</P></td>
    <td class='tr2 td11'><P class='p0 ft5'>&nbsp;</P></td>
    <td class='tr2 td12'><P class='p0 ft5'>&nbsp;</P></td>
    <td class='tr2 td47'><P class='p0 ft5'>&nbsp;</P></td>
    <td class='tr2 td27' style='border-right: solid 0px #000;'><P class='p0 ft5'>&nbsp;</P></td>
    <td class='tr2 td19'><P class='p0 ft5'>&nbsp;</P></td>
    </tr>
    <tr>
    <td colspan=10 class='tr19 td55' style='border-left: solid 0px;'><P class='p7 ft22'>";
    $number = $total_word;

    $stringData .= " ".htmlspecialchars($wordsing)."</P></td>
    <td class='tr19 td16'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr19 td46'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr19 td18' style='border-right: solid 0px #000;'><P class='p0 ft0'>&nbsp;</P></td>
    <td class='tr19 td1'><P class='p0 ft0'>&nbsp;</P></td>
    </tr>



    </table>

    </div>

    </div>
    </body>
    </html>";
    //echo $stringData; die;
    fwrite($fh, $stringData);

    fclose($fh);

    include ('html2fpdf.php');

    $pdf = new HTML2FPDF();

    $pdf->AddPage();
    $pdf->DisplayPreferences('');
    $pdf->SetFont('Arial','B',16);
    //$pdf->SetFont('Arial','B',14);
    $fp = fopen($file_path, "r");

    $strContent = fread($fp, filesize($file_path));
    //echo "<pre>";print_r(file_get_contents($strContent)); die;
    fclose($fp);


    $pdf->WriteHTML($stringData);
    //$pdf->FancyTable($strContent);
    @header('Content-Type: application/pdf');

    @header('Content-Disposition: attachment; filename="' . $myFilePdf . '"');
    $pdf->Output($file_path_pdf, "F");

    $file = $file_path_pdf;



    $filename = $file_path_pdf;



    //@header('Content-Transfer-Encoding: binary');

    //@header('Accept-Ranges: bytes');

    @readfile($file);

    exit();


    this is my code please suggest if any changes required i try many times but can't simulate the problem.










    share|improve this question









    New contributor




    Ankit Kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.











    put on hold as off-topic by Yvette Colomb 10 hours ago


    This question appears to be off-topic. The users who voted to close gave this specific reason:


    • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Yvette Colomb

    If this question can be reworded to fit the rules in the help center, please edit the question.















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Sir i am using html2pdf and fpdf library in php to write my whole html code to pdf format.but now i am successfully create pdf file with name but when i open that file nothing display.please see the image enter image description here



      my whole code are



          $stringData = "<?xml version='1.0' encoding='iso-8859-1'?>
      <!DOCTYPE HTML PUBLIC '-//W3C//Dtd HTML 4.01//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
      <html xmlns='http://www.w3.org/1999/xhtml'>
      <HEAD>
      <META http-equiv='Content-Type' content='text/html; charset=UTF-8'>
      <META http-equiv='X-UA-Compatible' content='IE=8'>
      <TITLE>Invoice</TITLE>
      <META name='generator' content='BCL easyConverter SDK 5.0.101'>
      <style type='text/css'>

      body {margin-top: 0px;margin-left: 0px;}

      #page_1 {position:relative; overflow: hidden;margin: 0px auto;padding: 0px;border: none;width: 794px;height: 2353px;}
      #page_1 #id_1 {
      margin: 0px 0px 0px 45px;
      padding: 0px;
      width: 741px;
      overflow: hidden;
      border: solid 1px #000;
      padding-top: 130px;
      }
      #page_1 #id_2 {border:none;margin: 331px 0px 0px 4px;padding: 0px;border:none;width: 790px;overflow: hidden;}

      #page_1 #p1dimg1 {position:absolute;top:0px;left:0px;z-index:-1;width:794px;height:2353px;}
      #page_1 #p1dimg1 #p1img1 {width:832px;height:auto;}
      td.tr7.td25.Date_formt {
      border-top: solid 1px;
      position: relative;
      }
      .p12{text-align: right;padding-right: 8px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p13{text-align: right;padding-right: 5px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p14{text-align: left;padding-left: 28px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p15{text-align: right;padding-right: 6px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p16{text-align: left;padding-left: 35px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p17{text-align: left;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p18{text-align: left;padding-left: 30px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p19{text-align: right;padding-right: 29px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p20{text-align: left;padding-left: 15px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p21{text-align: right;padding-right: 7px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p22{text-align: right;padding-right: 27px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p23{text-align: left;padding-left: 126px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p24{text-align: center;padding-right: 1px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p25{text-align: left;padding-left: 57px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p26{text-align: left;padding-left: 6px;margin-top: 32px;margin-bottom: 0px;}
      .p27{text-align: justify;padding-left: 6px;padding-right: 51px;margin-top: 0px;margin-bottom: 0px;}
      .p28{text-align: left;margin-top: 0px;margin-bottom: 0px;}

      .td0{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 44px;vertical-align: bottom;}
      .td1{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 3px;vertical-align: bottom;}
      .td2{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 86px;vertical-align: bottom;}
      .td3{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 32px;vertical-align: bottom;}
      .td4{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 41px;vertical-align: bottom;}
      .td5{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 60px;vertical-align: bottom;}
      .td6{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 27px;vertical-align: bottom;}
      .td7{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 127px;vertical-align: bottom;}
      .td8{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 286px;vertical-align: bottom;}
      .td9{padding: 0px;margin: 0px;width: 362px;vertical-align: bottom;}
      .td10{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 57px;vertical-align: bottom;}
      .td11{padding: 0px;margin: 0px;width: 85px;vertical-align: bottom;}
      .td12{padding: 0px;margin: 0px;width: 40px;vertical-align: bottom;}
      .td13{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 17px;vertical-align: bottom;}
      .td14{padding: 0px;margin: 0px;width: 143px;vertical-align: bottom;}
      .td15{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 85px;vertical-align: bottom;}
      .td16{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 40px;vertical-align: bottom;}
      .td17{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 17px;vertical-align: bottom;}
      .td18{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 140px;vertical-align: bottom;}
      .td19{padding: 0px;margin: 0px;width: 3px;vertical-align: bottom;}
      .td20{padding: 0px;margin: 0px;width: 165px;vertical-align: bottom;}
      .td21{padding: 0px;margin: 0px;width: 41px;vertical-align: bottom;}
      .td22{padding: 0px;margin: 0px;width: 60px;vertical-align: bottom;}
      .td23{padding: 0px;margin: 0px;width: 27px;vertical-align: bottom;}
      .td24{padding: 0px;margin: 0px;width: 69px;vertical-align: bottom;}
      .td25{padding: 0px;margin: 0px;width: 125px;vertical-align: bottom;}
      .td26{padding: 0px;margin: 0px;width: 206px;vertical-align: bottom;}
      .td27{padding: 0px;margin: 0px;width: 140px;vertical-align: bottom;}
      .td28{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 69px;vertical-align: bottom;}
      .td29{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 57px;vertical-align: bottom;}
      .td30{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 142px;vertical-align: bottom;}
      .td31{padding: 0px;margin: 0px;width: 44px;vertical-align: bottom;}
      .td32{padding: 0px;margin: 0px;width: 86px;vertical-align: bottom;}
      .td33{padding: 0px;margin: 0px;width: 32px;vertical-align: bottom;}
      .td34{padding: 0px;margin: 0px;width: 286px;vertical-align: bottom;}
      .td35{padding: 0px;margin: 0px;width: 201px;vertical-align: bottom;}
      .td36{padding: 0px;margin: 0px;width: 198px;vertical-align: bottom;}
      .td37{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 161px;vertical-align: bottom;}
      .td38{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 2px;vertical-align: bottom;}
      .td39{padding: 0px;margin: 0px;width: 118px;vertical-align: bottom;}
      .td40{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 26px;vertical-align: bottom;}
      .td41{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 68px;vertical-align: bottom;}
      .td42{padding: 0px;margin: 0px;width: 161px;vertical-align: bottom;}
      .td43{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 2px;vertical-align: bottom;}
      .td44{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 26px;vertical-align: bottom;}
      .td45{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 68px;vertical-align: bottom;}
      .td46{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 18px;vertical-align: bottom;}
      .td47{padding: 0px;margin: 0px;width: 18px;vertical-align: bottom;}
      .td48{padding: 0px;margin: 0px;width: 159px;vertical-align: bottom;}
      .td49{padding: 0px;margin: 0px;width: 158px;vertical-align: bottom;}
      .td50{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 159px;vertical-align: bottom;}
      .td51{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 159px;vertical-align: bottom;}
      .td52{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 143px;vertical-align: bottom;}
      .td53{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 86px;vertical-align: bottom;}
      .td54{padding: 0px;margin: 0px;width: 58px;vertical-align: bottom;}
      .td55{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 505px;vertical-align: bottom;}
      .td56{border-left: #000000 1px solid;padding: 0px;margin: 0px;width: 43px;vertical-align: bottom;}
      .td57{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 88px;vertical-align: bottom;}
      .td58{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 100px;vertical-align: bottom;}
      .td59{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 58px;vertical-align: bottom;}
      .td60{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 125px;vertical-align: bottom;}
      .td61{border-left: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 43px;vertical-align: bottom;}
      .td62{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 85px;vertical-align: bottom;}
      .td63{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 59px;vertical-align: bottom;}
      .td64{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 89px;vertical-align: bottom;}
      .td65{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 158px;vertical-align: bottom;}
      .td66{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 118px;vertical-align: bottom;}
      .td67{border-left: #000000 1px solid;padding: 0px;margin: 0px;width: 164px;vertical-align: bottom;}
      .td68{border-left: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 419px;vertical-align: bottom;}
      .td69{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 59px;vertical-align: bottom;}
      .td70{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 412px;vertical-align: bottom;}
      .td71{border-left: #000000 1px solid;border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 264px;vertical-align: bottom;}
      .td72{padding: 0px;margin: 0px;width: 96px;vertical-align: bottom;}

      .tr0{height: 21px;}
      .tr1{height: 15px;}
      .tr2{height: 13px;}
      .tr3{height: 11px;}
      .tr4{height: 5px;}
      .tr5{height: 4px;}
      .tr6{height: 6px;}
      .tr7{height: 12px;}
      .tr8{height: 7px;}
      .tr9{height: 14px;}
      .tr10{height: 9px;}
      .tr11{height: 3px;}
      .tr12{height: 23px;}
      .tr13{height: 8px;font-size: 13px;}
      .tr14{height: 16px;}
      .tr15{height: 2px;}
      .tr16{height: 25px;}
      .tr17{height: 22px;}
      .tr18{height: 17px;}
      .tr19{height: 19px;}
      .tr20{height: 10px;}

      .t0{width: 706px;font: 11px 'Arial';}

      </style>
      </HEAD>

      <body>
      <div id='page_1'>
      <div id='p1dimg1'>
      <img src=". base_url()."scripts/images/bg.jpg id='p1img1'></div>


      <div class='dclr'></div>
      <div id='id_1'>
      <table cellpadding='0' cellspacing='0' class='t0'>
      <tr>
      <td class='tr0 td0'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr0 td1'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr0 td2'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr0 td3'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr0 td4'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr0 td5'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr0 td6'><P class='p0 ft0'>&nbsp;</P></td>
      <td colspan=2 class='tr0 td7'><P class='p1 ft1'>Tax Invoice</P></td>
      <td colspan=5 class='tr0 td8'><P class='p2 ft1'></P></td>
      </tr>
      <tr>
      <td colspan=8 class='tr1 td9'><P class='p3 ft2'>dgdsgdg</P></td>
      <td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td11'><P class='p4 ft3'>Invoice No.</P></td>
      <td class='tr1 td12'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td13'><P class='p0 ft0'>&nbsp;</P></td>
      <td colspan=2 class='tr1 td14'><P class='p5 ft3'>Date</P></td>
      </tr>
      <tr>
      <td colspan=8 class='tr2 td9'><P class='p6 ft4'>gdgdgdg</P></td>
      <td class='tr2 td10'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td11'><P class='p6 pl-1 ft4'></P>".htmlspecialchars($update_invoice)."</td>
      <td class='tr2 td12'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td13'><P class='p0 ft5'>&nbsp;</P></td>
      <td colspan=2 class='tr2 td14'><P class='p5 ft6'><NOBR> ". htmlspecialchars((date('d/m/Y')))."</NOBR></P></td>
      </tr>
      <tr>
      <td colspan=8 rowspan=2 class='tr3 td9'><P class='p7 ft7'>hdfhdfh</P></td>
      <td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr5 td15'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td16'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td17'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td18'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr4 td19'><P class='p0 ft8'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr6 td10'><P class='p0 ft10'>&nbsp;</P></td>
      <td class='tr6 td11'><P class='p0 ft10'>&nbsp;</P></td>
      <td class='tr6 td12'><P class='p0 ft10'>&nbsp;</P></td>
      <td class='tr6 td13'><P class='p0 ft10'>&nbsp;</P></td>
      <td colspan=2 rowspan=2 class='tr2 td14'><P class='p5 ft4'>Mode/Terms of Payment</P></td>
      </tr>
      <tr>
      <td colspan=4 rowspan=2 class='tr7 td20'><P class='p7 ft11'>gty</P></td>
      <td class='tr8 td21'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td22'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td23'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td24'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td10'><P class='p0 ft12'>&nbsp;</P></td>
      <td colspan=2 rowspan=2 class='tr7 td25'><P class='p4 ft11'>Other References(s)</P></td>
      <td class='tr8 td13'><P class='p0 ft12'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr4 td21'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td22'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td23'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td24'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td13'><P class='p0 ft8'>&nbsp;</P></td>
      <td colspan=2 rowspan=2 class='tr9 td14'><P class='p5 ft13'><NOBR>Cheque/Online</NOBR></P></td>
      </tr>

      <tr>
      <td colspan=8 rowspan=2 class='tr3 td9'><P class='p7 ft7'>jghjj</P></td>
      <td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr5 td15'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td16'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td17'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td18'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr4 td19'><P class='p0 ft8'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr6 td10'><P class='p0 ft10'>&nbsp;</P></td>
      <td class='tr6 td11'><P class='p0 ft10'>&nbsp;</P></td>
      <td class='tr6 td12'><P class='p0 ft10'>&nbsp;</P></td>
      <td class='tr6 td13'><P class='p0 ft10'>&nbsp;</P></td>
      <td colspan=2 rowspan=2 class='tr7 td25 Date_formt'><P class='p4 ft11 '>". htmlspecialchars(date('d/m/Y', strtotime('+7 days')))."</P></td>

      </tr>
      <tr>
      <td colspan=4 rowspan=2 class='tr7 td20'><P class='p7 ft11'><NOBR>fgt</P></td>
      <td class='tr8 td21'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td22'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td23'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td24'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td10'><P class='p0 ft12'>&nbsp;</P></td>
      <td colspan=2 rowspan=2 class='tr7 td25'><P class='p4 ft11'>Due Date</P></td>
      <td class='tr8 td13'><P class='p0 ft12'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr4 td21'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td22'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td23'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td24'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td13'><P class='p0 ft8'>&nbsp;</P></td>

      </tr>

      <tr>
      <td colspan=4 rowspan=2 class='tr2 td20'><P class='p7 ft4'>hfhf</P></td>
      <td class='tr10 td21'><P class='p0 ft14'>&nbsp;</P></td>
      <td class='tr10 td22'><P class='p0 ft14'>&nbsp;</P></td>
      <td class='tr10 td23'><P class='p0 ft14'>&nbsp;</P></td>
      <td class='tr10 td24'><P class='p0 ft14'>&nbsp;</P></td>
      <td class='tr10 td10'><P class='p0 ft14'>&nbsp;</P></td>
      <td class='tr10 td11'><P class='p0 ft14'>&nbsp;</P></td>
      <td class='tr10 td12'><P class='p0 ft14'>&nbsp;</P></td>
      <td class='tr10 td13'><P class='p0 ft14'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr5 td21'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td22'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td23'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td24'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td10'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr11 td15'><P class='p0 ft15'>&nbsp;</P></td>
      <td class='tr11 td16'><P class='p0 ft15'>&nbsp;</P></td>
      <td class='tr11 td17'><P class='p0 ft15'>&nbsp;</P></td>
      <td class='tr11 td18'><P class='p0 ft15'>&nbsp;</P></td>
      <td class='tr5 td19'><P class='p0 ft9'>&nbsp;</P></td>
      </tr>

      <tr>
      <td class='tr13 td0'><P class='p7 ft11'> hhgfh</p><P class='p7 ft11'> gfjgfj</p><P class='p7 ft11'> gjfgj</p></td>
      <td class='tr13 td1'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td2'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td3'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td4'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td5'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td6'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td28'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td29'><P class='p0 ft18'>&nbsp;</P></td>
      <td colspan=3 class='tr13 td30'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td18'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td1'><P class='p0 ft18'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr1 td31'><P class='p7 ft3'>Client Details</P></td>
      <td class='tr1 td19'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td32'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td33'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td21'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td22'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td23'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td24'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>

      </tr>
      <tr>
      <td colspan=8 class='tr1 td9'><P class='p7 ft2'>". htmlspecialchars($invoice_generation[0]['gjgj'])."</P></td>
      <td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>
      </tr>
      <tr>
      <td colspan=4 class='tr1 td20'><P class='p6 ft3'>".htmlspecialchars($invoice_generation[0]['jgj'].''.$invoice_generation[0]['gjg'])."</P></td>
      <td class='tr1 td21'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td22'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td23'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td24'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td19'><P class='p0 ft0'>&nbsp;</P></td>
      </tr>
      <tr>
      <td colspan=5 class='tr14 td26'><P class='p7 ft22'>GST:".htmlspecialchars($invoice_generation[0]['jgj'])."</P></td>
      <td class='tr14 td22'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr14 td23'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr14 td24'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr14 td10'><P class='p0 ft0'>&nbsp;</P></td>
      </tr>
      <tr>
      <td colspan=5 class='tr14 td26'><P class='p7 ft22'>PAN: ".htmlspecialchars($invoice_generation[0]['gjgfj'])."</P></td>
      <td class='tr14 td22'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr14 td23'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr14 td24'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr14 td10'><P class='p0 ft0'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr15 td0'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td1'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td2'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td3'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td4'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td5'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td6'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td28'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td29'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td15'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td16'><P class='p0 ft23'>&nbsp;</P></td>
      <td colspan=3 class='tr15 td37'><P class='p0 ft23'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr9 td31' colspan='15'>
      <table style='width:740px;text-align: left; text-align: left;' cellspacing='0' cellpadding='5'>
      <tr>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>SI No</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Date</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Destination</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Vehicle</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Fixed Rate</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Make</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>No of Vehicle</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Extra km/hr</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 0px #000;'>Amount</th>
      </tr>";

      $i=1;
      $sum = 0;
      foreach($invoice_generation as $list_invoice) {
      $stringData .= "<tr>
      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". htmlspecialchars($i)."</td>
      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>".htmlspecialchars($list_invoice['assigned_date'])."</td>
      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". htmlspecialchars($list_invoice['bmv'])."</td>
      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>".htmlspecialchars($list_invoice['mvb'])."</td>

      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>";
      if($type=='vendor'){
      if($list_invoice['t_city_from']==$list_invoice['t_city_to']){

      $list1_invoice = $list_invoice['fixed_rate_l'];
      }else{
      $list1_invoice = $list_invoice['rate_from_to'];
      } }else if($type=='transporter') {
      if($list_invoice['t_city_from']==$list_invoice['t_city_to']){

      $list1_invoice = $list_invoice['vehicle_rate'];
      }else{
      $list1_invoice = $list_invoice['vehicle_rate'];
      }
      }
      $stringData .= "".htmlspecialchars($list1_invoice)."</td>
      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'></td>
      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". $list_invoice['vehicle_count_i']."</td>
      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". $list_invoice['extra_charges']."</td>
      <td style='border-bottom: solid 1px #000; border-right: solid 0px #000;'>";
      if($type=='vendor'){
      if($list_invoice['t_city_from']==$list_invoice['t_city_to']){
      $total_amt = round(($list_invoice['fixed_rate_l'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charges']);
      }else{
      $total_amt = round(($list_invoice['rate_from_to'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charges']);
      } }else if($type=='transporter'){
      if($list_invoice['t_city_from']==$list_invoice['t_city_to']){
      $total_amt = round(($list_invoice['vehicle_rate'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charge']);
      }else{
      $total_amt = round(($list_invoice['vehicle_rate'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charge']);
      }
      }
      $stringData .= "".htmlspecialchars($total_amt)." </td>
      </tr>";
      $i++;
      $sum+= $total_amt;
      }

      $stringData .= " </table>
      </td>

      </tr>


      <tr>
      <td class='tr18 td0' style='border-left: solid 0px #000;'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td43'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td2'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td3'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td4'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td45'><P class='p0 ft0'>&nbsp;</P></td>
      <td colspan=2 class='tr18 td53'><P class='p16 ft22'>TOTAL</P></td>
      <td class='tr18 td15'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td16'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td46'><P class='p0 ft0'>&nbsp;</P></td>
      <td colspan=2 class='tr18 td52' style='border-right: solid 0px #000;'><P class='p17 ft22'>INR ". htmlspecialchars(number_format($sum))."</P></td>
      </tr>

      <tr>
      <td class='tr18 td0' style='border-left: solid 0px #000;'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td43'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td2'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td3'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td4'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td45'><P class='p0 ft0'>&nbsp;</P></td>
      <td colspan=2 class='tr18 td53'><P class='p16 ft22'>TOTAL AMOUNT</P></td>
      <td class='tr18 td15'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td16'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td46'><P class='p0 ft0'>&nbsp;</P></td>
      <td colspan=2 class='tr18 td52' style='border-right: solid 0px #000;'><P class='p17 ft22'>INR";
      $amount = round(($sum*18)/100);
      $total_tax_amount = number_format($sum + $amount);
      $total_word = ($sum + $amount);
      $stringData .= "".htmlspecialchars($total_tax_amount)."</P></td>
      </tr>
      <tr>
      <td colspan=5 class='tr2 td26' style='border-left: solid 0px;'><P class='p7 ft4'>Tax Amount (in words) :</P></td>
      <td class='tr2 td22'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td23'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td24'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td54'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td11'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td12'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td47'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td27' style='border-right: solid 0px #000;'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td19'><P class='p0 ft5'>&nbsp;</P></td>
      </tr>
      <tr>
      <td colspan=10 class='tr19 td55' style='border-left: solid 0px;'><P class='p7 ft22'>";
      $number = $total_word;

      $stringData .= " ".htmlspecialchars($wordsing)."</P></td>
      <td class='tr19 td16'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr19 td46'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr19 td18' style='border-right: solid 0px #000;'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr19 td1'><P class='p0 ft0'>&nbsp;</P></td>
      </tr>



      </table>

      </div>

      </div>
      </body>
      </html>";
      //echo $stringData; die;
      fwrite($fh, $stringData);

      fclose($fh);

      include ('html2fpdf.php');

      $pdf = new HTML2FPDF();

      $pdf->AddPage();
      $pdf->DisplayPreferences('');
      $pdf->SetFont('Arial','B',16);
      //$pdf->SetFont('Arial','B',14);
      $fp = fopen($file_path, "r");

      $strContent = fread($fp, filesize($file_path));
      //echo "<pre>";print_r(file_get_contents($strContent)); die;
      fclose($fp);


      $pdf->WriteHTML($stringData);
      //$pdf->FancyTable($strContent);
      @header('Content-Type: application/pdf');

      @header('Content-Disposition: attachment; filename="' . $myFilePdf . '"');
      $pdf->Output($file_path_pdf, "F");

      $file = $file_path_pdf;



      $filename = $file_path_pdf;



      //@header('Content-Transfer-Encoding: binary');

      //@header('Accept-Ranges: bytes');

      @readfile($file);

      exit();


      this is my code please suggest if any changes required i try many times but can't simulate the problem.










      share|improve this question









      New contributor




      Ankit Kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      Sir i am using html2pdf and fpdf library in php to write my whole html code to pdf format.but now i am successfully create pdf file with name but when i open that file nothing display.please see the image enter image description here



      my whole code are



          $stringData = "<?xml version='1.0' encoding='iso-8859-1'?>
      <!DOCTYPE HTML PUBLIC '-//W3C//Dtd HTML 4.01//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
      <html xmlns='http://www.w3.org/1999/xhtml'>
      <HEAD>
      <META http-equiv='Content-Type' content='text/html; charset=UTF-8'>
      <META http-equiv='X-UA-Compatible' content='IE=8'>
      <TITLE>Invoice</TITLE>
      <META name='generator' content='BCL easyConverter SDK 5.0.101'>
      <style type='text/css'>

      body {margin-top: 0px;margin-left: 0px;}

      #page_1 {position:relative; overflow: hidden;margin: 0px auto;padding: 0px;border: none;width: 794px;height: 2353px;}
      #page_1 #id_1 {
      margin: 0px 0px 0px 45px;
      padding: 0px;
      width: 741px;
      overflow: hidden;
      border: solid 1px #000;
      padding-top: 130px;
      }
      #page_1 #id_2 {border:none;margin: 331px 0px 0px 4px;padding: 0px;border:none;width: 790px;overflow: hidden;}

      #page_1 #p1dimg1 {position:absolute;top:0px;left:0px;z-index:-1;width:794px;height:2353px;}
      #page_1 #p1dimg1 #p1img1 {width:832px;height:auto;}
      td.tr7.td25.Date_formt {
      border-top: solid 1px;
      position: relative;
      }
      .p12{text-align: right;padding-right: 8px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p13{text-align: right;padding-right: 5px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p14{text-align: left;padding-left: 28px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p15{text-align: right;padding-right: 6px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p16{text-align: left;padding-left: 35px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p17{text-align: left;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p18{text-align: left;padding-left: 30px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p19{text-align: right;padding-right: 29px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p20{text-align: left;padding-left: 15px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p21{text-align: right;padding-right: 7px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p22{text-align: right;padding-right: 27px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p23{text-align: left;padding-left: 126px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p24{text-align: center;padding-right: 1px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p25{text-align: left;padding-left: 57px;margin-top: 0px;margin-bottom: 0px;white-space: nowrap;}
      .p26{text-align: left;padding-left: 6px;margin-top: 32px;margin-bottom: 0px;}
      .p27{text-align: justify;padding-left: 6px;padding-right: 51px;margin-top: 0px;margin-bottom: 0px;}
      .p28{text-align: left;margin-top: 0px;margin-bottom: 0px;}

      .td0{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 44px;vertical-align: bottom;}
      .td1{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 3px;vertical-align: bottom;}
      .td2{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 86px;vertical-align: bottom;}
      .td3{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 32px;vertical-align: bottom;}
      .td4{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 41px;vertical-align: bottom;}
      .td5{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 60px;vertical-align: bottom;}
      .td6{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 27px;vertical-align: bottom;}
      .td7{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 127px;vertical-align: bottom;}
      .td8{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 286px;vertical-align: bottom;}
      .td9{padding: 0px;margin: 0px;width: 362px;vertical-align: bottom;}
      .td10{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 57px;vertical-align: bottom;}
      .td11{padding: 0px;margin: 0px;width: 85px;vertical-align: bottom;}
      .td12{padding: 0px;margin: 0px;width: 40px;vertical-align: bottom;}
      .td13{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 17px;vertical-align: bottom;}
      .td14{padding: 0px;margin: 0px;width: 143px;vertical-align: bottom;}
      .td15{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 85px;vertical-align: bottom;}
      .td16{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 40px;vertical-align: bottom;}
      .td17{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 17px;vertical-align: bottom;}
      .td18{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 140px;vertical-align: bottom;}
      .td19{padding: 0px;margin: 0px;width: 3px;vertical-align: bottom;}
      .td20{padding: 0px;margin: 0px;width: 165px;vertical-align: bottom;}
      .td21{padding: 0px;margin: 0px;width: 41px;vertical-align: bottom;}
      .td22{padding: 0px;margin: 0px;width: 60px;vertical-align: bottom;}
      .td23{padding: 0px;margin: 0px;width: 27px;vertical-align: bottom;}
      .td24{padding: 0px;margin: 0px;width: 69px;vertical-align: bottom;}
      .td25{padding: 0px;margin: 0px;width: 125px;vertical-align: bottom;}
      .td26{padding: 0px;margin: 0px;width: 206px;vertical-align: bottom;}
      .td27{padding: 0px;margin: 0px;width: 140px;vertical-align: bottom;}
      .td28{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 69px;vertical-align: bottom;}
      .td29{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 57px;vertical-align: bottom;}
      .td30{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 142px;vertical-align: bottom;}
      .td31{padding: 0px;margin: 0px;width: 44px;vertical-align: bottom;}
      .td32{padding: 0px;margin: 0px;width: 86px;vertical-align: bottom;}
      .td33{padding: 0px;margin: 0px;width: 32px;vertical-align: bottom;}
      .td34{padding: 0px;margin: 0px;width: 286px;vertical-align: bottom;}
      .td35{padding: 0px;margin: 0px;width: 201px;vertical-align: bottom;}
      .td36{padding: 0px;margin: 0px;width: 198px;vertical-align: bottom;}
      .td37{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 161px;vertical-align: bottom;}
      .td38{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 2px;vertical-align: bottom;}
      .td39{padding: 0px;margin: 0px;width: 118px;vertical-align: bottom;}
      .td40{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 26px;vertical-align: bottom;}
      .td41{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 68px;vertical-align: bottom;}
      .td42{padding: 0px;margin: 0px;width: 161px;vertical-align: bottom;}
      .td43{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 2px;vertical-align: bottom;}
      .td44{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 26px;vertical-align: bottom;}
      .td45{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 68px;vertical-align: bottom;}
      .td46{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 18px;vertical-align: bottom;}
      .td47{padding: 0px;margin: 0px;width: 18px;vertical-align: bottom;}
      .td48{padding: 0px;margin: 0px;width: 159px;vertical-align: bottom;}
      .td49{padding: 0px;margin: 0px;width: 158px;vertical-align: bottom;}
      .td50{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 159px;vertical-align: bottom;}
      .td51{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 159px;vertical-align: bottom;}
      .td52{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 143px;vertical-align: bottom;}
      .td53{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 86px;vertical-align: bottom;}
      .td54{padding: 0px;margin: 0px;width: 58px;vertical-align: bottom;}
      .td55{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 505px;vertical-align: bottom;}
      .td56{border-left: #000000 1px solid;padding: 0px;margin: 0px;width: 43px;vertical-align: bottom;}
      .td57{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 88px;vertical-align: bottom;}
      .td58{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 100px;vertical-align: bottom;}
      .td59{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 58px;vertical-align: bottom;}
      .td60{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 125px;vertical-align: bottom;}
      .td61{border-left: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 43px;vertical-align: bottom;}
      .td62{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 85px;vertical-align: bottom;}
      .td63{border-right: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 59px;vertical-align: bottom;}
      .td64{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 89px;vertical-align: bottom;}
      .td65{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 158px;vertical-align: bottom;}
      .td66{border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 118px;vertical-align: bottom;}
      .td67{border-left: #000000 1px solid;padding: 0px;margin: 0px;width: 164px;vertical-align: bottom;}
      .td68{border-left: #000000 1px solid;border-bottom: #000000 1px solid;padding: 0px;margin: 0px;width: 419px;vertical-align: bottom;}
      .td69{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 59px;vertical-align: bottom;}
      .td70{border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 412px;vertical-align: bottom;}
      .td71{border-left: #000000 1px solid;border-right: #000000 1px solid;padding: 0px;margin: 0px;width: 264px;vertical-align: bottom;}
      .td72{padding: 0px;margin: 0px;width: 96px;vertical-align: bottom;}

      .tr0{height: 21px;}
      .tr1{height: 15px;}
      .tr2{height: 13px;}
      .tr3{height: 11px;}
      .tr4{height: 5px;}
      .tr5{height: 4px;}
      .tr6{height: 6px;}
      .tr7{height: 12px;}
      .tr8{height: 7px;}
      .tr9{height: 14px;}
      .tr10{height: 9px;}
      .tr11{height: 3px;}
      .tr12{height: 23px;}
      .tr13{height: 8px;font-size: 13px;}
      .tr14{height: 16px;}
      .tr15{height: 2px;}
      .tr16{height: 25px;}
      .tr17{height: 22px;}
      .tr18{height: 17px;}
      .tr19{height: 19px;}
      .tr20{height: 10px;}

      .t0{width: 706px;font: 11px 'Arial';}

      </style>
      </HEAD>

      <body>
      <div id='page_1'>
      <div id='p1dimg1'>
      <img src=". base_url()."scripts/images/bg.jpg id='p1img1'></div>


      <div class='dclr'></div>
      <div id='id_1'>
      <table cellpadding='0' cellspacing='0' class='t0'>
      <tr>
      <td class='tr0 td0'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr0 td1'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr0 td2'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr0 td3'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr0 td4'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr0 td5'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr0 td6'><P class='p0 ft0'>&nbsp;</P></td>
      <td colspan=2 class='tr0 td7'><P class='p1 ft1'>Tax Invoice</P></td>
      <td colspan=5 class='tr0 td8'><P class='p2 ft1'></P></td>
      </tr>
      <tr>
      <td colspan=8 class='tr1 td9'><P class='p3 ft2'>dgdsgdg</P></td>
      <td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td11'><P class='p4 ft3'>Invoice No.</P></td>
      <td class='tr1 td12'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td13'><P class='p0 ft0'>&nbsp;</P></td>
      <td colspan=2 class='tr1 td14'><P class='p5 ft3'>Date</P></td>
      </tr>
      <tr>
      <td colspan=8 class='tr2 td9'><P class='p6 ft4'>gdgdgdg</P></td>
      <td class='tr2 td10'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td11'><P class='p6 pl-1 ft4'></P>".htmlspecialchars($update_invoice)."</td>
      <td class='tr2 td12'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td13'><P class='p0 ft5'>&nbsp;</P></td>
      <td colspan=2 class='tr2 td14'><P class='p5 ft6'><NOBR> ". htmlspecialchars((date('d/m/Y')))."</NOBR></P></td>
      </tr>
      <tr>
      <td colspan=8 rowspan=2 class='tr3 td9'><P class='p7 ft7'>hdfhdfh</P></td>
      <td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr5 td15'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td16'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td17'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td18'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr4 td19'><P class='p0 ft8'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr6 td10'><P class='p0 ft10'>&nbsp;</P></td>
      <td class='tr6 td11'><P class='p0 ft10'>&nbsp;</P></td>
      <td class='tr6 td12'><P class='p0 ft10'>&nbsp;</P></td>
      <td class='tr6 td13'><P class='p0 ft10'>&nbsp;</P></td>
      <td colspan=2 rowspan=2 class='tr2 td14'><P class='p5 ft4'>Mode/Terms of Payment</P></td>
      </tr>
      <tr>
      <td colspan=4 rowspan=2 class='tr7 td20'><P class='p7 ft11'>gty</P></td>
      <td class='tr8 td21'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td22'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td23'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td24'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td10'><P class='p0 ft12'>&nbsp;</P></td>
      <td colspan=2 rowspan=2 class='tr7 td25'><P class='p4 ft11'>Other References(s)</P></td>
      <td class='tr8 td13'><P class='p0 ft12'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr4 td21'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td22'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td23'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td24'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td13'><P class='p0 ft8'>&nbsp;</P></td>
      <td colspan=2 rowspan=2 class='tr9 td14'><P class='p5 ft13'><NOBR>Cheque/Online</NOBR></P></td>
      </tr>

      <tr>
      <td colspan=8 rowspan=2 class='tr3 td9'><P class='p7 ft7'>jghjj</P></td>
      <td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr5 td15'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td16'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td17'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td18'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr4 td19'><P class='p0 ft8'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr6 td10'><P class='p0 ft10'>&nbsp;</P></td>
      <td class='tr6 td11'><P class='p0 ft10'>&nbsp;</P></td>
      <td class='tr6 td12'><P class='p0 ft10'>&nbsp;</P></td>
      <td class='tr6 td13'><P class='p0 ft10'>&nbsp;</P></td>
      <td colspan=2 rowspan=2 class='tr7 td25 Date_formt'><P class='p4 ft11 '>". htmlspecialchars(date('d/m/Y', strtotime('+7 days')))."</P></td>

      </tr>
      <tr>
      <td colspan=4 rowspan=2 class='tr7 td20'><P class='p7 ft11'><NOBR>fgt</P></td>
      <td class='tr8 td21'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td22'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td23'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td24'><P class='p0 ft12'>&nbsp;</P></td>
      <td class='tr8 td10'><P class='p0 ft12'>&nbsp;</P></td>
      <td colspan=2 rowspan=2 class='tr7 td25'><P class='p4 ft11'>Due Date</P></td>
      <td class='tr8 td13'><P class='p0 ft12'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr4 td21'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td22'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td23'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td24'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td10'><P class='p0 ft8'>&nbsp;</P></td>
      <td class='tr4 td13'><P class='p0 ft8'>&nbsp;</P></td>

      </tr>

      <tr>
      <td colspan=4 rowspan=2 class='tr2 td20'><P class='p7 ft4'>hfhf</P></td>
      <td class='tr10 td21'><P class='p0 ft14'>&nbsp;</P></td>
      <td class='tr10 td22'><P class='p0 ft14'>&nbsp;</P></td>
      <td class='tr10 td23'><P class='p0 ft14'>&nbsp;</P></td>
      <td class='tr10 td24'><P class='p0 ft14'>&nbsp;</P></td>
      <td class='tr10 td10'><P class='p0 ft14'>&nbsp;</P></td>
      <td class='tr10 td11'><P class='p0 ft14'>&nbsp;</P></td>
      <td class='tr10 td12'><P class='p0 ft14'>&nbsp;</P></td>
      <td class='tr10 td13'><P class='p0 ft14'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr5 td21'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td22'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td23'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td24'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr5 td10'><P class='p0 ft9'>&nbsp;</P></td>
      <td class='tr11 td15'><P class='p0 ft15'>&nbsp;</P></td>
      <td class='tr11 td16'><P class='p0 ft15'>&nbsp;</P></td>
      <td class='tr11 td17'><P class='p0 ft15'>&nbsp;</P></td>
      <td class='tr11 td18'><P class='p0 ft15'>&nbsp;</P></td>
      <td class='tr5 td19'><P class='p0 ft9'>&nbsp;</P></td>
      </tr>

      <tr>
      <td class='tr13 td0'><P class='p7 ft11'> hhgfh</p><P class='p7 ft11'> gfjgfj</p><P class='p7 ft11'> gjfgj</p></td>
      <td class='tr13 td1'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td2'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td3'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td4'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td5'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td6'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td28'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td29'><P class='p0 ft18'>&nbsp;</P></td>
      <td colspan=3 class='tr13 td30'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td18'><P class='p0 ft18'>&nbsp;</P></td>
      <td class='tr13 td1'><P class='p0 ft18'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr1 td31'><P class='p7 ft3'>Client Details</P></td>
      <td class='tr1 td19'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td32'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td33'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td21'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td22'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td23'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td24'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>

      </tr>
      <tr>
      <td colspan=8 class='tr1 td9'><P class='p7 ft2'>". htmlspecialchars($invoice_generation[0]['gjgj'])."</P></td>
      <td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>
      </tr>
      <tr>
      <td colspan=4 class='tr1 td20'><P class='p6 ft3'>".htmlspecialchars($invoice_generation[0]['jgj'].''.$invoice_generation[0]['gjg'])."</P></td>
      <td class='tr1 td21'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td22'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td23'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td24'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td10'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr1 td19'><P class='p0 ft0'>&nbsp;</P></td>
      </tr>
      <tr>
      <td colspan=5 class='tr14 td26'><P class='p7 ft22'>GST:".htmlspecialchars($invoice_generation[0]['jgj'])."</P></td>
      <td class='tr14 td22'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr14 td23'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr14 td24'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr14 td10'><P class='p0 ft0'>&nbsp;</P></td>
      </tr>
      <tr>
      <td colspan=5 class='tr14 td26'><P class='p7 ft22'>PAN: ".htmlspecialchars($invoice_generation[0]['gjgfj'])."</P></td>
      <td class='tr14 td22'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr14 td23'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr14 td24'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr14 td10'><P class='p0 ft0'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr15 td0'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td1'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td2'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td3'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td4'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td5'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td6'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td28'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td29'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td15'><P class='p0 ft23'>&nbsp;</P></td>
      <td class='tr15 td16'><P class='p0 ft23'>&nbsp;</P></td>
      <td colspan=3 class='tr15 td37'><P class='p0 ft23'>&nbsp;</P></td>
      </tr>
      <tr>
      <td class='tr9 td31' colspan='15'>
      <table style='width:740px;text-align: left; text-align: left;' cellspacing='0' cellpadding='5'>
      <tr>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>SI No</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Date</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Destination</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Vehicle</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Fixed Rate</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Make</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>No of Vehicle</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>Extra km/hr</th>
      <th style='border-bottom: solid 1px #000; border-right: solid 0px #000;'>Amount</th>
      </tr>";

      $i=1;
      $sum = 0;
      foreach($invoice_generation as $list_invoice) {
      $stringData .= "<tr>
      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". htmlspecialchars($i)."</td>
      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>".htmlspecialchars($list_invoice['assigned_date'])."</td>
      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". htmlspecialchars($list_invoice['bmv'])."</td>
      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>".htmlspecialchars($list_invoice['mvb'])."</td>

      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>";
      if($type=='vendor'){
      if($list_invoice['t_city_from']==$list_invoice['t_city_to']){

      $list1_invoice = $list_invoice['fixed_rate_l'];
      }else{
      $list1_invoice = $list_invoice['rate_from_to'];
      } }else if($type=='transporter') {
      if($list_invoice['t_city_from']==$list_invoice['t_city_to']){

      $list1_invoice = $list_invoice['vehicle_rate'];
      }else{
      $list1_invoice = $list_invoice['vehicle_rate'];
      }
      }
      $stringData .= "".htmlspecialchars($list1_invoice)."</td>
      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'></td>
      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". $list_invoice['vehicle_count_i']."</td>
      <td style='border-bottom: solid 1px #000; border-right: solid 1px #000;'>". $list_invoice['extra_charges']."</td>
      <td style='border-bottom: solid 1px #000; border-right: solid 0px #000;'>";
      if($type=='vendor'){
      if($list_invoice['t_city_from']==$list_invoice['t_city_to']){
      $total_amt = round(($list_invoice['fixed_rate_l'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charges']);
      }else{
      $total_amt = round(($list_invoice['rate_from_to'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charges']);
      } }else if($type=='transporter'){
      if($list_invoice['t_city_from']==$list_invoice['t_city_to']){
      $total_amt = round(($list_invoice['vehicle_rate'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charge']);
      }else{
      $total_amt = round(($list_invoice['vehicle_rate'] * $list_invoice['vehicle_count_i'])+$list_invoice['extra_charge']);
      }
      }
      $stringData .= "".htmlspecialchars($total_amt)." </td>
      </tr>";
      $i++;
      $sum+= $total_amt;
      }

      $stringData .= " </table>
      </td>

      </tr>


      <tr>
      <td class='tr18 td0' style='border-left: solid 0px #000;'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td43'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td2'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td3'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td4'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td45'><P class='p0 ft0'>&nbsp;</P></td>
      <td colspan=2 class='tr18 td53'><P class='p16 ft22'>TOTAL</P></td>
      <td class='tr18 td15'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td16'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td46'><P class='p0 ft0'>&nbsp;</P></td>
      <td colspan=2 class='tr18 td52' style='border-right: solid 0px #000;'><P class='p17 ft22'>INR ". htmlspecialchars(number_format($sum))."</P></td>
      </tr>

      <tr>
      <td class='tr18 td0' style='border-left: solid 0px #000;'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td43'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td2'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td3'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td4'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td45'><P class='p0 ft0'>&nbsp;</P></td>
      <td colspan=2 class='tr18 td53'><P class='p16 ft22'>TOTAL AMOUNT</P></td>
      <td class='tr18 td15'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td16'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr18 td46'><P class='p0 ft0'>&nbsp;</P></td>
      <td colspan=2 class='tr18 td52' style='border-right: solid 0px #000;'><P class='p17 ft22'>INR";
      $amount = round(($sum*18)/100);
      $total_tax_amount = number_format($sum + $amount);
      $total_word = ($sum + $amount);
      $stringData .= "".htmlspecialchars($total_tax_amount)."</P></td>
      </tr>
      <tr>
      <td colspan=5 class='tr2 td26' style='border-left: solid 0px;'><P class='p7 ft4'>Tax Amount (in words) :</P></td>
      <td class='tr2 td22'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td23'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td24'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td54'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td11'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td12'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td47'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td27' style='border-right: solid 0px #000;'><P class='p0 ft5'>&nbsp;</P></td>
      <td class='tr2 td19'><P class='p0 ft5'>&nbsp;</P></td>
      </tr>
      <tr>
      <td colspan=10 class='tr19 td55' style='border-left: solid 0px;'><P class='p7 ft22'>";
      $number = $total_word;

      $stringData .= " ".htmlspecialchars($wordsing)."</P></td>
      <td class='tr19 td16'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr19 td46'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr19 td18' style='border-right: solid 0px #000;'><P class='p0 ft0'>&nbsp;</P></td>
      <td class='tr19 td1'><P class='p0 ft0'>&nbsp;</P></td>
      </tr>



      </table>

      </div>

      </div>
      </body>
      </html>";
      //echo $stringData; die;
      fwrite($fh, $stringData);

      fclose($fh);

      include ('html2fpdf.php');

      $pdf = new HTML2FPDF();

      $pdf->AddPage();
      $pdf->DisplayPreferences('');
      $pdf->SetFont('Arial','B',16);
      //$pdf->SetFont('Arial','B',14);
      $fp = fopen($file_path, "r");

      $strContent = fread($fp, filesize($file_path));
      //echo "<pre>";print_r(file_get_contents($strContent)); die;
      fclose($fp);


      $pdf->WriteHTML($stringData);
      //$pdf->FancyTable($strContent);
      @header('Content-Type: application/pdf');

      @header('Content-Disposition: attachment; filename="' . $myFilePdf . '"');
      $pdf->Output($file_path_pdf, "F");

      $file = $file_path_pdf;



      $filename = $file_path_pdf;



      //@header('Content-Transfer-Encoding: binary');

      //@header('Accept-Ranges: bytes');

      @readfile($file);

      exit();


      this is my code please suggest if any changes required i try many times but can't simulate the problem.







      php pdf fpdf html2pdf






      share|improve this question









      New contributor




      Ankit Kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Ankit Kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited yesterday





















      New contributor




      Ankit Kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked yesterday









      Ankit Kumar

      1




      1




      New contributor




      Ankit Kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Ankit Kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Ankit Kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      put on hold as off-topic by Yvette Colomb 10 hours ago


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Yvette Colomb

      If this question can be reworded to fit the rules in the help center, please edit the question.




      put on hold as off-topic by Yvette Colomb 10 hours ago


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Yvette Colomb

      If this question can be reworded to fit the rules in the help center, please edit the question.





























          active

          oldest

          votes






















          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes

          Popular posts from this blog

          404 Error Contact Form 7 ajax form submitting

          How to know if a Active Directory user can login interactively

          TypeError: fit_transform() missing 1 required positional argument: 'X'