So if the following is the code I'm using to add a digital signature field with
iText 2.7.1:
PdfAcroForm acroForm = pdfWriter.getAcroForm();
PdfFormField signatureField = PdfFormField.createSignature(pdfWriter);
signatureField.setWidget(new Rectangle(llx, lly, urx, ury),
PdfAnnotation.HIGHLIGHT_INVERT);
signatureField.setFieldName("Signature 1");
signatureField.setPage();
acroForm.addFormField(signatureField);
Specifically, how would I "Set the rotation on the DigSig field to the negative
of the page's rotation to "unrotate" it".
I can't figure out how to get the current page or the current page's rotation,
and I've found a few places that allow rotation to be set, but I'm not sure
which is the appropriate one.
-Chris
From: Leonard Rosenthol [mailto:[email protected]]
Sent: Wednesday, May 30, 2012 4:47 PM
To: Post all your questions about iText here
Subject: <Ext> Re: [iText-questions] Setting the default orientation of
signatures in a digital signature field
Set the rotation on the DigSig field to the negative of the page's rotation to
"unrotate" it.
From: Christopher Leighton
[mailto:[email protected]]<mailto:[mailto:[email protected]]>
Sent: Wednesday, May 30, 2012 7:25 PM
To:
[email protected]<mailto:[email protected]>
Subject: [iText-questions] Setting the default orientation of signatures in a
digital signature field
I am generating a pdf with an unsigned digital signature field. When I sign the
document with Adobe Acrobat, the digital signature is rotated 90 degrees
clockwise from the desired orientation. I have a hunch that this might be due
to the fact that the document I generate uses landscape orientation.
Regardless, is there a way for iText to indicate the default orientation of the
content within the field (specifically for a digital signature field)?
-Chris
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php