javaflying-saucer

How can i make my html page to be fit in the pdf using Flying Saucer


I am using Flying Saucer to convert XHTML page to PDF.

My XHTML page width is little longer. When I create the PDF, 10% right portion of the XHTML file is missing in PDF. How can i make my XHTML page to be fit in the PDF?


Solution

  • You can use the @page rule. please take a look at following FS documentation: