码迷,mamicode.com
首页 > 编程语言 > 详细

python设置pdf

时间:2020-02-18 18:50:30      阅读:83      评论:0      收藏:0      [点我收藏+]

标签:port   efault   this   for   height   end   size   int   paper   

导出:选用pdf

参考官方链接:https://wkhtmltopdf.org/usage/wkhtmltopdf.txt

设置导出的大小可以用page-size也可以直接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

 

python设置pdf

标签:port   efault   this   for   height   end   size   int   paper   

原文地址:https://www.cnblogs.com/daysn/p/12327196.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!