Jump to content

DragonHost

Retired Forum Member
  • Posts

    2
  • Joined

  • Last visited

About DragonHost

DragonHost's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. I am experiencing the same issues, did you find a solution or are we getting the big silence?
  2. I have been heavily editing a template I purchased from somebody (regret doing it...design was fab but actual product had alot to be desired)...but the 1 issue I am having is with the product description/price fields not lining up with the rest of the layout.....they sit too far to the left. Would anybody be able to help me? Code as set out from the 2 columns above. $pdf->SetDrawColor(0); $pdf->SetFillColor(0); $pdf->SetTextColor(255); $pdf->SetFont('Arial','',; $pdf->Cell(50,7,"Total Amount Due",1,0,'L',1); $pdf->Cell(30,7,$duedate,1,0,'L',1); $pdf->Cell(30,7,$currencysymbol.$total,1,0,'R',1);$pdf->Ln(); $pdf->SetTextColor(0); $pdf->SetXY(20,77); $pdf->Cell(30,7,"Balance Brought Forward",0,0,'L',0); $pdf->Cell(30,7,$currencysymbol.$balancebroughtforward,0,0,'R',0);$pdf->Ln();$pdf->Ln(); foreach ($invoiceitems AS $item) { if (strlen($item["description"])>75) { $numlines = ceil(strlen($item["description"])/75); $cellheight = $numlines * 5; $pdf->MultiCell(80,$cellheight,$item["description"],0,'L','',0); $pdf->MultiCell(20,$cellheight,$currencysymbol.$item["amount"],0,'L','',0); $pdf->SetXY(20,$pdf->GetY()); } else { $pdf->Cell(80,2,$item["description"],0); $pdf->Cell(30,2,$currencysymbol.$item["amount"],0,0,'R'); } $pdf->Ln(); } http://www.dragonhost.net.au/images/other/templateallign.JPG
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated