mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-15 03:42:15 +01:00
@@ -29,6 +29,11 @@ services:
|
||||
|
||||
It may also be deployed with Kubernetes.
|
||||
|
||||
> In Kubernetes, make sure to provide enough memory and CPU requests (for instance `512Mi` and `0.2` CPU).
|
||||
> Otherwise the API will not be able to launch Google Chrome and Libreoffice (unoconv).
|
||||
>
|
||||
> Also note the more resources are granted, the quicker will be the conversions.
|
||||
|
||||
In the following examples, we will assume your
|
||||
Gotenberg API is available at [http://localhost:3000](http://localhost:3000).
|
||||
|
||||
|
||||
@@ -11,17 +11,4 @@ Otherwise a random filename is used.
|
||||
> However, you may hijack the response from the API or store the resulting PDF
|
||||
> using a custom filename.
|
||||
>
|
||||
> **Attention:** this feature does not work if the form field `webhookURL` is given.
|
||||
|
||||
## Examples
|
||||
|
||||
### cURL
|
||||
|
||||
```bash
|
||||
$ curl --request POST \
|
||||
--url http://localhost:3000/convert/html \
|
||||
--header 'Content-Type: multipart/form-data' \
|
||||
--form files=@index.html \
|
||||
--form filename='result.pdf' \
|
||||
-o result.pdf
|
||||
```
|
||||
> **Attention:** this feature does not work if the form field `webhookURL` is given.
|
||||
Reference in New Issue
Block a user