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

flying-saucer, java

Solution

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

- How do you control page size?

- How do you control page size on PDF output?

- How do you control page margins on PDF output?

Problem

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?

Original source