Miko Posted December 28, 2009 Share Posted December 28, 2009 Hello, I have this script that automatically gets images from a folder and print them out on a webpage. So far everything works, but want I want to do now is generate a pdf of those images, knowing that the amount of images is variable they should be placed nicely on the pdf file. I know that since php v4 there is a pdf function, tested this, but isn't really what I'm looking for. Anyone knows a good php script for this? or maybe a good and fast way to print out those images? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/186495-create-pdf-with-images/ Share on other sites More sharing options...
scvinodkumar Posted December 28, 2009 Share Posted December 28, 2009 it will support http://www.fpdf.org/ Quote Link to comment https://forums.phpfreaks.com/topic/186495-create-pdf-with-images/#findComment-984872 Share on other sites More sharing options...
Miko Posted December 28, 2009 Author Share Posted December 28, 2009 Hi! Just tried this and it seems to work, BUT the main problem is the positions of the images. Since I don't know in advance the number of images I will get it is hard to code the positions for each image. For example: I have a page with 50 images, each image has a size of 240width and 120height, I would like to position those images next and beneath each other, something like this: image1 | image 2 | image 3 | image4 image4 | image 5 | image 6 | image7 and so on .. any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/186495-create-pdf-with-images/#findComment-984930 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.