Page 1 of 1

charset and positioning problem...

Posted: 28 Sep 2008, 11:29
by matc
Hi there,

I nearly got everything perfectly working but there are still 2 problems left:
as you can see in the attached screenshots, there is a problem with the charset and ther german "Umlaute".
second I have problems with overlapping text in the item text. please have a look at the second screenshot.
I´m also wonderung where to change the "Zahlungsziel" which is 30 days at the moment. Must be somewhere in VM I guess...

here is what I changed in the admnistrator/components/com_virtuemart/pdf/delivery.pdf.php

Code: Select all

	// PDF
	$pdf->SetFont($pdfFont,'',9);
	$pdf->Cell(30,5,$db->f('order_item_sku'),0,0,'L');
	if($d['gen'] == 'bill') {
// START modification by mat-c
		$x = $pdf->GetX();
		$y = $pdf->GetY();
	   	$order_item_name = ereg_replace ("<br/>", "\n", $db->f("order_item_name") );
		$order_item_name2 = $order_item_name . "\n";
		$pdf->MultiCell(65,5,$pdf->unhtmlentities($order_item_name2),0,0,'L');
		$pdf->Ln(5);
		$x2 = $x + 65;
		$pdf->SetXY($x2,$y);
//END modification by mat-c
		$pdf->Cell(10,5,$db->f('product_quantity'),0,0,'C');
		$pdf->Cell(10,5,$db->f('product_quantity_delivered'),0,0,'C');
		$pdf->Cell(10,5,$remaining,0,0,'C');

Re: charset and positioning problem...

Posted: 28 Sep 2008, 22:30
by Jan
Hi,

first screenshot - maybe you should change the code for you - from cell to multicell:
maybe this will help you:
https://www.phoca.cz/documentation/index ... te-receipt
question 2

second screenshot - you can set it while creating new invoice.. Delivery - new delivery (invoice) - Invoice is due to ... days...

Jan

Re: charset and positioning problem...

Posted: 30 Sep 2008, 21:29
by matc
Hi & thanks for the reply...
As you can see in the code I posted before I´m already using Multicell... :(
And about the second screenshot: I ment the wrong character, not the number of days... :)

Re: charset and positioning problem...

Posted: 30 Sep 2008, 21:55
by Jan
I wrote second screenshot be meant answer this question:
I´m also wonderung where to change the "Zahlungsziel" which is 30 days at the moment. Must be somewhere in VM I guess...
ad multicell - so maybe rewriting the X and Y postions must be done :( (e.g. adding a space for possilbe two rows and begina with the next content below this space, with help of Set X and Set Y methods in tcpdf

Umlaute - Ich habe alle deutsche Spezialbuchstaben getestet (ä, ö, ü, ß), Ich habe auch Hack für Euro Symbol gemacht und es funktioniert bei mir, vielleicht ist da ein Problem mit UTF (vielleicht in Sprachdateien, vielleicht sind nicht die Sprachdateien in VM als UTF without BOM gespeichert, vielleicht ist ein Problem mit der Database - Collation - UTF ???)

Jan