Solved

Page Breaker

Posted on 2003-11-17
3
329 Views
Last Modified: 2012-06-21
Hi,

I am printing my web page to Acrobat.  I was wondering if I could set page break somewhere??  Thanks.
0
Comment
Question by:mcrmg
3 Comments
 
LVL 9

Assisted Solution

by:Dang123
Dang123 earned 120 total points
Comment Utility
Since you are printing your own web page you could use CSS to force the page to break. This works with IE 5.5 and above (possibly 5.0 also but not sure).


<html>
<head>
    <title>Test Page</title>
</head>
<body>
    <p>This is some test text</p>
    <p style="page-break-before: always">This is some more test text printed on a new page!</p>
</body>
</html>
0
 
LVL 4

Accepted Solution

by:
antonieraj earned 130 total points
Comment Utility

Hi

Dang123 method of Page-break is gives your expected out of pdf with page breaks

<p style="page-break-before: always">
<p style="page-break-after: auto">

There are additional page-break attributes of

always <-> Always insert a page break before the object.
auto <->Default. Neither force nor forbid a page break before the object.
empty <->string Do not insert a page break.
left <-> Currently works the same as always.
right <->Currently works the same as always.
 
U can preview the output file  in I.E -> File-> Print Preview ->

Before creating the pdf file with pdf writer or Adobe distriller

0
 

Author Comment

by:mcrmg
Comment Utility
Thank you very much..
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

The ability to edit PDF documents can be useful, however it may not be a straight forward process. Many non-technical people don't realise that a PDF document is basically an image rather than a text file, even if it contains nothing but text. If…
Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe INTRODUCTION This Article is a follow-up to the Article entitled How To Rename-Move a Batch of PDF Files Based o…
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now