How To Enable Digital Signature In Digital Signed PDF Using Column Formatting

This article will walk you through one of the problems faced during the creation of a PDF and will provide a workaround solution.
 

Problem Statement

 
A business user uses a digital signature over a PDF file and stores into a SharePoint Online document library to maintain the document repository. When the user clicks the name of the document within the document library, it shows the signature space as empty.
 
How To Enable Digital Signature In Digital Signed PDF Using Column Formatting
 

Approach

 
When the user downloads the file locally from the document library and opens in the browser, it shows a digital signature.
 
How To Enable Digital Signature In Digital Signed PDF Using Column Formatting 
 
To make it work the same in a document library, we need to follow the below steps to apply column formatting.
  1. Browse the document library.
  2. Select the name column.
  3. Select "Column Settings".
  4. Select "Format this column".
Note
A user needs a minimum to contribute access to do this operation. 
 
Column formatting needs to be applied with the column "name".
  1. {  
  2.    "$schema""https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",  
  3.    "elmType""a",  
  4.    "txtContent""@currentField",  
  5.   
  6.    "attributes": {  
  7.       "target""_blank",  
  8.       "href""='https://mittal1201.sharepoint.com/sites/CommSite01/DigitalSignedPDF/' + [$FileLeafRef]+'?web=1'"  
  9.    }  
  10. }  
How To Enable Digital Signature In Digital Signed PDF Using Column Formatting
 
After applying and refreshing the browser, again, click on the name of the digitally signed PDF. The browser shows a digital signature.
 
How To Enable Digital Signature In Digital Signed PDF Using Column Formatting
 
Hope you learned something new in this article.