Jump to content

FPDF : Image placement not going where I want it to


mort

Recommended Posts

Hi

 

Making a designed ad dynamically into a PDF and having some problems. Eventually I will get all the content from a PHP form, but for now just using static content to get it all in place and looking as it should.

 

Anyways I am calling an image, which I need to fit exactly into the top right of one of the cells I have made, but for some reason it will get about 1cm away from the right edge, and then it will go down and to the far left. There is plenty more room on the page as its A4 and landscape, and I am making an A5 ad.

 

The line I am using to call the image is:

$this->Image('RTV900_Camo.jpg', 121.8, 35, 88.2, 74.8, 'jpg');

 

When I make the x value 121.9, it moves down and to the left in the wrong place.

 

If anyone can help me out on this that would be great, as am pulling my hair out here ;)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.