@@ -168,9 +168,9 @@ which will be converted to PDF.</p>
< span class = "p" > < < / span > < span class = "p" > /< / span > < span class = "nt" > html< / span > < span class = "p" > > < / span >
< / pre >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "html.basic.guzzle " href = "#html.basic.guzzle " >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "html.basic.c_url " href = "#html.basic.c_url " >
< svg xmlns = "http://www.w3.org/2000/svg" aria-hidden = "true" width = "14" height = "14" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "feather feather-link" > < path d = "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" > < / path > < path d = "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" > < / path > < / svg >
< / a > Guzzle < / h3 >
< / a > cURL < / h3 >
< pre class = "chroma" > $ curl --request POST < span class = "se" > \
< / span > < span class = "se" > < / span > --url http://localhost:3000/convert/html < span class = "se" > \
@@ -250,9 +250,9 @@ Respectively, a file named <code>header.html</code> and <code>footer.html</code>
Also, < code > footer.html< / code > CSS properties override the ones from < code > header.html< / code > .< / p >
< / blockquote >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "html.header_and_footer.guzzle " href = "#html.header_and_footer.guzzle " >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "html.header_and_footer.c_url " href = "#html.header_and_footer.c_url " >
< svg xmlns = "http://www.w3.org/2000/svg" aria-hidden = "true" width = "14" height = "14" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "feather feather-link" > < path d = "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" > < / path > < path d = "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" > < / path > < / svg >
< / a > Guzzle < / h3 >
< / a > cURL < / h3 >
< pre class = "chroma" > $ curl --request POST < span class = "se" > \
< / span > < span class = "se" > < / span > --url http://localhost:3000/convert/html < span class = "se" > \
@@ -348,9 +348,9 @@ are on the same level as the <code>index.html</code> file.</p>
see to the < a href = "#office.fonts" > fonts section< / a > .< / p >
< / blockquote >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "html.assets.guzzle " href = "#html.assets.guzzle " >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "html.assets.c_url " href = "#html.assets.c_url " >
< svg xmlns = "http://www.w3.org/2000/svg" aria-hidden = "true" width = "14" height = "14" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "feather feather-link" > < path d = "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" > < / path > < path d = "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" > < / path > < / svg >
< / a > Guzzle < / h3 >
< / a > cURL < / h3 >
< pre class = "chroma" > $ curl --request POST < span class = "se" > \
< / span > < span class = "se" > < / span > --url http://localhost:3000/convert/html < span class = "se" > \
@@ -417,9 +417,9 @@ see to the <a href="#office.fonts">fonts section</a>.</p>
Also, you have to set both < code > paperWidth< / code > and < code > paperHeight< / code > . Same for margins.< / p >
< / blockquote >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "html.paper_size_margins_orientation.guzzle " href = "#html.paper_size_margins_orientation.guzzle " >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "html.paper_size_margins_orientation.c_url " href = "#html.paper_size_margins_orientation.c_url " >
< svg xmlns = "http://www.w3.org/2000/svg" aria-hidden = "true" width = "14" height = "14" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "feather feather-link" > < path d = "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" > < / path > < path d = "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" > < / path > < / svg >
< / a > Guzzle < / h3 >
< / a > cURL < / h3 >
< pre class = "chroma" > $ curl --request POST < span class = "se" > \
< / span > < span class = "se" > < / span > --url http://localhost:3000/convert/html < span class = "se" > \
@@ -508,9 +508,9 @@ in the file <code>index.html</code> which will convert a given markdown file to
< span class = "p" > < < / span > < span class = "p" > /< / span > < span class = "nt" > html< / span > < span class = "p" > > < / span >
< / pre >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "markdown.basic.guzzle " href = "#markdown.basic.guzzle " >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "markdown.basic.c_url " href = "#markdown.basic.c_url " >
< svg xmlns = "http://www.w3.org/2000/svg" aria-hidden = "true" width = "14" height = "14" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "feather feather-link" > < path d = "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" > < / path > < path d = "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" > < / path > < / svg >
< / a > Guzzle < / h3 >
< / a > cURL < / h3 >
< pre class = "chroma" > $ curl --request POST < span class = "se" > \
< / span > < span class = "se" > < / span > --url http://localhost:3000/convert/markdown < span class = "se" > \
@@ -593,9 +593,9 @@ That’ s why for Office conversions, the API does only one conversion at a time.
See the < a href = "#scalability" > scalability section< / a > to find how to mitigate this issue.< / p >
< / blockquote >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "office.basic.guzzle " href = "#office.basic.guzzle " >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "office.basic.c_url " href = "#office.basic.c_url " >
< svg xmlns = "http://www.w3.org/2000/svg" aria-hidden = "true" width = "14" height = "14" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "feather feather-link" > < path d = "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" > < / path > < path d = "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" > < / path > < / svg >
< / a > Guzzle < / h3 >
< / a > cURL < / h3 >
< pre class = "chroma" > $ curl --request POST < span class = "se" > \
< / span > < span class = "se" > < / span > --url http://localhost:3000/convert/office < span class = "se" > \
@@ -672,9 +672,9 @@ See the <a href="#scalability">scalability section</a> to find how to mitigate t
< p > Nothing special here: you may send one or more PDF files and the API
will merge them and return the resulting PDF file.< / p >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "merge.basic.guzzle " href = "#merge.basic.guzzle " >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "merge.basic.c_url " href = "#merge.basic.c_url " >
< svg xmlns = "http://www.w3.org/2000/svg" aria-hidden = "true" width = "14" height = "14" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "feather feather-link" > < path d = "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" > < / path > < path d = "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" > < / path > < / svg >
< / a > Guzzle < / h3 >
< / a > cURL < / h3 >
< pre class = "chroma" > $ curl --request POST < span class = "se" > \
< / span > < span class = "se" > < / span > --url http://localhost:3000/merge < span class = "se" > \
@@ -732,22 +732,21 @@ will merge them and return the resulting PDF file.</p>
< p > If provided, the API will send the resulting PDF file in a < code > POST< / code > request with the < code > application/pdf< / code > Content-Type
to given URL.< / p >
< p > By doing so, your requests to the API will be done before the conversions are actually done!< / p >
< p > By doing so, your requests to the API will be over before the conversions are actually done!< / p >
< h2 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "webhook.examples" href = "#webhook.examples" >
< svg xmlns = "http://www.w3.org/2000/svg" aria-hidden = "true" width = "14" height = "14" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "feather feather-link" > < path d = "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" > < / path > < path d = "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" > < / path > < / svg >
< / a > Examples< / h2 >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "webhook.examples.guzzle " href = "#webhook.examples.guzzle " >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "webhook.examples.c_url " href = "#webhook.examples.c_url " >
< svg xmlns = "http://www.w3.org/2000/svg" aria-hidden = "true" width = "14" height = "14" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "feather feather-link" > < path d = "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" > < / path > < path d = "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" > < / path > < / svg >
< / a > Guzzle < / h3 >
< / a > cURL < / h3 >
< pre class = "chroma" > $ curl --request POST < span class = "se" > \
< / span > < span class = "se" > < / span > --url http://localhost:3000/convert/html < span class = "se" > \
< / span > < span class = "se" > < / span > --header < span class = "s1" > ' Content-Type: multipart/form-data' < / span > < span class = "se" > \
< / span > < span class = "se" > < / span > --form < span class = "nv" > files< / span > < span class = "o" > =< / span > @index.html
--form < span class = "nv" > webhookURL< / span > < span class = "o" > =< / span > < span class = "s1" > ' http://myapp.com/webhook/' < / span >
> result.pdf
< / pre >
< h3 class = "Heading" > < a class = "Anchor" aria-hidden = "true" id = "webhook.examples.go" href = "#webhook.examples.go" >