You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,13 @@ If you use Docker Compose (hopefully with [`kool`](https://github.com/kool-dev/k
20
20
```php
21
21
use GuzzleHttp\Client;
22
22
23
-
$pdf = (new Client())->post('http://pdf/from-html', [
23
+
$pdf = (new Client())->post('http://pdf_dev/from-html', [
24
24
'form_params' => [
25
25
'html' => '<h1>This is my super kool HTML that I want to turn into an awesome PDF file!</h1> <p> This is a very silly example, but you get the idea of how powerful this is <b>:)</b> </p>',
* Important to notice, the code above assumes you are running it from within another container in the same Docker Compose application so the `pdf` domain resolves to our microservice.
33
37
38
+
* The `options` should be a json data type
39
+
40
+
* You can see all these `options` in [puppeteer docs](https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#pagepdfoptions)
41
+
34
42
## Getting started on developing locally this microservice
35
43
36
44
To get started with development locally (using [`kool`](https://github.com/kool-dev/kool), of course!):
0 commit comments