Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
beganovich committed Apr 19, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 1ba0a3b commit db195c0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -116,6 +116,15 @@ $pdf = $snappdf
->generate();
```

If you want to remove single argument, you can make use of `clearChromiumArgument`.

```php
$snappdf = new \Beganovich\Snappdf\Snappdf();

$snappdf->getChromiumArguments(); // ['--headless', '--disable-gpu', '--disable-translations']
$snappdf->clearChromiumArgument('--headless'); // ['--disable-gpu', '--disable-translations']
```

In the event you want to override the default arguments, you can use the the `SNAPPDF_EXECUTABLE_ARGUMENTS` environmental variable.

NOTE: The `--print-to-pdf` argument is always added, and the `--virtual-time-budget` argument is added whenever the `waitBeforePrinting` method is called.

0 comments on commit db195c0

Please sign in to comment.