Page 1 of 1

printing photo in A4 size paper.

Posted: Mon Mar 07, 2005 8:43 pm
by valen53
i have a photo listing page which is want to print out. The page maybe will more than 2 pages depend on the search condition.

The problem is i can't print properly in a page. maybe half of the photo in page1, half of the photo in page2.

So any way to print properly in a page? Thanks for reply.

Posted: Mon Mar 07, 2005 8:45 pm
by feyd
create a PDF :?: search for fpdf

Posted: Wed Mar 16, 2005 8:21 pm
by valen53
thanks for reply..
sorry for quite late just reply.

even i export to PDF, the picture still will separate with the photo description when page1 jump to page2.

i quite hard to describe the case if without picture.

so u will understand what i mean.[/img]

Posted: Wed Mar 16, 2005 8:33 pm
by feyd
I'm having a tough time trying to understand your english.

Posted: Thu Mar 17, 2005 1:00 am
by n00b Saibot
So, you want the picture with the description on the same page, something like having orphan/widow controlling.
OK. Well you can keep track of the height of total content and if exceeds the page limit then shift them to the next page. Then it will be alright.

Posted: Mon Mar 21, 2005 11:26 pm
by valen53
n00b Saibot wrote:Well you can keep track of the height of total content and if exceeds the page limit then shift them to the next page. Then it will be alright.
thanks for reply.

But how to keep track of the height of total content and shift it to next page?

Posted: Tue Mar 22, 2005 1:33 am
by n00b Saibot
for that boy, you will have to do some maths based on the size of your photo together with the content. ;)
Do look into FPDF. it will make your life easier. :)