Digitally signed PDF problem

Hello,

we want so view digitally signed pdf files. 
The signature annotation is visible in almost all applications and browsers, for example in chrome.

Opening the pdf in Syncfusion PDFViewer is not showing the annotation.

Is there a solution for this problem?


I have attached a screenshot (comparison chrome and pdfviewer) and the signed example pdf.


Attachment: PDFExampleSigned_56f0890d.zip

2 Replies 1 reply marked as answer

RB Rajavignesh BalaSankar Syncfusion Team May 24, 2022 12:11 PM UTC

Hi Marc,


On analyzed further, we found the issue “Added digital signature is not visible in WPF PDF viewer” is due to, that the support to display the digital signature in PdfViewer is not yet provided. We already have logged a feature request for Digital Signature support in PDF Viewer. After implementing this feature, we can display the digital signature with validation mark and able to print the same. At present, we do not have any immediate plans for this. At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. 


You can track the status of this feature request here:

https://www.syncfusion.com/feedback/2924/add-digital-signature-to-the-pdf-document 


However, your requirement is to only display the digital signature, we can achieve this by loading the PDF with signature field after flattening the signature field. The Flattenproperty will remove the existing signature field and replace it with graphical objects that would resemble the signature field and cannot be edited. So, when we set the Flattenas true the fields are updated and the value is displayed.

//Load the document using PdfLoadedDocument object 

            PdfLoadedDocument loadedDocument = new PdfLoadedDocument("../../PDFExampleSigned.pdf"); 

            //Flatten the Signature form fields 

            if(loadedDocument.Form != null && loadedDocument.Form.Fields != null

            { 

                foreach (PdfLoadedSignatureField pdfLoadedSignatureField in loadedDocument.Form.Fields) 

                { 

                    pdfLoadedSignatureField.Flatten = true

                } 

            }            

            //load the PdfLoadedDocument object into PdfViewerControl 

            pdfViewerControl1.Load(loadedDocument); 

 

Please refer to the link below to know more about flattening the form fields,

https://help.syncfusion.com/file-formats/pdf/working-with-forms#removing-editing-capability-of-form-fields 


Please let us know if the above details are helpful to achieve your requirement or if you need any further assistance with this.


Regards,

Raja Vignesh.


Marked as answer

MF Marc Franzgrote May 26, 2022 09:13 PM UTC

Thanks that helped me 


Loader.
Up arrow icon