diff --git a/main/inc/lib/html2pdf/html2pdf.class.php b/main/inc/lib/html2pdf/html2pdf.class.php index 2c68f50885..ac39834d7c 100644 --- a/main/inc/lib/html2pdf/html2pdf.class.php +++ b/main/inc/lib/html2pdf/html2pdf.class.php @@ -2829,18 +2829,7 @@ if (!defined('__CLASS_HTML2PDF__')) $this->style->setPosition($this->pdf->x, $this->pdf->y); $this->style->FontSet(); - if ($this->style->value['text-indent']>0) $this->pdf->x+= $this->style->value['text-indent']; - - // Hack for improve center paragraph by Juan Carlos Raņa - $parent_w = $this->pdf->w - $this->pdf->lMargin - $this->pdf->rMargin; - if ($parent_w>$w) - { - if ($this->style->value['text-align']=='center') $this->pdf->x = $this->pdf->x + ($parent_w-$w)*0.5; - } - - $this->style->setPosition($this->pdf->x, $this->pdf->y); - // - + if ($this->style->value['text-indent']>0) $this->pdf->x+= $this->style->value['text-indent']; return true; }