Skip to content

Commit a6248f1

Browse files
committed
491995 : Updated html to pdf with assets field
1 parent e8b49dd commit a6248f1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Document-Processing/Web-apis/consume-apis/html-to-pdf.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Console.WriteLine(await response.Content.ReadAsStringAsync());
121121

122122
{% endtabs %}
123123

124-
To convert HTML to PDF, send a request to the /v1/conversion/html-to-pdf endpoint, including the HTML file as input as follows:
124+
To convert HTML to PDF, send a request to the /v1/conversion/html-to-pdf endpoint, including both the HTML file as input and its assets as follows:
125125

126126
{% tabs %}
127127

@@ -131,6 +131,7 @@ curl --location 'http://localhost:8003/v1/conversion/html-to-pdf' \
131131
--form-string 'settings={
132132
"JobID": "job-123",
133133
"IndexFile":"index.html",
134+
"Assets":["image1.jpeg","style.css"],
134135
"PaperSize": "A4",
135136
"Settings": {
136137
"Url": "",
@@ -146,7 +147,8 @@ curl --location 'http://localhost:8003/v1/conversion/html-to-pdf' \
146147
"SinglePagePdf": false,
147148
"ShowHeader": true,
148149
"ShowFooter": true
149-
}
150+
},
151+
  "AssetMap":[{"saveAs":"image1.jpeg","original":"image1.jpeg"},{"saveAs":"style.css","original":"style.css"}]
150152
}'
151153

152154
{% endhighlight %}

0 commit comments

Comments
 (0)