Ham HTML'den veya web sayfalarından PDF'ye veya DOCX'e dönüştürürken, sayfa sonlarının belgelerde tam istediğiniz konumda görünmesini sağlamak için break-after:always
ve break-inside:avoid
Her biri için CSS kuralları Kanal you want to create. Note that this does mean you must control the HTML of the webpage you are converting.
Örneğin aşağıdaki HTML, DOCX veya PDF belgesinde üç sayfa oluşturacaktır.
<html> <head> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <style type="text/css"> div.page { break-after: page; break-inside: avoid; } </style> </head> <body> <div class="page"> <h1>This is Page 1</h1> </div> <div class="page"> <h1>This is Page 2</h1> </div> <div class="page"> <h1>This is Page 3</h1> </div> </body> </html>