Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2021 05:11 AM
Thankyou for sharing this information.
I have one question though:
I want to add image to the PDF document and you have specified below piece of code for it, but may I know what we need to pass in 'instance'?
I can see that is passed as 2nd parameter, but what is the value?
// convert to the right image path
parsedBody = parsedBody.replace(/\/sys_attachment.do\?sys_id=(\w{32})/gi, '/$1.iix');
parsedBody = parsedBody.replace(/\/sys_attachment.do\?sys_id=(\w{32})/gi, '/$1.iix');
parsedBody = parsedBody.replace(/src="\//gi, 'src="' + instance);