tecnickcom / TCPDF

Official clone of PHP library to generate PDF documents and barcodes
https://tcpdf.org
Other
4.22k stars 1.52k forks source link

Images potentially misplaced when using SetRTL() after update to 6.7.2 #697

Closed kernie closed 8 months ago

kernie commented 8 months ago

Hi,

in one of my projects I use code like this:

pdf->setRTL(true, true);
pdf->Image($iconpath, $xx, $yy, $ww, 0, 'PNG', '');
$xx = pdf->getImageRBX(); // left bottom x
$yy = pdf->getImageRBY(); // left bottom y
pdf->setRTL(false, true);

because I need a right alignment.

I updated recently my TCPDF 6.3.5 version to 6.7.2 and after that the placement of image has changed (doesn't align anymore). In my project I reverted the change made here. By this, my PDF looks again right to me...

Perhaps somebody better educated in PHP than me may have a look to this change?

Thanks

kernie commented 8 months ago

Seems that #510 fixes the misbehavior I was using...