How to add a certificate sign to PDF files?

Hello,

I′m an user of pdf_editor_toolkit_pro and pdf2image

Now I need to add a certificate sign to pdfs.

Which tool do I need for this task?

Best regards,
Customer
-----------------------------------------

image
Thanks for your message, you can use "VeryPDF PDF Security and Signature (Shell & COM & SDK)" to add certificate sign to PDF files,

https://www.verypdf.com/app/pdf-security-and-signature/try-and-buy.html
https://www.verypdf.com/dl2.php/pdf-security-signature-cmd-sdk-com.zip

The user manual for "VeryPDF PDF Security and Signature (Shell & COM & SDK)" can be found from following web page,

https://www.verypdf.com/app/pdf-security-and-signature/user-guide.html

VeryPDF
-----------------------------------------
The following are options which supported by "VeryPDF PDF Security and Signature (Shell & COM & SDK)",

D:\pdf_security_signature_cmd\pdfsecure.exe
Product Name: VeryPDF PDF Security Command Line
Product Web Page: https://www.verypdf.com/app/pdf-security-and-signature/index.html
Release Date: Sep 22 2014
Web: https://www.verypdf.com
Web: http://www.verydoc.com
Support: http://support.verypdf.com
Description: Batch add electronic signatures and encryption to PDF files from command line.
Usage: pdfsecure.exe [options] <in-file> [<out-file>]
  -listcer <string>        : List certificates under store (ALL, MY, ROOT, CA, etc.)
  -cername <string>        : Set Certificate name
  -cerissuer <string>      : Set Certificate issuer
  -cerserialno <string>    : Set Certificate serial number (hex string)
  -cerstore <string>       : Certificate store (MY, ROOT, CA, etc.)
  -cerlocation <int>       : Certificate store location (0: local system, 1: current user), 1 is default
  -signreason <string>     : Signature reason
  -signfillcolor <string>  : Signature fill color
    -signfillcolor FF0000: Red color
    -signfillcolor 00FF00: Green color
    -signfillcolor 0000FF: Blue color
    -signfillcolor HexNum: Other colors
  -signstrokecolor <string>: Signature stroke color
    -signstrokecolor FF0000: Red color
    -signstrokecolor 00FF00: Green color
    -signstrokecolor 0000FF: Blue color
    -signstrokecolor HexNum: Other colors
  -signinfo <string>       : Signer's contact info
  -signrect <string>       : Signature annotation rectangle, e.g., -signrect "x,y,w,h"
  -signpage <int>          : Signature annotation page number (default: last page)
  -signlinewidth <int>     : Signature line width
  -signfont1 <string>      : Signature font name 1
  -signfont2 <string>      : Signature font name 2
  -signtext1 <string>      : Signature text 1
  -signtext2 <string>      : Signature text 2
  -signbgimage <string>    : Signature annotation background image
  -signdocperm <int>       : Set Document access permissions for signature
    -signdocperm 1. Any change to the document invalidates the signature.
    -signdocperm 2. Permitted Filling Forms, Instantiating Page Templates and Signing. Other changes invalidate the signature.
    -signdocperm 3. Include 2, as well as Annotation Creation, Deletion and Modification. Other changes invalidate the signature.
  -timestampurl <string>   : Time stamp server URL
  -timestamppwd <string>   : Time stamp server credentials
  -createtimesign          : Create a time stamp signature, you need set -timestampurl first
  -inopenpwd <string>      : Specify a password for the input file
  -openpwd <string>        : Set 'open password' to PDF file
  -ownerpwd <string>       : Set 'owner password' to PDF file
  -keylen <int>            : Key length (40 or 128 bit)
        -keylen  40:  40 bit RC4 encryption (Acrobat 3 or higher)
        -keylen 128: 128 bit RC4 encryption (Acrobat 5 or higher)
  -perm <int>              : Set the permission flags
       -perm    4: Allow Printing
       -perm    8: Allow Changing the Document
       -perm   16: Allow Content Copying or Extraction
       -perm   32: Allow Commenting
       -perm  256: Allow Filling of form fields
       -perm  512: Allow Content Extraction for Accessibility
       -perm 1024: Allow Document Assembly
       -perm 2048: Allow High Quality Printing
       -perm 3900: Allow All Permissions
       -perm    0: Not Allow All (default)
       -perm   -1: No Encryption is used
  -stringcrypt <string>    : Set the string crypt filter, e.g., rc4, aes128, aes256, default is rc4
  -streamcrypt <string>    : Set the stream crypt filter, e.g., rc4, aes128, aes256, default is rc4
  -linearize               : Optimize for the web (linearize)
  -forceencrypt            : Force encrypt some special PDF files
  -skip                    : Skip existing output files, don't overwrite it
  -v                       : Print copyright and version info
  -h                       : Print usage information
  -help                    : Print usage information
  --help                   : Print usage information
  -?                       : Print usage information
  -$ <string>              : Input registration key
