Forum How do I...?

Huge html file

randhir
Hi,

I've a huge html file containing a huge table. When I convert it to pdf, the entire page is not fitting in a pdf page.

Is there an option to squeeze the html into an A4 size layout?

Thanks,
-Randhir
mikeday
You can put it on a landscape page:
@page { size: A4 landscape }

Or you can enable shrink-to-fit:
@page { prince-shrink-to-fit: auto }

But to get the best layout, you will probably need to adjust the markup.
randhir
Thanks a lot, it worked perfectly!