| | |
Dynamic content and printer pages
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 86
Reputation:
Solved Threads: 6
Hi all,
I have been working on a PHP based application where a user would be allowed to print out specific, yet dynamic information.
I am using a different style sheet for the print page, but I am having a slight issue.
At times some of my stuff is chopped off between pages.
Is there some function, method, or just concept that you all use to smooth all of this out?
Basically, I want to force the point that if there is a word that will be cut off, let's move the line to the next page....
Any thoughts?
Thanks
Sage
I have been working on a PHP based application where a user would be allowed to print out specific, yet dynamic information.
I am using a different style sheet for the print page, but I am having a slight issue.
At times some of my stuff is chopped off between pages.
Is there some function, method, or just concept that you all use to smooth all of this out?
Basically, I want to force the point that if there is a word that will be cut off, let's move the line to the next page....
Any thoughts?
Thanks
Sage
Use Page Breaks in your style-sheet.
http://www.javascriptkit.com/dhtmltu...agebreak.shtml
http://www.w3schools.com/css/pr_print_pageba.asp
http://www.htmlgoodies.com/beyond/cs...le.php/3470341
600) 1(_)[|<.
http://www.javascriptkit.com/dhtmltu...agebreak.shtml
http://www.w3schools.com/css/pr_print_pageba.asp
http://www.htmlgoodies.com/beyond/cs...le.php/3470341
600) 1(_)[|<.
•
•
Join Date: Nov 2007
Posts: 86
Reputation:
Solved Threads: 6
That's great information.
Unfortunately, converting to PDF first is not a viable way to go with this one. We use a PHP pdf generation system, but, as that is just as dynamic as the pages that our users are printing anyway, the issue has to be figured out before it is sent to the printer, or before it is sent to pdf.
The problem with the pdf stuff is that it also needs to be formatted a certain way with pdf.
I understand printing it in my browser as a pdf first would be helpful if I wanted to make pagebreaks in a certain place for a static site, but to do so on a dynamic site would be a bit, weird.
I wonder if seeting the width to 7 inches and the height to 7 inches would force information to jump to the next page?
Sage
Unfortunately, converting to PDF first is not a viable way to go with this one. We use a PHP pdf generation system, but, as that is just as dynamic as the pages that our users are printing anyway, the issue has to be figured out before it is sent to the printer, or before it is sent to pdf.
The problem with the pdf stuff is that it also needs to be formatted a certain way with pdf.
I understand printing it in my browser as a pdf first would be helpful if I wanted to make pagebreaks in a certain place for a static site, but to do so on a dynamic site would be a bit, weird.
I wonder if seeting the width to 7 inches and the height to 7 inches would force information to jump to the next page?
Sage
![]() |
Similar Threads
- pop ups are back (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: Small catalog problem
- Next Thread: Best CMS for database driven site
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary bounce broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email error file files folder form format forms function functions google href htaccess html image include insert integration interactive ip java javascript joomla limit link login loop mail malfunctioning menu mlm mod_rewrite multiple mysql nodes oop parse paypal pdf php problem query radio ram random recursion regex remote return script search server sessions show sms soap source space sql structure syntax system table tutorial unset update upload url validation validator variable video web websitecontactform xml youtube





