I am trying to sign on a pdf document that that was converted with aspose.words to pdf the size of the signature is fine but the y of the signature is wrong, to sign the document I use this code:
//create PdfFileSignature object and bind input and output PDF files
PdfFileSignature pdfSign = new PdfFileSignature(“input.pdf”, “output.pdf”);
//create a rectangle for signature location
System.Drawing.Rectangle rect = new System.Drawing.Rectangle(100, 100, 200, 100);
//set signature appearance
pdfSign.SignatureAppearance = “butterfly.jpg”;
//create any of the three signature types
PKCS1 signature = new PKCS1(“test.pfx”, “password”); // PKCS#1 or
//PKCS7 signature = new PKCS7(“test.pfx”, “password”); // PKCS#7 or
//PKCS7Detached signature = new PKCS7Detached(“test.pfx”, “password”); // PKCS#7 detached
pdfSign.Sign(1, “Signature Reason”, “Contact”, “Location”, true, rect, signature);
//save output PDF file
the word file that I converted is attached to the message.
it seem like up is down and down is up, wired…
Can you please share your resource files, along with DOCX to PDF conversion output, so that we can again try replicating the issue in our environment. We are sorry for this inconvenience.