|
@@ -250,7 +250,10 @@ class PDF
|
|
|
if (empty($file) && !empty($html_title)) {
|
|
|
//this is a chapter, print title & skip the rest
|
|
|
if ($print_title) {
|
|
|
- $this->pdf->WriteHTML('<html><body><h3>'.$html_title.'</h3></body></html>'.$page_break);
|
|
|
+ $this->pdf->WriteHTML(
|
|
|
+ '<html><body><h3>'.$html_title.'</h3></body></html>'.$page_break,
|
|
|
+ 2
|
|
|
+ );
|
|
|
}
|
|
|
continue;
|
|
|
}
|
|
@@ -269,7 +272,10 @@ class PDF
|
|
|
|
|
|
//it's not a chapter but the file exists, print its title
|
|
|
if ($print_title) {
|
|
|
- $this->pdf->WriteHTML('<html><body><h3>' . $html_title . '</h3></body></html>');
|
|
|
+ $this->pdf->WriteHTML(
|
|
|
+ '<html><body><h3>' . $html_title . '</h3></body></html>',
|
|
|
+ 2
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
$file_info = pathinfo($file);
|
|
@@ -370,12 +376,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);
|
|
|
+ $this->pdf->WriteHTML($document_html.$page_break, 2);
|
|
|
}
|
|
|
} elseif (in_array($extension, array('jpg','jpeg','png','gif'))) {
|
|
|
//Images
|
|
|
$image = Display::img($file);
|
|
|
- $this->pdf->WriteHTML('<html><body>'.$image.'</body></html>'.$page_break);
|
|
|
+ $this->pdf->WriteHTML('<html><body>'.$image.'</body></html>'.$page_break, 2);
|
|
|
}
|
|
|
}
|
|
|
|