PdfSigner 1.0.1

Install-Package PdfSigner -Version 1.0.1
dotnet add package PdfSigner --version 1.0.1
<PackageReference Include="PdfSigner" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PdfSigner --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PdfSigner, 1.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install PdfSigner as a Cake Addin
#addin nuget:?package=PdfSigner&version=1.0.1

// Install PdfSigner as a Cake Tool
#tool nuget:?package=PdfSigner&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

PdfSigner

A simple iTextSharp wrapper to help sign PDF documents and to add a visual apperance at the bottom of each page.

Example

// Load pdf and certificate
byte[] pdfToSign = File.ReadAllBytes(Directory.GetCurrentDirectory() + @"\\Content\TestDocument.pdf");
byte[] certificateToUse = File.ReadAllBytes(Directory.GetCurrentDirectory() + @"\\Content\TestCertificate.pfx");

// Set text and image to show at the bottom of each page
var textToShow = String.Format("Signed by: MySelf!!\nSign date: {0}", DateTime.Now.ToShortDateString());            
var imageToShow = "https://i.ibb.co/YkPSv3P/dummysing.png";

// Sign the pdf
PdfSigner signer = new PdfSigner();
var signedDocumentWithImage = signer.Sign(pdfToSign, certificateToUse, "", textToShow, imageToShow);

// Save the signed pdf
File.WriteAllBytes(Directory.GetCurrentDirectory() + @"\\Signed.pdf", signedDocumentWithImage);

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
1.0.1 425 10/27/2020
1.0.0 212 10/27/2020