Sign a sample PDF or sign your own: PDF file
Download signed.pdf
Nothing leaves this page: the key, the certificate and the document stay in memory.