How to set pdf size using Flying Saucer library?

142 views Asked by At

I am using Flying Saucer library to convert .html file to .pdf file, but the created .pdf doesn't fill the whole page and creates weird gaps. I tried using @page { size: A4} in the HTML code but it didn't work. What could be the problem? Here's the images of the .pdf file:

enter image description here

0

There are 0 answers