Return new Buffer(bitmap).toString('base64') Ĭonst browser = await puppeteer. Once you are satisfied with how the screenshot looks like, you can save it locally or copy the image to your clipboard. It will capture screenshot of a specific element that could be pass in a function as a paraeter, from URL and then add a screenshot to PDF const puppeteer = require('puppeteer') All you have to do is right-click on an empty part of the page and select 'Take Screenshot.' Alternatively, you can press the 'Ctrl,' 'Shift,' and 'S' keys at the same time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |