Questions tagged [page-break]

Page breaks indicate the position at which one page should end and another should begin

Page breaks indicate the position at which one page should end and another should begin

492 questions
350
votes
14 answers

Can I force a page break in HTML printing?

I'm making a HTML report that is going to be printable, and it has "sections" that should start in a new page. Is there any way to put something in the HTML/CSS that will signal to the browser that it needs to force a page break (start a new page)…
Daniel Magliola
  • 30,898
  • 61
  • 164
  • 243
268
votes
12 answers

CSS Printing: Avoiding cut-in-half DIVs between pages?

I'm writing a plug-in for a piece of software that takes a big collection of items and pops them into HTML in a WebView in Cocoa (which uses WebKit as its renderer, so basically you can assume this HTML file is being opened in Safari). The DIVs it…
joeylange
  • 2,873
  • 2
  • 17
  • 7
141
votes
5 answers

How to have no pagebreak after \include in LaTeX

My LaTeX makes me pagebreaks after each subsection because my subsections are in separate files. I use the command \include{file} which adds a pagebreak after the use of it. I would like to have no pagebreak caused by the use of \include{file}. …
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
99
votes
11 answers

How to apply CSS page-break to print a table with lots of rows?

I have a dynamic table in my web page that sometimes contains lots of rows. I know there are page-break-before and page-break-after CSS properties. Where do I put them in my code in order to force page breaking if needed?
Mohammad Saberi
  • 12,864
  • 27
  • 75
  • 127
96
votes
6 answers

How to insert a page break in HTML so wkhtmltopdf parses it?

So basically I'm using wkhtmltopdf to convert a dynamic HTML report to PDF. The report has a particular format and I've been asked to clone that format with HTML. The problem I'm facing is that I can't simulate a 100% functional page break in html…
lenord
  • 1,151
  • 1
  • 10
  • 16
64
votes
9 answers

CSS Page-Break Not Working in all Browsers

I'm having trouble getting this working in most browsers, except for IE (it even works correctly in IE6) and Opera. Firefox separates the divs correctly but only prints the first page. Chrome and Safari only applies the page break to the last…
Richard Parnaby-King
  • 14,703
  • 11
  • 69
  • 129
52
votes
5 answers

How do I avoid a page break immediately after a heading

I have an HTML 4.01/CSS 2.1 document that includes an H3 heading followed by a short (one line) paragraph block and then an unordered list with several items:

Heading!

Some things:

  • Thing one
  • Thing B
detly
  • 29,332
  • 18
  • 93
  • 152
46
votes
7 answers

Get rid of page breaks in report

How do I get rid of the page breaks in an SSRS report, making the report display in a single page?
san
44
votes
7 answers

Inserting a Page break into an SSRS report

I have a report in SSRS that contains 12 subreports. After each subreport, I need to insert a page break so that each subreport starts on a new page and doesn't share pages with the other subreports. Does anyone know how to do this? Thanks
MikeTWebb
  • 9,149
  • 25
  • 93
  • 132
43
votes
9 answers

Manual Page Break in TCPDF

I am using TCPDF to generate the PDF in one of my projects. I simply create a HTML file and give it to the TCPDF to handle the PDF generation. But now I have some HTML where multiple certificates are added one after the other and I want to have a…
swapnilsarwe
  • 1,290
  • 1
  • 8
  • 13
38
votes
6 answers

Rails: WickedPDF: Page Breaks

In my Ruby (1.9.2) Rails (3.0.x) I would like to render a web page as PDF using wicked_pdf, and I would like to control where the page breaks are. My CSS code to control page breaks is as follows: