marcbachmann / node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
MIT License
3.56k stars 543 forks source link

Is it possible to set orientation for each Page ? #467

Open vishnu2prasadh opened 6 years ago

vishnu2prasadh commented 6 years ago

I have to generate a PDF having pages with both Landscape and Portrait orientation. Is there any option to set page orientation of Each Page? If no, suggest any other method.

dorklord23 commented 6 years ago

I don't think there's such option. My workaround is to generate pages of each orientation separately and merge them with HummusJS. Please refer to this answer for example.