Page 1 of 1

Add data into PDF table using php

Posted: Fri Aug 29, 2008 3:51 am
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

Re: Add data into PDF table using php

Posted: Fri Aug 29, 2008 4:27 am
by onion2k
What are you using to generate the PDF? By that I mean what PDF library...

Re: Add data into PDF table using php

Posted: Mon Sep 01, 2008 7:57 am
by angelena
Im using Cezpdf.

Is my first try on pdf, so not sure if this is good enough.

Re: Add data into PDF table using php

Posted: Mon Sep 01, 2008 8:16 am
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.