asp.net mvc - How to display page breaks in PDF generated by Rotativa -
in asp.net mvc 4 app, have index view has several partial views embedded in it. installed latest version 1.6.1 of rotativa via nuget. can print index page pdf using rotativa. have page break in pdf after every partial view. how can achieved using rotativa?
i tried follow this example use customswitches there not seem 1 page break. used this article generate pdf
if using 1.6.1 can add page breaks in css (this not work consistently in 1.5.0, have not tested 1.6.0)
so add style, not specific element p.breakhere{...} shown below (some folks had issues on specific element)
<style type="text/css"> .breakhere { page-break-after: } </style> then in html this
<p class="breakhere"> and should break nicely. aware 1.6.1 has bug ghosted images, intermittently... see entry link
Comments
Post a Comment