Add data into PDF table using php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
angelena
Forum Commoner
Posts: 53
Joined: Mon Nov 22, 2004 4:10 am

Add data into PDF table using php

Post by angelena »

Hi,

I've a page where it will generate a pdf document using php.

For e.g:
I have selected 10 images, i would like to place the images ,perhaps 2 image per page into this PDF document, and save it.
So if i have 10 images, means my PDF will be 5 pages .
I would like to place the image in a table format that contains 1 column 2 row.

The only problem i have now is , putting those images into table format on the pdf, as examples i able to googled is all using array.

Appreciate if anyone can give me a clue on how to get it started.Thanks
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Add data into PDF table using php

Post by onion2k »

What are you using to generate the PDF? By that I mean what PDF library...
angelena
Forum Commoner
Posts: 53
Joined: Mon Nov 22, 2004 4:10 am

Re: Add data into PDF table using php

Post by angelena »

Im using Cezpdf.

Is my first try on pdf, so not sure if this is good enough.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Add data into PDF table using php

Post by onion2k »

By the looks of it you should be able to do what you want with the ezTable method of that class, but personally I'd switch to FPDF ( http://www.fpdf.org ) ... it's a lot better.
Post Reply