mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-04-20 22:12:32 +02:00
Fix image abscissa when in RTL (#510)
Co-authored-by: William Desportes <williamdes@wdes.fr> Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
This commit is contained in:
parent
f794192a90
commit
d7da13a0c0
@ -40,7 +40,7 @@ class MYPDF extends TCPDF {
|
||||
$this->setAutoPageBreak(false, 0);
|
||||
// set bacground image
|
||||
$img_file = K_PATH_IMAGES.'image_demo.jpg';
|
||||
$this->Image($img_file, 0, 0, 210, 297, '', '', '', false, 300, '', false, false, 0);
|
||||
$this->Image($img_file, null, 0, 210, 297, '', '', '', false, 300, 'C', false, false, 0);
|
||||
// restore auto-page-break status
|
||||
$this->setAutoPageBreak($auto_page_break, $bMargin);
|
||||
// set the starting point for the page content
|
||||
@ -124,7 +124,7 @@ $auto_page_break = $pdf->getAutoPageBreak();
|
||||
$pdf->setAutoPageBreak(false, 0);
|
||||
// set bacground image
|
||||
$img_file = K_PATH_IMAGES.'image_demo.jpg';
|
||||
$pdf->Image($img_file, 0, 0, 210, 297, '', '', '', false, 300, '', false, false, 0);
|
||||
$pdf->Image($img_file, null, 0, 210, 297, '', '', '', false, 300, 'C', false, false, 0);
|
||||
// restore auto-page-break status
|
||||
$pdf->setAutoPageBreak($auto_page_break, $bMargin);
|
||||
// set the starting point for the page content
|
||||
|
Loading…
x
Reference in New Issue
Block a user