编辑和更新放置在 Pdf 文件中的 Text 签名

.NET 的 API 提供了在 Pdf 文档中更新 Text 签名的功能。使用几行 C# 代码快速轻松地更新 Pdf 文档中的电子签名。


下载免费试用版

了解 GroupDocs.Signature for .NET API 功能

GroupDocs.Signature for .NET API 功能包含大量使用电子签名处理按需文档格式的方法。支持广泛的电子签名,如文本、图像、数字证书、条形码、二维码、印章或元数据。客户可以在 PDF、MS Word 文档、MS Excel 工作簿、MS PowerPoint 演示文稿、Adobe Photoshop 文件和各种图像格式中添加、删除、编辑、验证或搜索数字签名。提供了许多有用的功能和设置。

如何更改 Pdf 文档中的 Text 签名

GroupDocs.Signature for .NET 包括有用的功能,例如更新放置在 Pdf 文档中的 Text 签名。无需额外代码即可更改签名功能。

  • 首先,创建 Signature 对象,将其作为构造函数参数路径传递到应该更新的文档。
  • 然后,实例化一个适当的特定签名对象并设置其标识符和需要更改的属性。
  • 最后,调用 Signature 的 Update 方法传递特定的签名对象。
  • 处理更新结果以通知您。

系统要求

所有主要平台和操作系统都支持 GroupDocs.Signature for .NET。在执行以下代码之前,请确保您的系统上安装了以下先决条件。

  • 操作系统:Microsoft Windows、Linux、MacOS
  • 开发环境:Microsoft Visual Studio, Xamarin, MonoDevelop
  • Frameworks: .NET Framework, .NET Standard, .NET Core, Mono
  • Nuget 下载最新版本的 GroupDocs.Signature for .NET

        
// Set up input Pdf file
string filePath = "input.pdf";

// Instantiate Signature for input file
using (GroupDocs.Signature.Signature signature = new GroupDocs.Signature.Signature(filePath))
{
        // Id of signature which is supposed to be updated
        // such Id might be got as a result of search operation
        string id = "ff988ab1-7403-4c8d-8db7-f2a56b9f8530";

        // provide signature features to update
        // set up particular signature id
        TextSignature signatureToUpdate = new TextSignature(id)
        {
            // specify signature width
            Width = 130,
            // specify signature height
            Height = 20,
            // set left position
            Left = 40,
            // set top position
            Top = 50,
            // set up new text
            Text = "Mr. John Smith"
        };

        // update signature
        bool updateResult = signature.Update(signatureToUpdate);

        // process updation result
        if (updateResult)
        {
            Console.WriteLine("Signature was updated successfully!");
        }
}

更新文档页面上的 Text 签名 - 现场演示

立即访问 GroupDocs.Signature App 网站编辑 Pdf 文档的各种电子签名。

无需下载 API

无需编写任何代码

只需上传源文件

获取下载链接以保存文件

通过 C# 更新各种 Text 签名

“编辑以各种文档格式放置的数字签名。无需额外代码即可更新签名数据。”

在TEXT中更新DOC

(Microsoft Word Binary Format)

在TEXT中更新DOCX

(Office 2007+ Word Document)

在TEXT中更新DOCM

(Microsoft Word 2007 Marco File)

在TEXT中更新DOT

(Microsoft Word Template Files)

在TEXT中更新DOTM

(Microsoft Word 2007+ Template File)

在TEXT中更新DOTX

(Microsoft Word Template File )

在TEXT中更新ODT

(OpenDocument Text File Format)

在TEXT中更新OTT

(OpenDocument Standard Format)

在TEXT中更新RTF

(Rich Text Format)

在TEXT中更新XLS

(Microsoft Excel Spreadsheet (Legacy))

在TEXT中更新XLSX

(Open XML Workbook)

在TEXT中更新XLSM

(Macro-enabled Spreadsheet)

在TEXT中更新XLSB

(Excel Binary Workbook)

在TEXT中更新CSV

(Comma Seperated Values)

在TEXT中更新ODS

(OpenDocument Spreadsheet)

在TEXT中更新OTS

(OpenDocument Spreadsheet Template)

在TEXT中更新XLTX

(Excel Template)

在TEXT中更新XLTM

(Excel Macro-Enabled Template)

在TEXT中更新PPT

(Microsoft PowerPoint 97-2003)

在TEXT中更新PPTX

(Open XML presentation Format)

在TEXT中更新PPS

(PowerPoint Slide Show)

在TEXT中更新PPSX

(PowerPoint Slide Show)

在TEXT中更新ODP

(OpenDocument Presentation Format)

在TEXT中更新OTP

(OpenDocument Standard Format)

在TEXT中更新POTX

(Microsoft PowerPoint Template Presentation)

在TEXT中更新POTM

(Microsoft PowerPoint Template File)

在TEXT中更新PPTM

(Macro-enabled Presentation File)

在TEXT中更新PPSM

(Macro-enabled Slide Show)

Back to top
 中国人