0

The following shows how to print a webpage to pdf using chrome.

additional options in Chrome headless print-to-pdf

But there is timestamp at the top of the pdf. Is there a way to disable the timestamp? Thanks.

user1424739
  • 11,937
  • 17
  • 63
  • 152

1 Answers1

0

You need to use the Chrome headless debugging API.

https://chromedevtools.github.io/devtools-protocol/

There are some nice wrappers around it, like this package:

https://www.npmjs.com/package/chrome-headless-render-pdf

Ryan
  • 2,473
  • 1
  • 11
  • 14