printing photo in A4 size paper.

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

printing photo in A4 size paper.

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

create a PDF :?: search for fpdf
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

Post 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]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'm having a tough time trying to understand your english.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post 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.
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

Post 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?
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post 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. :)
Post Reply