I found the problem where it is I am using the following code. In this code, i am using the rotate function to make sure my PDF to show up in Landscape format. This is causing the issue. I cant change my PDF display from Landscape to portrait now. I tried to find a right method to modify this. Can you suggest little in detail like which is the best methos to counter rotate. I tried to use Flags.NO_ROTATE for PDF form field but it failed to print.
Document document = new Document(); document.setPageSize(PageSize.A4); Rectangle rec = m_document.getPageSize(); document.setPageSize(rec.rotate()); Thanks in advnace for your help. Thanks Pardha Leonard Rosenthol-3 wrote: > > If the signature is coming out rotated on a given page, that means that > the page itself has a /Rotate key on it. Your code will need to detect > that and give your annotation a counter-rotation. > > -----Original Message----- > From: Pardha1 [mailto:[email protected]] > Sent: Wednesday, February 03, 2010 4:41 PM > To: [email protected] > Subject: [iText-questions] Empty Signature field in PDF > > > Hello Friends, > > I have any issue while implementing empty signature in PDF. I search this > forum and found the same code what i used as part of the solution. The > below > lines of code is working good to create a empty signature. When i tried to > sign the document by clicking on this, it is producting a signature > vertically(means turning the signature to right 90 degrees). This code is > working good when i tried to implement this for a empty PDF page. Issues > coming up while using this with application specific PDF. > > Can some one help me like how to set this up properly. > > One more question is what is the PDF version required to sign this empty > signature. Is PDF write mandatory?. > > Any help is highly appreciated. > > pdf = new PdfReader("C:\\SampleInputPDF.pdf"); > stp = new PdfStamper(pdf, new FileOutputStream("C:\\MyPdfOut.pdf")); > > PdfFormField sig = PdfFormField.createSignature(stp.getWriter()); > > sig.setWidget(new Rectangle(75, 150, 250, 180), null); > sig.setFlags(PdfAnnotation.FLAGS_PRINT); > sig.put(PdfName.DA, new PdfString("/Helv 0 Tf 0 g")); > sig.setFieldName("Signature1"); > sig.setPage(1); > stp.addAnnotation(sig,1); > stp.close(); > > > Thanks > Pardha > -- > View this message in context: > http://old.nabble.com/Empty-Signature-field-in-PDF-tp27443964p27443964.html > Sent from the iText - General mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > Check the site with examples before you ask questions: > http://www.1t3xt.info/examples/ > You can also search the keywords list: > http://1t3xt.info/tutorials/keywords/ > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > Check the site with examples before you ask questions: > http://www.1t3xt.info/examples/ > You can also search the keywords list: > http://1t3xt.info/tutorials/keywords/ > > -- View this message in context: http://old.nabble.com/Empty-Signature-field-in-PDF-tp27443964p27456663.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
