Articles in this section
Category / Section

How to display signature field in WPF PDFViewer control?

1 min read

By default, WPF PDF Viewer does not support displaying signature fields in the PDF document, the PDF document should be flattened to display the content of the signature field in the PDF viewer. Please refer to the below code snippet for achieving the same.

C#

//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("../../Data/Sample.pdf");
//Flatten the form.
loadedDocument.Form.Flatten = true;
 
MemoryStream memoryStream = new MemoryStream();
//Save the modified document.
loadedDocument.Save(memoryStream);
memoryStream.Position = 0;
 
PdfViewerControl pdfViewerControl = new PdfViewerControl();
// load the document in pdfviewercontrol
pdfViewerControl.Load(memoryStream);

View sample in GitHub

Conclusion

I hope you enjoyed learning about how to display signature field in WPF PDFViewer control.

You can refer to our WPF PDF Viewer feature tour page to know about its other groundbreaking feature representations. You can also explore our WPF PDF Viewer documentation to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please sign in to leave a comment
Access denied
Access denied