You need to sign in to do that
Don't have an account?
Ganesh Hegde
Add image and signature to PDF
Hi,
I am generating a PDF on case insert using trigger. I need to add an image and signature to it. Is it possible?
I am generating pdf like this
String pdfContents = '<html>';
pdfContents += UserInfo.getUserName();
pdfContents += '<div>';
pdfContents += '</body>';
pdfContents += '</html>';
Blob pdfBlob = Blob.toPDF(pdfContents);
I am generating a PDF on case insert using trigger. I need to add an image and signature to it. Is it possible?
I am generating pdf like this
String pdfContents = '<html>';
pdfContents += UserInfo.getUserName();
pdfContents += '<div>';
pdfContents += '</body>';
pdfContents += '</html>';
Blob pdfBlob = Blob.toPDF(pdfContents);
I am not sure but you can try this:
You have to get the timestamp value of static resource in which your image is placed.
After that you can use in pdfContent with this url:
Hope this will work.
Is it possible to add a digital signature to PDF?
Is it working for you? I have tried but i am still getting this error -"Error: Invalid Data.
Review all error messages below to correct your data.
An error occurred while parsing the input string."
Please suggest
Thanks,