Jump to content

Is it possible to make dynamiic page breaks?

- - - - -

  • Please log in to reply
5 replies to this topic

#1
anfractuosities

anfractuosities

    Newbie

  • Members
  • Pip
  • 4 posts
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?

#2
zeroradius

zeroradius

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,406 posts
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.
Posted Image

#3
AdrianWierciochPHP

AdrianWierciochPHP

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
if you are in Poland we will offer pagination :p

#4
anfractuosities

anfractuosities

    Newbie

  • Members
  • Pip
  • 4 posts
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
zeroradius

zeroradius

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,406 posts
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.)
Posted Image

#6
anfractuosities

anfractuosities

    Newbie

  • Members
  • Pip
  • 4 posts
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