此工具可以将网页生成图片或者pdf图,也可以作为http反向代理服务
API
Name | Required | Value | Description | Usage |
---|---|---|---|---|
url | yes | Target URL | http://puppeteer-renderer?url=http://www.google.com | |
type | pdf or screenshot | Rendering another type. | http://puppeteer-renderer?url=http://www.google.com&type=pdf&margin.top=10px | |
animationTimeout | Timeout in milliseconds | Waits for animations to finish before taking the screenshot. Only applicable to type screenshot | http://puppeteer-renderer?url=http://www.google.com&type=screenshot&animationTimeout=3000 | |
(Extra options) | Extra options (see puppeteer API doc) | http://puppeteer-renderer?url=http://www.google.com&type=pdf&scale=2 |
工具地址:github地址