Example:
   pdfsecure.exe -listcer all
   pdfsecure.exe -listcer my
   pdfsecure.exe -listcer ca
   pdfsecure.exe -cername "VeryPDF" D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -cerissuer "Issuer" D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -cerserialno "01234567890ABCDEF" D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -cerstore my D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -cerlocation 1 D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -signreason "For your review." D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -signfillcolor FF0000 D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -signstrokecolor FF0000 D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -signinfo "support@verypdf.com" D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -signrect "100,400,400,300" D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -signrect "0,0,0,0" D:\test.pdf D:\invisible.pdf
   pdfsecure.exe -cername "VeryPDF" -signpage 1 D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -signlinewidth 10 D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -signfont1 "C:\Windows\Fonts\Arial-CE-Italic.ttf" -signfont2 "C:\Windows\Fonts\times.ttf" D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -signtext1 "Text1" -signtext2 "Text2" D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -signbgimage "D:\background.jpg" D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -signbgimage "D:\background.png" D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -signdocperm 1 D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -signdocperm 2 D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -signdocperm 3 D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -createtimesign -timestampurl "http://timestamp.verisign.com/scripts/timstamp.dll" D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -createtimesign -timestampurl "http://timestamp.globalsign.com/scripts/timestamp.dll" D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -createtimesign -timestampurl "http://timestamp.comodoca.com/authenticode" D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -createtimesign -timestampurl "http://tsa.starfieldtech.com" D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -createtimesign D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -inopenpwd 123456 D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -openpwd 123 -ownerpwd 456 -keylen 128 -perm 2048 D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -ownerpwd 456 -keylen 128 -perm 0 D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -ownerpwd 456 -keylen 128 -perm 0 -forceencrypt D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -perm -1 D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -ownerpwd 456 -stringcrypt AES256 -streamcrypt AES256 -perm 0 D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -ownerpwd 456 -stringcrypt AES128 -streamcrypt AES128 -perm 0 D:\test.pdf D:\out.pdf
   pdfsecure.exe -cername "VeryPDF" -ownerpwd 456 -stringcrypt AES256 -streamcrypt AES256 -perm 0 -linearize D:\test.pdf D:\out.pdf
   pdfsecure.exe -$ XXXX-XXXX-XXXX-XXXX
-----------------------------------------

image
C# example source code to call "VeryPDF PDF Security and Signature (Shell & COM & SDK)",

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using VeryPDF;
using System.IO;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string appPath = Path.GetDirectoryName(Application.ExecutablePath);
            string strPDFFile = appPath + "\\readme.pdf";
            string strOutFile = appPath + "\\_test_out.pdf";

            string strCmd = "-cername \"VeryPDF\" -signrect \"50,500,200,60\" -signpage 1 -$ XXXX-XXXX-XXXX-XXXX";
            strCmd += " \"" + strPDFFile + "\" \"" + strOutFile + "\"";

            System.Type VeryPDFType = System.Type.GetTypeFromProgID("VeryPDF.PDFSecuritySignatureCom");
            VeryPDF.PDFSecuritySignatureCom VeryPDFCom = (VeryPDF.PDFSecuritySignatureCom)System.Activator.CreateInstance(VeryPDFType);
            string strReturn = VeryPDFCom.PDFSecuritySignature(strCmd);
            MessageBox.Show("Processing finished.");
        }
    }
}

-----------------------------------------
VB.NET example source code to call "VeryPDF PDF Security and Signature (Shell & COM & SDK)",

Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        Dim strFolderDir As String = Application.StartupPath()
        Dim strInFile As String = strFolderDir & "\readme.pdf"
        Dim strOutFile As String = strFolderDir & "\_test_out.pdf"
        Dim strLicenseKey As String = "-$ XXXX-XXXX-XXXX-XXXX"
        Dim strCmd As String = "-cername ""VeryPDF"" -signrect ""50,500,200,60"" -signpage 1 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"

        Dim VeryPDFCom As Object = CreateObject("VeryPDF.PDFSecuritySignatureCom")
        Dim strReturn As String = VeryPDFCom.PDFSecuritySignature(strCmd)
        MsgBox("Processing finished.")
    End Sub
End Class

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

One Reply to “How to add a certificate sign to PDF files?”

  1. Dear Support,

    We require command line PDF Password protector. Let we know the Advantage and prices details. Could you please sent the price details.

    Regards.
    Customer
    ——————————————–
    We suggest you may download following products from our website to try,

    VeryPDF Encrypt PDF,
    http://www.verypdf.com/app/encrypt-pdf/try-and-buy.html

    VeryPDF PDF Security and Signature,
    http://www.verypdf.com/app/pdf-security-and-signature/try-and-buy.html

    These products are all can protect PDF files, “VeryPDF PDF Security and Signature” is the best in this market.

    VeryPDF PDF Security and Signature (Shell & COM & SDK) is a cost effective application that allows you to digitally sign, timestamp and/or encrypt PDF files. By applying a digital signature on your PDF documents you will be able to guarantee the integrity of the content and also provide an additional level of trust in any business transaction you conduct. If you are a developer you can easily integrate VeryPDF PDF Security and Signature (Shell & COM & SDK) with your own application via a COM object or .NET assembly.

    You can refer to the price information from their web pages.

    VeryPDF

    VN:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.20_1166]
    Rating: 0 (from 0 votes)

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!