Since version 1.7.0 we publish the puppeteer-core package,a version of Puppeteer that doesn't download Chromium by default. To skip the download, see Environment variables. I found a temporary solution to this here, though you have to know the url where you will obtain the pdf beforehand. Note: When you install Puppeteer, it downloads a recent version of Chromium (170MB Mac, 282MB Linux, 280MB Win) that is guaranteed to work with the API. For anyone else who stumbled upon this question,Īt the time of writing this, it's a known bug in chromium where you are unable to navigate to a pdf or a page embedded with pdf in headless:true mode.
0 Comments
Leave a Reply. |