Add a signature field to the PDF

PUT http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf/fields/signature-fields/myfield
(sample JSON in message body)
{
    "widget":[
        {
            "pageIndex":0,
            "rectangle":
            {
                "x":100,
                "y":100,
                "width":200,
                "height":50
            }
        }
    ]
}

Get all signature fields the PDF

GET http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf/fields/signature-fields

Sign the PDF

POST http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf/fields/signature-fields/myfield/signature
(pfx or p12 file as attachment)
(sample JSON)
{
  "keystorePassword":"password", 
  "keyAlias":"alias", 
  "keyPassword":"password", 
  "certifyingSignature":true, 
  "certifyingPermissions":3,
  "signLocation" : "US",
  "signReason" : "I approve this document",
  "signContactInformation" : "me@example.com"
}

Sign the PDF with Specified ID

Configure the Digital ID using Preferences in the PAS Manager. The ID parameter sets the Digital ID to use. If the ID parameter is omitted, then the default signature is used.

POST http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf/fields/signature-fields/mySigField/default-signature?id=myID

Clear signature

DELETE http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf/fields/signature-fields/mySigField