I am working on a project that uses WeasyPrint to output documents. for the life of me I cannot figure out why it is defaulting the page size to a non standard page size.
I would expect it to default to 8.5 x 11 inches. instead the pdfs come out as 8.27 x 11.69 inches.
for the life of me I cannot figure out why the page size is so off.
any ideas?
I found that the css tag @page would allow me to change the actual page size of what the pdf would generate to:
@page {
size: Letter;
margin: 0in 0.44in 0.2in 0.44in;
}
good times trying to figure that one out.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With