Using Screenshot
Screenshot allows you to convert a URL into image and PDF.
Check the source code on GitHub https://github.com/staticallyio/screenshot.
Usage
/screenshot/:params/:url
Definitions
:params
Filter to control screenshot image.
:url
Website to screenshot.
Cache Control
Every website screenshot image files will be cached on the CDN for 1 month.
Parameters
device=mobile
Get a mobile version.
/screenshot/device=mobile/:url
full=true
Get a full page version.
/screenshot/full=true/:url
pdf (path)
Getting PDF version.
/screenshot/pdf/:url
Combine params
Params can be combined using commas and after /screenshot/ path.
/screenshot/device=mobile,full=true/:url
Live Demo
/screenshot/dev.to
/screenshot/device=mobile/dev.to