fixing cURL commands in documentation

This commit is contained in:
Julien Neuhart
2018-12-11 14:09:04 +01:00
parent 52c14a79a1
commit 83cf43a314
6 changed files with 54 additions and 54 deletions

View File

@@ -32,7 +32,7 @@ For instance:
$ curl --request POST \
--url http://localhost:3000/convert/html \
--header 'Content-Type: multipart/form-data' \
--form files=@index.html
--form files=@index.html \
> result.pdf
```
@@ -106,9 +106,9 @@ The following classes allow you to inject printing values:
$ curl --request POST \
--url http://localhost:3000/convert/html \
--header 'Content-Type: multipart/form-data' \
--form files=@index.html
--form files=@header.html
--form files=@footer.html
--form files=@index.html \
--form files=@header.html \
--form files=@footer.html \
> result.pdf
```
@@ -199,10 +199,10 @@ You may also use *remote* paths for Google fonts, images and so on.
$ curl --request POST \
--url http://localhost:3000/convert/html \
--header 'Content-Type: multipart/form-data' \
--form files=@index.html
--form files=@style.css
--form files=@img.png
--form files=@font.woff
--form files=@index.html \
--form files=@style.css \
--form files=@img.png \
--form files=@font.woff \
> result.pdf
```
@@ -261,14 +261,14 @@ By default, it will be rendered with `A4` size, `1 inch` margins and `portrait`
$ curl --request POST \
--url http://localhost:3000/convert/html \
--header 'Content-Type: multipart/form-data' \
--form files=@index.html
--form paperWidth=8.27
--form paperHeight=11.27
--form marginTop=0
--form marginBottom=0
--form marginLeft=0
--form marginRight=0
--form landscape=true
--form files=@index.html \
--form paperWidth=8.27 \
--form paperHeight=11.27 \
--form marginTop=0 \
--form marginBottom=0 \
--form marginLeft=0 \
--form marginRight=0 \
--form landscape=true \
> result.pdf
```

View File

@@ -34,8 +34,8 @@ For instance:
$ curl --request POST \
--url http://localhost:3000/convert/markdown \
--header 'Content-Type: multipart/form-data' \
--form files=@index.html
--form files=@file.md
--form files=@index.html \
--form files=@file.md \
> result.pdf
```

View File

@@ -32,8 +32,8 @@ All files will be merged into a single resulting PDF.
$ curl --request POST \
--url http://localhost:3000/convert/office \
--header 'Content-Type: multipart/form-data' \
--form files=@document.docx
--form files=@document2.docx
--form files=@document.docx \
--form files=@document2.docx \
> result.pdf
```

View File

@@ -17,8 +17,8 @@ will merge them and return the resulting PDF file.
$ curl --request POST \
--url http://localhost:3000/merge \
--header 'Content-Type: multipart/form-data' \
--form files=@file.pdf
--form files=@file2.pdf
--form files=@file.pdf \
--form files=@file2.pdf \
> result.pdf
```

View File

@@ -17,7 +17,7 @@ By doing so, your requests to the API will be over before the conversions are ac
$ curl --request POST \
--url http://localhost:3000/convert/html \
--header 'Content-Type: multipart/form-data' \
--form files=@index.html
--form files=@index.html \
--form webhookURL='http://myapp.com/webhook/'
```