diff --git a/main/inc/lib/pdf.lib.php b/main/inc/lib/pdf.lib.php
index 3876c4b78c..a3443b6440 100755
--- a/main/inc/lib/pdf.lib.php
+++ b/main/inc/lib/pdf.lib.php
@@ -251,8 +251,7 @@ class PDF
//this is a chapter, print title & skip the rest
if ($print_title) {
$this->pdf->WriteHTML(
- '
'.$html_title.'
'.$page_break,
- 2
+ ''.$html_title.'
'.$page_break
);
}
continue;
@@ -273,8 +272,7 @@ class PDF
//it's not a chapter but the file exists, print its title
if ($print_title) {
$this->pdf->WriteHTML(
- '' . $html_title . '
',
- 2
+ '' . $html_title . '
'
);
}
@@ -376,12 +374,12 @@ class PDF
$title = $filename; // Here file name is expected to contain ASCII symbols only.
}
if (!empty($document_html)) {
- $this->pdf->WriteHTML($document_html.$page_break, 2);
+ $this->pdf->WriteHTML($document_html.$page_break);
}
} elseif (in_array($extension, array('jpg','jpeg','png','gif'))) {
//Images
$image = Display::img($file);
- $this->pdf->WriteHTML(''.$image.''.$page_break, 2);
+ $this->pdf->WriteHTML(''.$image.''.$page_break);
}
}
@@ -495,7 +493,7 @@ class PDF
if (!empty($css)) {
$this->pdf->WriteHTML($css, 1);
}
- $this->pdf->WriteHTML($document_html, 2);
+ $this->pdf->WriteHTML($document_html);
if (empty($pdf_name)) {
$output_file = 'pdf_'.date('Y-m-d-his').'.pdf';