Digital Signature (PKCS#11)

How to sign a document in PDFCreator when the private key is stored in a token (PKCS#11  Cryptoki) as well as the certificate. Is there any script to sign the PDF documents using the Cryptoki API?