Git MaxdG
BuildShip2y ago
6 replies
Git Maxd

Limit Screenshot Size?

Using the v1/screenshot endpoint, is there any way to limit the maximum height of the screenshot?

For example, I want to capture only the top 4,000 pixels of a URL and not the entire page from top to bottom?
Solution
Hi @GitMaxd, did you tried setting the height option? https://pptr.dev/api/puppeteer.pdfoptions.
Was this page helpful?