5/30/2023 0 Comments Insert pdf signature into word![]() ![]() (signatureField)Ī complete working example of how to add a signature field in the PDF document using C# can be downloaded from add signature field in the PDF document.zipīy executing the program, you will get the output PDF document with a Signature field as follows. 'Get bounds from an existing textbox field.ĭim bounds As RectangleF = loadedTextBoxField.Boundsĭim loadedPage As PdfPageBase = loadedTextBoxField.Pageĭim signatureField As PdfSignatureField = New PdfSignatureField(loadedPage, ) 'Get the loaded text box field and fill it.ĭim loadedTextBoxField As PdfLoadedTextBoxField = CType(loadedForm.Fields(i), PdfLoadedTextBoxField) If (TypeOf loadedForm.Fields(i) Is PdfLoadedTextBoxField) Then Private Shared Sub AddSignature(ByVal stream As MemoryStream)ĭim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument(stream)ĭim loadedForm As PdfLoadedForm = loadedDocument.Form PdfSignatureField signatureField = new PdfSignatureField(loadedPage, ()) PdfPageBase loadedPage = loadedTextBoxField.Page RectangleF bounds = loadedTextBoxField.Bounds Get bounds from an existing textbox field. PdfLoadedTextBoxField loadedTextBoxField = loadedForm.Fields as PdfLoadedTextBoxField Get the loaded text box field and fill it. If (loadedForm.Fields is PdfLoadedTextBoxField) PdfLoadedForm loadedForm = loadedDocument.Form įor (int i = 0 i < i++) PdfLoadedDocument loadedDocument = new PdfLoadedDocument(stream) Private static void AddSignature(MemoryStream stream)
0 Comments
Leave a Reply. |