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

ε祈祈猫儿з 提交于 2019-12-10 18:03:00

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!