Discussion

Page-break using HTMLToPDF activity

I want to convert the html document into pdf, what code I have write in html so that I can get a page-break in PDF.

Thanks..

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

Pega
March 22, 2011 - 9:38am

Here's what I would try:

Style the HTML using a "print" media, and include the
CSS 'page-break-before" attribute.

See
http://www.w3schools.com/css/pr_print_pagebb.asp

March 22, 2011 - 9:57am

Thanks.

Pega
June 21, 2016 - 12:58pm

Pega uses "pd4ml" internally to convert HTML to PDF.

See: http://pd4ml.com/support/html-pdf-faq-f1/newbie-question-how-to-page-break-t187.html

Supposed to work by inserting:  <pd4ml-page-break/>