pagebreak - not working for me?

1,879 views
Skip to first unread message

sam

unread,
May 18, 2009, 11:19:25 PM5/18/09
to Pisa XHTML2PDF Support
Not sure why this isn't working?

<table>
<table stuff....>
</table>
<pdf:pagebreak>
<h1>Title</h1>
<p> Text </p>

sam@dennis:~/Desktop$ pisa --version
pisa 3.0.32 (Build 2009-05-04)

Can any one else post some example working code pagebreak tags in it.

Many thanks in advance...

sam

unread,
May 19, 2009, 10:26:07 PM5/19/09
to Pisa XHTML2PDF Support
Okay I found a work around - not sure if it's the correct way - I
don't usually spend much time with CSS - thank goodness!

In my CSS I have:
.pagebreak
{
page-break-after: always
}

Then in the html I have:
<div class="pagebreak">
<?php print $stuff_here; ?>
</div>

And pisa renders the PDF correctly. I'm not sure how to use pisa's
vendor specific tags such as -pdf-page-break ? If anyone has some
example code with these in I would love to see it.

Cheers

Sam

sam

unread,
May 19, 2009, 11:23:30 PM5/19/09
to Pisa XHTML2PDF Support
OMG - RFM - sorry guys this is clear in the manual - must have been
tired to miss it. Make sure that you use the divs...

<div>
<pdf:nextpage />
</div>
Reply all
Reply to author
Forward
0 new messages