From 83cf43a314645da5747ad41e6512f1652e250285 Mon Sep 17 00:00:00 2001
From: Julien Neuhart
$ curl --request POST \ --url http://localhost:3000/convert/html \ --header 'Content-Type: multipart/form-data' \ - --form files=@index.html - > result.pdf + --form files=@index.html \ + > result.pdf
footer.html CSS properties override the ones from heade
$ 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
- > result.pdf
+ --form files=@index.html \
+ --form files=@header.html \
+ --form files=@footer.html \
+ > result.pdf
@@ -355,11 +355,11 @@ see to the fonts section.
$ 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
- > result.pdf
+ --form files=@index.html \
+ --form files=@style.css \
+ --form files=@img.png \
+ --form files=@font.woff \
+ > result.pdf
@@ -424,15 +424,15 @@ Also, you have to set both paperWidth and paperHeight.
$ 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
- > result.pdf
+ --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
@@ -515,9 +515,9 @@ in the file index.html. This function will convert a given markdown
$ curl --request POST \
--url http://localhost:3000/convert/markdown \
--header 'Content-Type: multipart/form-data' \
- --form files=@index.html
- --form files=@file.md
- > result.pdf
+ --form files=@index.html \
+ --form files=@file.md \
+ > result.pdf
@@ -600,9 +600,9 @@ See the scalability section to find how to mitigate t
$ curl --request POST \
--url http://localhost:3000/convert/office \
--header 'Content-Type: multipart/form-data' \
- --form files=@document.docx
- --form files=@document2.docx
- > result.pdf
+ --form files=@document.docx \
+ --form files=@document2.docx \
+ > result.pdf
@@ -679,9 +679,9 @@ 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
- > result.pdf
+ --form files=@file.pdf \
+ --form files=@file2.pdf \
+ > result.pdf
@@ -745,8 +745,8 @@ to given URL.
$ curl --request POST \
--url http://localhost:3000/convert/html \
--header 'Content-Type: multipart/form-data' \
- --form files=@index.html
- --form webhookURL='http://myapp.com/webhook/'
+ --form files=@index.html \
+ --form webhookURL='http://myapp.com/webhook/'