Jump to content

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.