问题
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?
回答1:
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?
来源:https://stackoverflow.com/questions/14066964/how-can-i-make-my-html-page-to-be-fit-in-the-pdf-using-flying-saucer