Account
Earned badges
Achievement: Latest Unlocked
Topics Started
Replies
Code Share Comments
Preferences
Topic Started
Topics |
---|
How to change mail Subject, Mail body and Signature? |
How to create package with role without sending mail to signer
Please send me one payload with multiple signer box also.
Thanks in advance. |
Getting error when create package when read file from server. Working Code: When read file from local machine
var options = { 'method': 'POST', |
Please share node js code to download signed document. |
Replies Created
Reply to: Create a Template (REST API)
Thursday, May 6, 2021 at 01:27amHey,
Can you please share the node js code to download that document.
Reply to: Hi Duo, it works fine…
Thursday, May 6, 2021 at 01:38amHey,
How to download that pdf file in node js. Could you please share that code please.
Reply to: How to download PDF document in node js
Friday, May 7, 2021 at 12:16amThanks Duo for your response.
Please let me know one thing how to download that file in node js side instead of front end.
And when I download from node js, that time it shows me file is encrypted , I have attached my code as well.
export let DownloadEsignDocument = (req: Request, res: Response, next: NextFunction) => {
try {
var options = {
'method': 'GET',
'url': 'https://sandbox.esignlive.com/api/packages/eQPdmcgAhn7djTl_-gY9cn3-i-E=/documents/6bdedd15e9c3eedf4d5b860af33a396d60ac7f709947a600/pdf',
'headers': {
'Authorization': 'Basic xxxxxxxxxxxxxxxxxxx',
'Accept': 'application/pdf'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
else {
const fs = require('fs');
fs.writeFileSync('some1.pdf', arrByte.toString());
fs.writeFileSync('some2.pdf', response.body);
response.body.toString(fs.createWriteStream('some3.pdf'));
fs.writeFile('som4.pdf', response.body);
res.status(200).json({
"status": true,
"data": response.body,
"message": ""
});
}
});
}
catch (error) {
next(error);
}
}
Reply to: Try this instead: …
Friday, May 7, 2021 at 06:33amThank you!!
It's working now.
Reply to: How to download PDF document in node js
Friday, May 7, 2021 at 07:37amHey Duo,
One more query , how to get response in buffer instead of .pipe(fs.createWriteStream("/temp/my2.pdf"))
because I need to upload that file in AWS also.
Subscriptions
Topics | Replies | Freshness | Views | Users |
---|---|---|---|---|
How to change mail Subject, Mail body and Signature? |
1 | 2 years 9 months ago | 136 | |
How to create package with role without sending mail to signer
Please send me one payload with multiple signer box also.
Thanks in advance. |
3 | 2 years 11 months ago | 96 | |
Getting error when create package when read file from server. Working Code: When read file from local machine
var options = { 'method': 'POST', |
2 | 2 years 11 months ago | 49 | |
Please share node js code to download signed document. |
9 | 2 years 11 months ago | 4,020 | |
Hi, in our IT-system(SAP) we have the PDFs, that we want to send to OneSpan, stored in a table in binary format. |
7 | 2 years 11 months ago | 6,229 |