From 7234b6a7a7deaa59b4c2bb2f33e0f89d4ba2eb2f Mon Sep 17 00:00:00 2001 From: freek Date: Thu, 16 Nov 2017 16:20:04 +0100 Subject: [PATCH] commit --- CHANGELOG.md | 1 + README.md | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b03cb483..7e918b15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to `Browsershot` will be documented in this file ### 3.11.0 - 2017-11-16 - add `setOption` +- refactor internals ### 3.10.0 - 2017-11-13 diff --git a/README.md b/README.md index bf431334..8d8804fc 100644 --- a/README.md +++ b/README.md @@ -296,6 +296,20 @@ Browsershot::url('https://example.com')->bodyHtml(); // returns the html of the ### Misc +#### Setting an arbitrary option + +You can set any arbitrary options by calling `setOption`: + +```php +Browsershot::url('https://example.com') + ->setOption('landscape', true) + ->save($pathToImage); +``` + + +#### Setting the user agent + + If, for some reason, you want to set the user agent Google Chrome should use when taking the screenshot you can do so: ```php