I have made an API that takes the input and generate a serverside pdf a/c to the inputs passed using pdf using html-pdf. Which will be then used by the client.
Now, requirements has changed and I want the starting 4 pages of the pdf to be in portrait mode and all the other pages after the 4th in landscape mode.
But we can only define the orientation for complete pdf.HERE
So now, I tried to make two separate pdf
- starting 4 pages with portrait mode.(PDF -1)
- rest of the pages with landscape mode.(PDF -2)
But I am not able to find a solution for merging those two separate pdfs(PDF -1 + PDF -2). Is there any way to merge multiple pdf using phantomjs.
And also I have made the complete pdf so I do not want to change the plugin and do the complete work again but, it will be fine if there is some other plugin that can solve my scenario I can use that as the only last option.
Thanks,