Hi, i just upgraded from an old version (5.9.189) to newer versions (6.2.11 and 6.2.12) to solve a bug with SVG images. While this upgrade did solve that bug, it caused a new one where wide images (output to a3 for example) are not respecting the width specified. I have verified in my code that my $width variable is returning the correct width (in this case 10.69, one inch less than 11.69 for a3), but it is not being respected when calling:
$pdf->Image($imgpath,.5,(($titleheight*1.9)+1.1),$imagewidth,$imageheight,"jpg",$baseurl. '/?r=' . $ref);
I have tried calling that with exact measurements as well:
$pdf->Image($imgpath,.5,(($titleheight*1.9)+1.1),10.69,0,"jpg",$baseurl. '/?r=' . $ref);
but I get the exact same result: the image is far wider than the page. All other elements (multicell, text,line, etc) layout properly.
Any suggestions for what may be causing this and how to fix?
thanks
I have a workaround for this (but it isn't pretty) by adding a separate multiplier for A3 and Tabloid sizes: