Set PDF margins

Now you can set PDF margins for the resulting PDF file.

Blog post 1 min read

Written by

Dmytro Krasun

Published on

Since today, you can set PDF margins for the resulting PDF file.

https://api.screenshotone.com/take?pdf_margin=20px&access_key=<access key>&url=https://example.com&format=pdf

You can also set the margin for each side separately:

https://api.screenshotone.com/take?pdf_margin=20px&pdf_margin_top=0px&access_key=<access key>&url=https://example.com&format=pdf

In this example, the margin for all sides will be 20px except the top, which will be 0px.

The result will be returned as a PDF file with the specified margins.

Check out the documentation for more details. And in case of any questions, feel free to contact us at support@screenshotone.com.

Read more product updates

New features, bug fixes, and optimizations...

View all product updates
Improved error handling when networking fails

Improved error handling when networking fails

We have improved error handling for network failures. Now, we ensure screenshot rendering fails instead of returning an error image.

Read more

1 min read

Better code examples in the playground

Better code examples in the playground

Improved code examples in the playground and added all official supported ScreenshotOne SDKs.

Read more

1 min read

Async, Webhooks, and Extra Limits

Async, Webhooks, and Extra Limits

May was a great month and full of new and exciting updates. Let's check them out quickly.

Read more

1 min read

Automate website screenshots

Exhaustive documentation, ready SDKs, no-code tools, and other automation to help you render website screenshots and outsource all the boring work related to that to us.