{
$this->LineTo($col += $width, $iline2,$col, $iline4);
}
- $this->LineTo($right, $iline2 ,$right, $iline4);
$this->LineTo($this->leftMargin, $iline5 ,$this->leftMargin, $iline7);
- $this->LineTo($this->cols[$cols - 2] + 4, $iline5 ,$this->cols[$cols - 2] + 4, $iline7);
+ if ($this->l['a_meta_dir'] == 'rtl') // avoid line overwrite in rtl language
+ $this->LineTo($this->cols[$cols - 2], $iline5 ,$this->cols[$cols - 2], $iline7);
+ else
+ $this->LineTo($this->cols[$cols - 2] + 4, $iline5 ,$this->cols[$cols - 2] + 4, $iline7);
$this->LineTo($right, $iline5 ,$right, $iline7);
// Company Logo
$this->NewLine();
- if ($this->company['coy_logo'] != '')
+ $logo = company_path() . "/images/" . $this->company['coy_logo'];
+ if ($this->company['coy_logo'] != '' && file_exists($logo))
{
- $logo = company_path() . "/images/" . $this->company['coy_logo'];
$this->AddImage($logo, $ccol, $this->row, 0, 40);
}
else
$this->NewLine();
$this->Text($mcol + 100, $this->formData['document_name']);
$this->Text($mcol + 180, $this->formData['document_number']);
-
- if ($this->pageNumber > 1 && !strstr($this->filename, "Bulk"))
- $this->Text($this->endLine - 35, _("Page") . ' ' . $this->pageNumber);
+ $this->NewLine(2);
+
+ if ($this->pageNumber > 1)
+ $this->Text($mcol + 180, _("Page") . ' ' . $this->pageNumber);
$this->row = $iline1 - $this->lineHeight;
$this->fontSize -= 4;
$this->Text($ccol, $Addr1['title'], $icol);
$this->row = $temp;
$this->Text($mcol, $Addr2['name']);
$this->NewLine();
- $this->TextWrapLines($mcol, $this->rightMargin - $mcol, $Addr2['address']);
+ $this->TextWrapLines($mcol, $this->rightMargin - $mcol, $Addr2['address'], 'left', 0, 0, NULL, 1);
// Auxiliary document information
$col = $this->leftMargin;
$this->Font();
$temp = $iline6 - $this->lineHeight - 2;
-?>