I created a text generator that pulls information from google search. I am working on formatting it. I need to be able to put pagebreaks every 60 lines or so. I want it to end up looking like a book when I print it, so the pages need to be dynamically created. Any suggestions?
5 replies to this topic
#1
Posted 31 December 2010 - 07:50 AM
|
|
|
#2
Posted 31 December 2010 - 08:53 AM
I would say you probably could by making it a pdf: PHP: PDF - Manual
or you could use a pagination script but i think a pdf would be best.
or you could use a pagination script but i think a pdf would be best.
#3
Posted 31 December 2010 - 09:00 AM
if you are in Poland we will offer pagination :p
#4
Posted 31 December 2010 - 10:21 AM
pdf is a good idea, but there is one detail I forgot...it its a two column fluid layout via css3....so I need the page break in the html, or better yet, a new div with a top margin
#5
Posted 31 December 2010 - 10:29 AM
well you could use java script to keep track of the character count and then use a loop and after every so many words have it echo out a <br /> (or new div, etc.)
#6
Posted 31 December 2010 - 10:32 AM
brilliant!!! I can do that with php too!! super! thanks so much....i will post my completed project if interested, in a few days!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









