GroupDocs.Signature
24.12.0
dotnet add package GroupDocs.Signature --version 24.12.0
NuGet\Install-Package GroupDocs.Signature -Version 24.12.0
<PackageReference Include="GroupDocs.Signature" Version="24.12.0" />
paket add GroupDocs.Signature --version 24.12.0
#r "nuget: GroupDocs.Signature, 24.12.0"
// Install GroupDocs.Signature as a Cake Addin #addin nuget:?package=GroupDocs.Signature&version=24.12.0 // Install GroupDocs.Signature as a Cake Tool #tool nuget:?package=GroupDocs.Signature&version=24.12.0
Sign Documents API
This on-premise .NET API lets your app end-users sign the electronic documents from a wide range of file formats. Supports several types of e-signing methods.
Content
- Features
- Signature Supported Formats
- Digital Signature Supported Formats
- FormField Signature Supported Formats
- Metadata Signature Supported Formats
- Signature Supported Formats
- Supported Signature Types
- Platform Independence
- Get Started
- Sign PDF with Digital Signature
- Sign with QR Code Signature
- Verify Digital Signatures
- Search Signatures in XLSX
- Remove Signature from Document
- Custom PDF Digital Signature
- Tags
Features
- Create and add signatures to documents of various file formats.
- Specify visual attributes of signatures, such as color, font, margins, etc.
- Search and fetch a list of signatures from a document.
- Determine if the document contains signatures meeting specified criteria.
- Extract basic information about the document.
- Generate image representation of document pages for preview.
- Distinguish created signatures from the actual document.
- Put encrypted text into the QR-code signature or embed custom data objects.
Signature Supported Formats
The following section lists the supported file formats for the barcode, image, QR-code, stamp, and text signature types:
Microsoft Word: DOC, DOCM, DOCX, DOT, DOTM, DOTX
Microsoft Excel: XLSX, XLS, XLSB, XLSM, XLTX, XLTM
Microsoft PowerPoint: PPTX, PPTM, PPT, PPSX, PPSM, PPS, POTX, POTM
OpenOffice: ODT, OTT, ODS, OTS, ODP, OTP
Image: BMP, DJVU, GIF, JPG, JPEG, PNG, SVG, TIF, TIFF, WEBP
CorelDraw: CDR, CMX
Photoshop: PSD
Metafile: WMF
Portable: PDF
Digital Signature Supported Formats
Microsoft Word: DOC, DOCM, DOCX, DOT, DOTM, DOTX
Microsoft Excel: XLSX, XLS, XLSB, XLSM, XLTX, XLTM
OpenOffice: ODS, OTS
Portable: PDF
FormField Signature Supported Formats
Microsoft Word: DOC, DOCM, DOCX, DOT, DOTM, DOTX
Microsoft Excel: XLSX, XLS, XLSB, XLSM, XLTX, XLTM
OpenOffice: ODS, OTS, ODP
Portable: PDF
Metadata Signature Supported Formats
Microsoft Word: DOC, DOCM, DOCX, DOT, DOTM, DOTX
Microsoft Excel: XLSX, XLS, XLSB, XLSM, XLTX, XLTM
Microsoft PowerPoint: PPTX, PPTM, PPT, PPSX, PPSM, PPS, POTX, POTM
OpenOffice: ODT, OTT, ODS, OTS, ODP, OTP
Image: JPG, JPEG, PNG, SVG, TIF, TIFF
Photoshop: PSD
Portable: PDF
Supported Signature Types
- Text stamps
- Text labels
- Text as an image signature
- Image signature
- Digital signature
- Barcode signature
- QR-code signature
- Metadata signature
- Form-field signature
Platform Independence
GroupDocs.Signature for .NET does not require any external software or third-party tool to be installed. GroupDocs.Signature for .NET supports any 32-bit or 64-bit operating system where .NET or Mono framework is installed. The other details are as follows:
Microsoft Windows: Microsoft Windows Desktop (x86, x64) (XP & up), Microsoft Windows Server (x86, x64) (2000 & up), Windows Azure
Mac OS: Mac OS X
Linux: Linux (Ubuntu, OpenSUSE, CentOS and others)
Development Environments: Microsoft Visual Studio (2010 & up), Xamarin.Android, Xamarin.IOS, Xamarin.Mac, MonoDevelop 2.4 and later.
Supported Frameworks: GroupDocs.Conversion for .NET supports .NET and Mono frameworks.
Get Started
Are you ready to give GroupDocs.Signature for .NET a try? Simply execute Install-Package GroupDocs.Signature
from Package Manager Console in Visual Studio to fetch & reference GroupDocs.Signature assembly in your project. If you already have GroupDocs.Signature for .Net and want to upgrade it, please execute Update-Package GroupDocs.Signature
to get the latest version.
Please check the GitHub Repository for other common usage scenarios.
Sign PDF with Digital Signature
The example below shows how to sign a PDF document with a digital e-signature using C# language. We can sign any other supported document format in the same way
using (Signature signature = new Signature("sample.pdf"))
{
// initialize digital option with certificate file path
DigitalSignOptions options = new DigitalSignOptions("certificate.pfx")
{
// set signature position
Left = 100,
Top = 100,
Password = "1234567890"
};
signature.Sign("signed.pdf", options);
}
Sign with QR Code Signature
The code snippet below demonstrates how to sign a PDF document with the QR code signature
using (Signature signature = new Signature("sample.pdf"))
{
// create QRCode option with predefined QRCode text
QrCodeSignOptions options = new QrCodeSignOptions("JohnSmith")
{
// setup QRCode encoding type
EncodeType = QrCodeTypes.QR,
// set signature position
Left = 100,
Top = 100
};
signature.Sign("signed.pdf", options);
}
Verify Digital Signatures
This example shows how to verify Digital signature in the document
using (Signature signature = new Signature("sample.pdf"))
{
DigitalVerifyOptions options = new DigitalVerifyOptions("certificate.pfx")
{
Comments = "Test comment"
};
// verify document signatures
VerificationResult result = signature.Verify(options);
if (result.IsValid)
{
Console.WriteLine("\nDocument was verified successfully!");
}
else
{
Console.WriteLine("\nDocument failed verification process.");
}
}
Search Signatures in XLSX
This example shows how to search for Digital signature in the document and analyze digital signature certificate
using (Signature signature = new Signature("spreadsheet.xlsx"))
{
// search for signatures in document
List<DigitalSignature> signatures = signature.Search<DigitalSignature>(SignatureType.Digital);
Console.WriteLine("\nSource document contains following signatures.");
foreach (var digitalSignature in signatures)
{
Console.WriteLine("Digital signature found from {0} with validation flag {1}. Certificate SN {2}",
digitalSignature.SignTime, digitalSignature.IsValid, digitalSignature.Certificate?.SerialNumber);
}
}
Remove Signature from Document
This example shows how to delete Digital signature that was found using Search method
using (Signature signature = new Signature("signed.pdf"))
{
List<DigitalSignature> signatures =
signature.Search<DigitalSignature>(SignatureType.Digital);
if (signatures.Count > 0)
{
DigitalSignature digitalSignature = signatures[0];
bool result = signature.Delete(digitalSignature);
if (result)
{
Console.WriteLine(
$"Digital signature #{digitalSignature.Thumbprint} from " +
$"{digitalSignature.SignTime.ToShortDateString()} was deleted."
);
}
else
{
Console.WriteLine(
$"Signature was not deleted from the document! " +
$"Signature# {digitalSignature.Thumbprint} was not found!"
);
}
}
}
Custom PDF Digital Signature
This example shows how to specify extra appearances
using (Signature signature = new Signature("sample.docx"))
{
DigitalSignOptions options = new DigitalSignOptions("certificate.pfx")
{
// certifiate password
Password = "1234567890",
// digital certificate details
Reason = "Sign",
Contact = "JohnSmith",
Location = "Office1",
// image as digital certificate appearance on document pages
ImageFilePath = imagePath,
//
AllPages = true,
Width = 80,
Height = 60,
VerticalAlignment = VerticalAlignment.Bottom,
HorizontalAlignment = HorizontalAlignment.Right,
Margin = new Padding() { Bottom = 10, Right = 10 },
// Setup signature line appearance.
// This appearance will add Signature Line on the first page.
// Could be useful for .xlsx files.
Appearance = new DigitalSignatureAppearance("John Smith", "Title", "jonny@test.com")
};
signature.Sign("signed.docx", options);
}
Tags
Document Singing
| Digital Signature
| Sign PDF
| Sign DOCX
| Sign XLSX
| Sign Digitally
| Digital Signature
| esing
| Cross Platform
| Document Manipulation
| High Performance
| DotNet
| API
| Signature Verification
| GroupDocs.Signature
| Secure Signing
| Document Security
| Digital Certificate
| X.509 Certificate
| Batch Signing
| Signature Management
| Code Signing
| Signature Workflow
| Digital Signature API
| Electronic Signature API
| GroupDocs SDK
| Document Integrity
| Multi-format Signing
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- Newtonsoft.Json (>= 13.0.2)
-
.NETStandard 2.1
- Aspose.Drawing.Common (>= 24.6.0)
- Autofac (>= 6.4.0)
- Microsoft.Extensions.DependencyModel (>= 5.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
- Microsoft.Win32.Registry (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.3)
- SkiaSharp (>= 2.88.8)
- System.Buffers (>= 4.5.1)
- System.Diagnostics.DiagnosticSource (>= 8.0.1)
- System.Diagnostics.PerformanceCounter (>= 4.5.0)
- System.Drawing.Common (>= 6.0.0)
- System.Net.Http.Json (>= 8.0.0)
- System.Reflection.Emit (>= 4.7.0)
- System.Reflection.Emit.ILGeneration (>= 4.7.0)
- System.Security.Cryptography.Pkcs (>= 7.0.0)
- System.Security.Cryptography.Xml (>= 7.0.0)
- System.Security.Permissions (>= 5.0.0)
- System.Text.Encoding.CodePages (>= 8.0.0)
- System.Text.Json (>= 8.0.4)
-
net6.0
- Aspose.Drawing.Common (>= 24.6.0)
- Autofac (>= 6.4.0)
- Microsoft.Extensions.DependencyModel (>= 6.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
- Microsoft.Win32.Registry (>= 5.0.0)
- Newtonsoft.Json (>= 13.0.3)
- SkiaSharp (>= 2.88.8)
- System.Diagnostics.DiagnosticSource (>= 8.0.1)
- System.Diagnostics.PerformanceCounter (>= 6.0.1)
- System.Drawing.Common (>= 6.0.0)
- System.Reflection.Emit (>= 4.7.0)
- System.Reflection.Emit.ILGeneration (>= 4.7.0)
- System.Security.Cryptography.Pkcs (>= 7.0.0)
- System.Security.Cryptography.Xml (>= 7.0.0)
- System.Security.Permissions (>= 6.0.0)
- System.Text.Encoding.CodePages (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
24.12.0 | 361 | 12/20/2024 |
24.11.0 | 1,335 | 11/20/2024 |
24.10.0 | 718 | 10/31/2024 |
24.9.0 | 980 | 9/20/2024 |
24.8.0 | 1,147 | 8/25/2024 |
24.7.0 | 533 | 8/1/2024 |
24.6.0 | 987 | 7/1/2024 |
24.5.0 | 842 | 6/1/2024 |
24.4.0 | 1,305 | 4/30/2024 |
24.3.0 | 1,090 | 4/2/2024 |
24.2.0 | 1,528 | 2/29/2024 |
24.1.0 | 835 | 2/1/2024 |
23.12.0 | 1,333 | 12/28/2023 |
23.11.0 | 1,869 | 11/29/2023 |
23.10.0 | 1,701 | 10/25/2023 |
23.9.0 | 1,592 | 9/27/2023 |
23.8.0 | 1,593 | 8/30/2023 |
23.7.0 | 1,505 | 7/28/2023 |
23.6.0 | 2,960 | 7/9/2023 |
23.5.0 | 6,558 | 5/31/2023 |
23.4.0 | 1,220 | 4/29/2023 |
23.3.0 | 1,340 | 3/30/2023 |
23.2.0 | 2,013 | 3/1/2023 |
23.1.0 | 1,939 | 1/31/2023 |
22.12.0 | 7,949 | 12/31/2022 |
22.11.0 | 2,560 | 12/1/2022 |
22.10.0 | 1,109 | 11/1/2022 |
22.9.0 | 1,217 | 10/2/2022 |
22.8.0 | 1,118 | 8/31/2022 |
22.7.0 | 1,286 | 7/31/2022 |
22.6.0 | 1,264 | 6/30/2022 |
22.4.0 | 9,960 | 4/6/2022 |
21.11.0 | 16,094 | 12/1/2021 |
21.9.0 | 14,723 | 9/30/2021 |
21.7.0 | 10,710 | 8/1/2021 |
21.6.0 | 6,344 | 6/29/2021 |
21.4.0 | 7,075 | 5/3/2021 |
21.3.0 | 6,371 | 3/31/2021 |
21.1.0 | 45,470 | 1/28/2021 |
20.11.0 | 35,811 | 11/30/2020 |
20.10.0 | 25,062 | 11/2/2020 |
20.9.0 | 22,797 | 9/30/2020 |
20.8.0 | 21,641 | 9/1/2020 |
20.7.0 | 21,972 | 8/2/2020 |
20.6.0 | 50,587 | 7/1/2020 |
20.5.0 | 36,117 | 5/31/2020 |
20.4.0 | 37,275 | 4/30/2020 |
20.3.0 | 21,817 | 3/31/2020 |
20.2.0 | 37,482 | 2/29/2020 |
20.1.0 | 22,497 | 2/3/2020 |
19.12.1 | 19,709 | 1/10/2020 |
19.12.0 | 20,473 | 12/30/2019 |
19.10.0 | 32,991 | 10/31/2019 |
19.9.0 | 831 | 9/30/2019 |
19.8.0 | 867 | 8/23/2019 |
19.6.0 | 1,346 | 6/27/2019 |
19.5.0 | 1,557 | 5/30/2019 |
19.4.0 | 849 | 4/30/2019 |
19.3.0 | 889 | 3/30/2019 |
18.7.1 | 1,269 | 8/1/2018 |
18.7.0 | 1,211 | 7/30/2018 |
18.6.0 | 1,317 | 6/20/2018 |
18.5.0 | 1,117 | 5/30/2018 |
18.3.0 | 1,316 | 3/21/2018 |
18.2.0 | 1,369 | 2/19/2018 |
18.1.1 | 1,317 | 1/22/2018 |
18.1.0 | 1,445 | 1/21/2018 |
17.12.0 | 1,315 | 12/7/2017 |
17.11.0 | 1,272 | 11/7/2017 |
17.10.0 | 1,215 | 10/3/2017 |