Reputation: 21
I designed the PDF(template) in HTML and converting/using it in Python.
I need both orientation in my PDF output(Portrait and Landscape)?
Upvotes: 1
Views: 782
Reputation: 21
Make your pages as separate files (one with the -O landscape flag in your wkhtml2pdf call, and one without). You can call ghostscript to join the files together in python using the subprocess module
Upvotes: 1