function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sarthak Bajaj 6Sarthak Bajaj 6 

Adding Signature of particular font in pdf

I want to make changes in VF page.Currently a document is generated,printed out and then signed and scanned again back to the system.I want to auto popolate the signature say with "XYZ" name and any font style.
How can i achieve this?
Sandeep Mishra 7Sandeep Mishra 7
Hi Sarthak,

Can you share your code here? How are you generating your PDF files?

There was few fonts which you can already use and salesforce provide them out of the box. Refer this link: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_supported_fonts.htm

However you can also use your custom font if you have any. You can store them as static resource and try out. Try below code:
 
@ font-face{
             font-family: "Calibri";
             src: url('{!URLFOR($Resource.Fonts, 'Calibri.TTF')}');
​}

Thanks,
Sandeep Mishra
smith john 3smith john 3
While signing, check whether user is online or notIf online, current flow works as isif offline, store the current signature with sample request id, user id and isSynced set to false in SmartStoreWhen user has Internet connectivity, check all requests in SmartStore which have isSynced set to false and sync these with Salesforce.If a sample request signature is synced to Salesforce, set it’s isSynced flag to true so it’s not processed in the next offline run. (https://twitter.com/officeofhkbadal)
Sarthak Bajaj 6Sarthak Bajaj 6
I Wanted only name of particular font to appear as the signature on the pdf.
I managed to get the solution for that.
I added a Static resource and made changes in VF page for calling that resource using the follwing code
<apex:image url="{!$Resource.XYZ_Signature}"/>

Thanks for the help guys:)