[css2xslfo-support] Page breaking problem
Brought to you by:
wdonne
From: Grzegorz M. <cs...@wp...> - 2005-03-17 12:55:29
|
Hello, I've tried transform code below to PDF using CSS2XSLFO and FOP: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Page</title> <style type="text/css"> @media print { p.first{ page-break-after: always; } p.second { page-break-before: always; } } </style> </head> <body> <p class="first">FIRST</p> <p class="second">SECOND</p> <p>THIRD</p> </body> </html> But as Werner said, FOP doesn't support page-break-* attribute. Somewhere there is XEP, but it costs too much and it's impossible for me to use it. So there is only one combination for me to get PDF from XHTML: CSS2XSLFO + FOP. Is there any other way to: - make any xhtml element unbreakable - force page breaking in any way ?? Grzegorz Makosa |