Digitally signed PDF
Hi.
Is it possible to digitally sign the resulted PDF file?
Thanks!
Is it possible to digitally sign the resulted PDF file?
Thanks!
This discussion has been closed.
Comments
https://stackoverflow.com/questions/378247/...-sign-pdf-files
Hi,
Not sure if this helps:
In some of our projects we use FR to produce reports and export them to PDF, and we use this tool from signfiles (https://www.signfiles.com/signature-library/) to sign the file after it is created.
It is not free, but it works.
Carlos
Signature Options
Modifying the Configuration Files
As an alternative to the options dialog mentioned above, you can also set the the values for the signing certificate in one of the configuration files that the PDF Writer use. I will show you how to do this.
With the certificate in place, you just need to modify one of the configuration files that control the printer. If you are controlling the printer using the API then you are most likely writing the runonce.ini. In this example, I will use the global.ini to apply my signature.
Locate your global.ini and edit it in Notepad. You need to set two values. The first one is SignCertificate that tells the PDF Writer, which certificate to use. The second one is SignPassword that holds the password for the certificate.
[PDF Printer]
SignCertificate=C:\Certificates\test.pfx
SignPassword=test
Save the changes and make a print to the PDF Writer.
The Result
In my test I just printed a simple text from Notepad.
Adobe Signature Has Problems
Open the signature panel to see the signature.
Adobe Signature Panel
Visible Signatures
The example above did not have a signature that was visible in the document itself. It only made the Adobe Reader show that the document was signed. You can use a set of additional signature settings to make the signature visible in the PDF document.
300-175 dumps
Hello!
In the current commercial versions of FastReport .NET, digital PDF signing is supported natively through the properties of the FastReport.Export.Pdf.PDFExport class (IsDigitalSignEnable, DigitalSignCertificate, or DigitalSignCertificatePath, DigitalSignCertificatePassword):
using System.Security.Cryptography.X509Certificates; using FastReport; using FastReport.Export.Pdf; using var report = new Report(); report.Load(“report.frx”); report.Prepare(); var cert = new X509Certificate2(“certificate.pfx”, “password”); var pdfExport = new PDFExport { IsDigitalSignEnable = true, DigitalSignCertificate = cert, DigitalSignCertificatePassword = “password”, DigitalSignReason = “Document signature”, DigitalSignLocation = “Moscow” }; report.Export(pdfExport, “signed_report.pdf”);You can also place a digital signature object in the report template to display a visible signature field in the PDF. Please note that full support for PDF signatures is available in the commercial FastReport .NET / FastReport.Core product line (this feature is not available in FastReport.OpenSource.Export.PdfSimple).