Solved

Page Breaker

Posted on 2003-11-17
3
336 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Assisted Solution

by:Dang123
Dang123 earned 120 total points
ID: 9782020
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
ID: 9787949

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
ID: 9788279
Thank you very much..
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe A recent question here at Experts Exchange piqued my interest, so I decided to provide a thorough solution and publ…
Inserting page numbers in Portable Document Files not only enhances manageability but also makes them look professional. With numbered pages, the file appears more organized and it becomes easier to search for a particular page. The size and the vol…
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

695 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