DeiNeMudda Posted September 29, 2011 Posted September 29, 2011 (edited) Hello, Im editing the PDF Invoice Modul for a easier view because I want to generate automatically Eventtickets. Im working with the pdf_packingslip.php and now I have the problem that I want to change the X position of the Invoice Address box and the product title outside of the standard table Questions: Why I cant change the X position in my pdf_packingslip.php but the Y position ? //Draw Box for Invoice Address if ( PDF_PCKSLP_SHOW_SENDTO == 'true' ) { $text_color=explode(",",PDF_PCKSLP_SENDTO_LINE_COLOR ); $pdf->SetDrawColor( $text_color[0], $text_color[1], $text_color[2] ); $pdf->SetLineWidth(0); $text_color=explode(",",PDF_PCKSLP_SENDTO_FILL_COLOR ); $pdf->SetFillColor( $text_color[0], $text_color[1], $text_color[2] ); $pdf->RoundedRect(0); //Draw the invoice address text $pdf->SetFont( PDF_PCKSLP_SENDTO_TEXT_FONT, PDF_PCKSLP_SENDTO_TEXT_EFFECT, PDF_PCKSLP_SENDTO_TEXT_HEIGHT); $text_color=explode(",",PDF_PCKSLP_SENDTO_TEXT_COLOR ); $pdf->SetTextColor($text_color[0], $text_color[1], $text_color[2]); $pdf->Text(11,77, ENTRY_SHIP_TO); $pdf->SetX(100); // ### Cant change, why? ### $pdf->SetY(50); $pdf->Cell(9); $pdf->MultiCell(70, 4.1, tep_address_format(1, $order->delivery, '', '', "\n"),0,'L', '1' ); } and how I can extract the product title and set it to an other place? Edit//Sorry for my bad english Edited September 29, 2011 by DeiNeMudda Quote
IWAS Posted November 18, 2011 Posted November 18, 2011 I had the same problems but not only do you have to change the x position, you have to change the first number in the parenthesis after text and or mutlicell. I found a formula for it months ago, but can't find it now. Trial and error is tedious but eventually you can get it positioned where you want it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.