Set python pdf

Export: pdf choose

Refer to the official link: https://wkhtmltopdf.org/usage/wkhtmltopdf.txt

Can be derived by setting the size of the page-size may be directly page-wight, page-height:

Page sizes:
  The default page size of the rendered document is A4, but using this
  --page-size optionthis can be changed to almost anything else, such as: A3,
  Letter and Legal.  For a full list of supported pages sizes please see
  <http://qt-project.org/doc/qt-4.8/qprinter.html#PaperSize-enum>.

  For a more fine grained control over the page size the --page-height and
  --page-width options may be used

 

Guess you like

Origin www.cnblogs.com/daysn/p/12327196.html