Skip to content

Commit 983b66a

Browse files
committed
some adjusts
1 parent c4194e1 commit 983b66a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/fileforge/actions/generate-pdf/generate-pdf.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
files: {
2929
type: "string[]",
3030
label: "HTML Files",
31-
description: "The HTML files to convert to PDF. Each file should be a valid path to an HTML file.",
31+
description: "The HTML files to convert to PDF. Each file should be a valid path to an HTML file saved to the `/tmp` directory (e.g. `/tmp/image.png`). [See the documentation](https://pipedream.com/docs/workflows/steps/code/nodejs/working-with-files/#the-tmp-directory)..",
3232
},
3333
test: {
3434
type: "boolean",
@@ -69,7 +69,10 @@ export default {
6969
formData.append("files", fs.createReadStream(checkTmp(file)));
7070
}
7171

72-
formData.append("options", JSON.stringify(data), {
72+
formData.append("options", JSON.stringify({
73+
...data,
74+
host: true,
75+
}), {
7376
contentType: "application/json",
7477
});
7578

0 commit comments

Comments
 (0)