From d34fb9221176fa454cca4b92ddead81b8ce508b6 Mon Sep 17 00:00:00 2001 From: Ben Davies Date: Fri, 14 Dec 2018 08:28:18 +0000 Subject: [PATCH] docs: cURL write to a file instead of stdout (#25) --- build/docs/content/02-html.md | 8 ++++---- build/docs/content/03-markdown.md | 2 +- build/docs/content/04-office.md | 4 ++-- build/docs/content/05-merge.md | 2 +- docs/index.html | 16 ++++++++-------- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/build/docs/content/02-html.md b/build/docs/content/02-html.md index dccac115..f56c0a55 100644 --- a/build/docs/content/02-html.md +++ b/build/docs/content/02-html.md @@ -33,7 +33,7 @@ $ curl --request POST \ --url http://localhost:3000/convert/html \ --header 'Content-Type: multipart/form-data' \ --form files=@index.html \ - > result.pdf + -o result.pdf ``` ### Go @@ -107,7 +107,7 @@ $ curl --request POST \ --form files=@index.html \ --form files=@header.html \ --form files=@footer.html \ - > result.pdf + -o result.pdf ``` ### Go @@ -197,7 +197,7 @@ $ curl --request POST \ --form files=@style.css \ --form files=@img.png \ --form files=@font.woff \ - > result.pdf + -o result.pdf ``` ### Go @@ -261,7 +261,7 @@ $ curl --request POST \ --form marginLeft=0 \ --form marginRight=0 \ --form landscape=true \ - > result.pdf + -o result.pdf ``` ### Go diff --git a/build/docs/content/03-markdown.md b/build/docs/content/03-markdown.md index 545ec3df..278f29df 100644 --- a/build/docs/content/03-markdown.md +++ b/build/docs/content/03-markdown.md @@ -36,7 +36,7 @@ $ curl --request POST \ --header 'Content-Type: multipart/form-data' \ --form files=@index.html \ --form files=@file.md \ - > result.pdf + -o result.pdf ``` ### Go diff --git a/build/docs/content/04-office.md b/build/docs/content/04-office.md index d7e52c55..55b26857 100644 --- a/build/docs/content/04-office.md +++ b/build/docs/content/04-office.md @@ -36,7 +36,7 @@ $ curl --request POST \ --header 'Content-Type: multipart/form-data' \ --form files=@document.docx \ --form files=@document2.docx \ - > result.pdf + -o result.pdf ``` ### Go @@ -88,7 +88,7 @@ $ curl --request POST \ --form paperWidth=8.27 \ --form paperHeight=11.27 \ --form landscape=true \ - > result.pdf + -o result.pdf ``` ### Go diff --git a/build/docs/content/05-merge.md b/build/docs/content/05-merge.md index 6ecc5ddb..f825854a 100644 --- a/build/docs/content/05-merge.md +++ b/build/docs/content/05-merge.md @@ -19,7 +19,7 @@ $ curl --request POST \ --header 'Content-Type: multipart/form-data' \ --form files=@file.pdf \ --form files=@file2.pdf \ - > result.pdf + -o result.pdf ``` ### Go diff --git a/docs/index.html b/docs/index.html index f45bac16..037f2ef4 100755 --- a/docs/index.html +++ b/docs/index.html @@ -176,7 +176,7 @@ which will be converted to PDF.

--url http://localhost:3000/convert/html \ --header 'Content-Type: multipart/form-data' \ --form files=@index.html \ - > result.pdf + -o result.pdf

fonts section.

--form files=@style.css \ --form files=@img.png \ --form files=@font.woff \ - > result.pdf + -o result.pdf

scalability section to find how to mitigate t --header 'Content-Type: multipart/form-data' \ --form files=@document.docx \ --form files=@document2.docx \ - > result.pdf + -o result.pdf