![]() '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) Include the following namespace in the Program.cs file.Install the NuGet package as a reference to your.Create a new C# console application project. ![]() Steps to add a signature field in the PDF converted from Word using C# and VB.NET:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |