omitBackground added to Chrome to PDF

October 10th, 2021 / by api2pdf /

PuppeteerSharp version 5.1.0 has added support for omitBackground flag. This is a boolean option that will, if set to true, make your PDFs have a transparent background. We don’t actually know why people would need this, but it was a feature request from one of our customers. When PuppeteerSharp added support, we updated our endpoints accordingly. We default to false.

This is only for Chrome > PDF endpoints.

See docs for usage:

Comments are closed.