To change layout of address box

Hi,

I’m on 4.0.2 and I’m a beginner on Dolibarr. It is about the addess box with my company’s address details etc. that appears on all kind of PDF documents, like Invoices Delivery notes etc. My company’s phone number and fax number apperars on the same row and there is not space enough inside the box so half of the fax number is not visible.

I can’t figure out where to make a linebreak so that the phone and fax numbers will appears on separate rows. Could anyone maybe explain that to me?

All the best

Hans

Look into (and all othe forms in turn):

Best regards

Thank you for the answer.

I’ve been in there looking and I’ve made a new PDF for invoices where I changed the position of the clients address box because it did not print out so it was fully visible in the window of the envelope. But reading the code I can’t figure out how to change the layout of the sender address box. I just can’t figure out how to do the line break between telephone and fax.

Below is a part of the code that I suppose do the print out but how is it constructed, where is phone and fax specified ???

[code]
// Show list of linked objects
$posy = pdf_writeLinkedObjects($pdf, $object, $outputlangs, $posx, $posy, $w, 3, ‘R’, $default_font_size);

	if ($showaddress)
	{
		// Sender properties
		$carac_emetteur = pdf_build_address($outputlangs, $this->emetteur, $object->thirdparty);

		// Show sender
		$posy=!empty($conf->global->MAIN_PDF_USE_ISO_LOCATION) ? 40 : 42;
		$posx=$this->marge_gauche;
		if (! empty($conf->global->MAIN_INVERT_SENDER_RECIPIENT)) $posx=$this->page_largeur-$this->marge_droite-80;

		$hautcadre=!empty($conf->global->MAIN_PDF_USE_ISO_LOCATION) ? 38 : 40;
		$widthrecbox=!empty($conf->global->MAIN_PDF_USE_ISO_LOCATION) ? 92 : 82;


		// Show sender frame
		$pdf->SetTextColor(0,0,0);
		$pdf->SetFont('','', $default_font_size - 2);
		$pdf->SetXY($posx,$posy-5);
		$pdf->MultiCell(66,5, $outputlangs->transnoentities("BillFrom").":", 0, 'L');
		$pdf->SetXY($posx,$posy);
		$pdf->SetFillColor(230,230,230);
		$pdf->MultiCell($widthrecbox, $hautcadre, "", 0, 'R', 1);
		$pdf->SetTextColor(0,0,60);

		// Show sender name
		$pdf->SetXY($posx+2,$posy+3);
		$pdf->SetFont('','B', $default_font_size);
		$pdf->MultiCell($widthrecbox-2, 4, $outputlangs->convToOutputCharset($this->emetteur->name), 0, 'L');
		$posy=$pdf->getY();

		// Show sender information
		$pdf->SetXY($posx+2,$posy);
		$pdf->SetFont('','', $default_font_size - 1);
		$pdf->MultiCell($widthrecbox-2, 4, $carac_emetteur, 0, 'L');[/code]

All the best

Hans

It’s in ‘…/htdocs/core/lib/pdf.lib.php’:

Replace it with “/n”.

Best regards

Must read “\n” …

Best regards

Thank you so much !!!

All the best

Hans

Solved