Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 480
Muthu Avatar asked Oct 14 '25 13:10

Muthu


1 Answers

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?
like image 122
ollo Avatar answered Oct 17 '25 02:10

ollo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!