HTML to PDF Converter - Excel Library - ASP.NET Charts - RTF to PDF Converter
PDF Merge and Split - PDF Security - PDF Viewers - PDF to Text - Images Extractor
Home
HTML to PDF
Products
Online Demo
Download
Buy Now
Support
Contact
HTML to PDF Converter for .NET
Winnovative PDF Chromium for .NET
PDF Tools
Excel Tools
Reporting Tools
Cross-Platform
HTML to PDF Converter
Winnovative PDF Chromium
Word to PDF Converter
Excel to PDF Converter
RTF to PDF Converter
PDF to Text Converter
PDF to Image Converter
PDF to HTML Converter
PDF Print
PDF Merge
PDF Split
PDF Security
PDF Images Extractor
PDF Viewer for ASP.NET
PDF Viewer for WinForms
Cross-Platform PDF Tools
HTML to PDF for .NET
HTML to PDF for Java
HTML to PDF for Azure
HTML to PDF for UWP
HTML to PDF for Xamarin
HTML to PDF for Mono
PDF Library for .NET
Excel Library
Excel to PDF Converter
HTML to PDF Converter
Winnovative PDF Chromium
Word to PDF Converter
Excel to PDF Converter
Excel Library
Chart Control for ASP.NET
HTML to PDF for .NET
HTML to PDF for Java
HTML to PDF for Azure
HTML to PDF for UWP
HTML to PDF for Xamarin
HTML to PDF for Mono
PDF Library for .NET
HTML to PDF Converter Demo
Winnovative PDF Chromium Demo
Excel Library Demo
Excel Library - Dynamic Invoices
Web Chart - Online Demo
Order Online
License Renewal
License Agreement
Our Customers
HTML to PDF Converter User Guide
Winnovative PDF Chromium User Guide
Contact Support
Collapse
Expand
HTML to PDF Converter
Getting Started with HTML to PDF
HTML Content Destination and Scaling in PDF
Convert the Current HTML Page to PDF
Convert a HTML Page to PDF in Same Session
Merge Multiple HTML Pages into a Single PDF
Merge HTML with Existing PDF Documents
Partially Convert of a HTML Page to PDF
Repeat HTML Table Header and Footer in PDF
Headers and Footers
Add HTML in Header and Footer
Add Page Numbering in HTML
Change Header and Footer per Page
Add Header and Footer in External PDFs
Merge Multiple HTMLs into a Single PDF
Auto Resize Header and Footer
Page Breaks Control
Insert Page Breaks in PDF Using CSS
Avoid Page Break Inside Elements Using CSS
Insert Page Breaks in PDF Using API
Avoid Page Break Inside Elements Using API
Avoid Page Breaks Inside Images Using API
Screen and Print Media Types
Use Different Styles for Screen and Print
Conversion Triggering Modes
Select Conversion Triggering Mode
Hierachical Bookmarks
Auto Create Hierachical Bookmarks
Select in API the Elements to Bookmark
Select in HTML the Elements to Bookmark
Table of Contents
Auto Create a Table of Contents
Define in HTML the Table of Contents Items
Table of Contents for Multiple HTMLs
Insert PDF Before Table of Contents
Live PDF Forms
Auto Create a Fillable PDF Form
Define in HTML the PDF Form Fields
HTML5 Features
Convert HTML with SVG to PDF
Convert HTML with Web Fonts to PDF
HTTP GET and POST, Proxy Options
Access HTML Pages with GET and POST
Access HTML Pages Through a Proxy
HTTP Headers and Cookies
Add HTTP Headers to HTML Page Request
Add Cookies to HTML Page Request
Fonts Embedding
Embed Fonts in PDF Document
Embed Web Fonts in PDF Document
HTML Elements Location in PDF
Select in API the HTML Elements to Retrieve
Select in HTML the Elements to Retrieve
HTML Elements Visibility in PDF
Use API to Select HTML Elements to Hide
Define in HTML the Elements to Hide
URI Links in PDF
Convert URI Links from HTML to PDF
Define Custom URI Links in HTML
Internal Links in PDF
Convert Internal Links from HTML to PDF
Define Custom Internal Links in HTML
File Links and Attachments
Create File Links and Attachments in PDF
Text Notes in PDF
Create Text Notes in Generated PDF
PDF Actions
Execute JavaScript when Document is Opened
Go To a Page when Document is Opened
Execute JavaScript when a Button is Clicked
HTML to PDF Elements
Add HTML to PDF Elements to PDF
HTML to Image Elements
Add HTML to Image Elements to PDF
Images Quality in Generated PDF
Set Scaling and JPEG Compression Level
Replace Images with Higher Quality Images
Flash and Extensions Support
Convert HTML with Flash to PDF
Watermarks and Stamps
Add Watermarks and Stamps in PDF
PDF Background and Foreground
Add Elements in PDF Page Background
Add Elements Over PDF Page Main Content
PDF/A and PDF/X Standards
Create PDF/A and PDF/X Documents
CMYK and GrayScale Color Spaces
Create CMYK and GrayScale PDF Documents
PDF Viewer Preferences
Set Layout, Mode, Menus and Toolbars
Set Initial Zoom Level
PDF Security Features
Set PDF Permissions and Password
Digitally Sign the Generated PDF
HTML to Image Converter
Convert HTML to a Raster Image
Convert HTML to SVG Vector Image
PDF Creator
Create PDF Documents
HTML to PDF Elements
HTML to Image Elements
Text Elements
Graphic Elements
Image Elements
Headers and Footers
Add HTML in Header and Footer
Add Page Numbering in HTML
Change Header and Footer per Page
Add Header and Footer in External PDFs
Auto Resize Header and Footer
Bookmarks
PDF Forms
URI Links
Internal Links
File Attachments
Text Notes
PDF Actions
Execute JavaScript when Document is Opened
Go To a Page when Document is Opened
Execute JavaScript when a Button is Clicked
Viewer Preferences
Set Layout, Mode, Menus and Toolbars
Set Initial Zoom Level
PDF Security
Set PDF Permissions and Password
Digitally Sign a PDF Document
PDF Editor
Merge PDF Documents
Split PDF Documents
Stamp PDF Documents
Fill PDF Forms
Live Demo
Description
Sample Code
Insert Page Breaks in PDF Using API
You can insert page breaks before and after HTML elements in the generated PDF document by setting the 'PageBreakBeforeHtmlElementsSelectors' and 'PageBreakBeforeHtmlElementsSelectors' API properties. The Full Description and a Code Sample can be accessed from the top tabs.
CSS Selector of the HTML Elements Before Which to Insert Page Breaks
CSS Selector of the HTML Elements After Which to Insert Page Breaks
Convert HTML String
Convert URL or Local File
HTML String to Convert
<!DOCTYPE html> <html> <head> <title>Insert Page Breaks Before and After HTML Elements Using API</title> </head> <body style="width: 1010px; font-family: 'Times New Roman'; font-size: 20px; margin: 5px"> <div style="width: 100%; height: 500px; background-color: aliceblue; border: 2px solid gray; text-align: center"> <div style="width: 100%; height: 200px"></div> A block <b>without any page break</b> style<br /> <br /> [ Follows a block with page break before and page break after forced from API using <i>PageBreakBeforeHtmlElementsSelectors</i> and <i>PageBreakAfterHtmlElementsSelectors</i> properties ] </div> <div id="page_break_before_and_after_div" style="width: 100%; height: 500px; background-color: gainsboro; border: 2px solid gray; text-align: center"> <div style="width: 100%; height: 200px"></div> A block with page break before and page break after forced from API using <i>PageBreakBeforeHtmlElementsSelectors</i> and <i>PageBreakAfterHtmlElementsSelectors</i> properties<br /> <br /> <b>This block will be always rendered alone in a PDF page</b><br /> <br /> [ Follows a block with page break after forced from API using <i>PageBreakAfterHtmlElementsSelectors</i> property ] </div> <div id="page_break_after_div" style="width: 100%; height: 500px; background-color: beige; border: 2px solid gray; text-align: center"> <div style="width: 100%; height: 200px"></div> A block with page break after forced from API using <i>PageBreakAfterHtmlElementsSelectors</i> property<br /> <br /> <b>Nothing will be rendered after this block in PDF page</b> <br /> <br /> [ Follows a block <i>without any page break</i> style ] </div> <div style="width: 100%; height: 500px; background-color: aliceblue; border: 2px solid gray; text-align: center"> <div style="width: 100%; height: 200px"></div> A block <b>without any page break</b> style<br /> <br /> [ Follows a block with page break before forced from API using <i>PageBreakBeforeHtmlElementsSelectors</i> property ] </div> <div id="page_break_before_div" style="width: 100%; height: 500px; background-color: lightgray; border: 2px solid gray; text-align: center"> <div style="width: 100%; height: 200px"></div> A block with page break before forced from API using <i>PageBreakBeforeHtmlElementsSelectors</i> property<br /> <br /> <b>This block will always be rendered at the top of a PDF page</b> </div> </body> </html>
Base URL
Copyright © 2007-
2014
Winnovative Software Solutions