Forums

Need Last Page To Print By Itself

LikeStuff 03 Apr, 2012
I would like one page of my document to be printed separately from the rest of the pages, how can I do that please?

What I mean is for example, I have 4 pages, I don't really care how the first 3 pages print in terms of how content is rolled over on the pages, but I would like the last page to print on a page by itself.

How can I do that please? Thank you!!
GreyHead 05 Apr, 2012
Hi LikeStuff,

You can use the CSS page-break-before: always; to force a page break.

Bob
LikeStuff 04 May, 2012
Can someone please give me a hint as to why this is happening.

I am supposed to have 3 pages but it puts an extra BLANK page after each Page Break.

This is the code in my Custom Element:
<div id='breakForm'></div>


This is by CSS:
#breakForm {
	page-break-after:	always;
}


Thanks in advance!!
GreyHead 05 May, 2012
Hi LikeStuff,

Sorry no idea from what you have posted here :-(

Bob
LikeStuff 05 May, 2012
Hi Greyhead,

I'm using the page break code to break the page at certain points. The page break code works but it seems to put an extra BLANK page after each break.

This is how the pages are printing....

-----------------------
Page 1 - Content on this page
-----------------------
Page 2 - Blank page
-----------------------
Page 3 - Content on this page
-----------------------
Page 4 - Blank page
-----------------------
Page 5 - Content on this page
-----------------------



This is how the pages are supposed to print:

-----------------------
Page 1 - Content on this page
-----------------------
Page 2 - Content on this page
-----------------------
Page 3 - Content on this page
-----------------------



Hope this clarifies a bit more. Thanks!!
LikeStuff 09 May, 2012
It looks like the extra pages were been created because I was using "page-break-after" instead of "page-break-before". Now the pages are breaking properly.

@media print
{
  #pagebreak_container_div { page-break-before:always }
}
This topic is locked and no more replies can be posted.