I’m using the Elixir PDF-Generator library with chrome-headless-render-pdf and puppeteer.
Since the page that I’d like to convert to PDF is only accessible after a user is authenticated, I cannot generate the PDF unless I have the cookie used for authentification.
I guess I need to supply an additional option via the
--chrome-option arguments when generating the PDF; however, I can’t figure out which options from this list of chrome options
Does anyone know how to set cookies with the PDF-Generator library and chrome?