Dear All,
This has been bugging me for more than six months now. Trying to sign up the forum in nl but never got approved. Since I can't speak dutch, it's logical that I ask for help here.
PDFOC generate my invoices and packing slip, it's an wonderful addon. But I am never able to get the shipping text show proper on prints. Reason being is becasue the shipping mod I use contain html code and PDFOC may had made no provision to clean it up. So..... it looks something like this on the print out.
[SCR]http://www.gamenano.com/images/PDFOC-ShippingMethodLineFault.jpg[/SCR]
I have been looking at the code, and PDFOC do clean up html code, but I can never find where the shipping method text in the whole of this invoice template file. Below is the code that shows PDFOC do use html clean up in their code.
PHP Code:
//
if ($pos < PDFOC_BOTTOM_MARGIN) {
$secondpage = true;
return;
}
$pdf->ezSetY($pos);
$cy = $pdf->ezText(zen_date_short($orders_comments->fields['date_added']) ,7); // 7 is font size here
$pdf->ezText("<b>". PDFOC_TEXT_COMMENTS . "</b>",PDFOC_COMMENTS_FONT_SIZE);
$cx = $pdf->getTextWidth(PDFOC_COMMENTS_FONT_SIZE,PDFOC_TEXT_COMMENTS) + PDFOC_LEFT_MARGIN;
$pdf->ezSetY($cy);
$y = $pdf->ezText(pdfoc_html_cleanup($orders_comments->fields['comments']),PDFOC_COMMENTS_FONT_SIZE, array('aleft'=>$cx+10));
$pos = ($y -5);
} // EOIF zen_not_null
So why the shipping method got html code???
Please help, you make me one very happy man once I get a clearly printed invoice. Many many thanks for you help.