Jump to content

create pdf with images


Miko

Recommended Posts

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 :)

Link to comment
https://forums.phpfreaks.com/topic/186495-create-pdf-with-images/
Share on other sites

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?

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.