innoveit / play2-pdf

A PDF module for Play Framework 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to force a page break?

ChickenSniper opened this issue · comments

commented

Has anyone figured out how to force the PDF rendering to being a new page?

commented

nevermind...found this style attribute:

@ChickenSniper Can you help me out,
I am not getting any page margin when data is overflowed to second page..Thanks in adv

commented

@illusionx Here's the basics in my page...everything works great.

<html>
<head>
<meta charset="UTF-8">
<link href="@appURL/assets/v2/css/bootstrap.min.css" rel="stylesheet">
<link href='@appURL/assets/v2/css/style.css' rel="stylesheet">
</head>
<body style="background: #FFFFFF; font-size: 10px; font-family: FreeSans">
<div id="abc" style="page-break-after: always">
...content...
</div>
</body>
</html>