Tools to Capture and Convert the Web

Adding Page Breaks to PDF and DOCX documents

When converting from raw HTML or web pages to PDF or DOCX, you can force page breaks to appear in the documents at the exact location you desire by specifying the page-break-after:always and page-break-inside:avoid CSS rules for each page you want to create. Note that this does mean you must control the HTML of the webpage you are converting.

For instance the HTML below will create three pages within the DOCX or PDF document.

    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    <style type="text/css">
        page-break-after: always;
        page-break-inside: avoid;
    <div class="page">
      <h1>This is Page 1</h1>
    <div class="page">
      <h1>This is Page 2</h1>
    <div class="page">
      <h1>This is Page 3</h1>
Back to Support
Try all our premium features for free with a 7 day free trial. Then from $5.99 a month, unless cancelled.
  • More Captures
  • More Features
  • More API's
  • Bigger Scrapes
  • Bigger Captures
  • Bigger Everything
Start Free Trial