WeasyPrint page size wrong. (8.27in x 11.69 in)
问题 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? 回答1: 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: