How to modify the first pageNumber or execute JS in header or footer template with Chrome DevTools Protocol’s printToPDF
I tried straight forward approaches to solve this problem and they didn’t work. Even obscure apis like CSS expressions and counters don’t work to solve this. Fortunately there seems to be a simple enough work around. We print each page separately using the pageRange parameter and then combine all the pages to generate the required … Read more