We are using wkhtml2pdf for generating pdf it working fine for vertical orientation now my client required vertical orientation please reffer image so I can understand easily.
之间具有特定名称的链接答案 0 :(得分:1)
调用--orientation "Landscape"
时,您可以传递wkhhtmltopdf
选项。
e.g。从我的本地安装,我将运行/usr/local/bin/wkhtmltopdf --orientation landscape http://google.com google.pdf
您可能需要调整上边距或下边距。您可以传递--margin-bottom 1
和--margin-top 1
来执行此操作。你需要玩弄价值观。