Bapuji Nakka,

Bapuji Nakka wrote
> In setVisibleSignature method we need to give page number. Instead of
> giving perticular page, Is there any way to *display the signature at the
> right hand side of the end of the document content?*

Well, the "end of the document content" is the last page, isn't it? Thus,
simply give the number of the last page. As for stamping you already have
instantiate a PdfReader, you can retrieve that number easily from this
reader.

"Right hand side" --- well, simply read the dimensions of the page (media
box / crop box), also available from the PdfReader. With those dimensions
you can easily calculate the rectangle for the signature to match your
expectations.

Or, saying "end of the document content" do you not only mean the last page
but additionally below any existing actual content of that last page? In
that case you should do some content parsing on the last page to determine
the bounding box of the existing content and use that bounding box to
determine your preferred signature position. You might want to look at the
iText sample ShowTextMargins.java:
http://itextpdf.com/examples/iia.php?id=280

> iam using the below method.*what is the significance of the last
> parameter.*
>  sap.setVisibleSignature(new Rectangle(72, 732, 144, 780),page,null);

For such question you had best look at the code and its JavaDoc:

    /**
     * Sets the signature to be visible. It creates a new visible signature
field.
     * @param pageRect the position and dimension of the field in the page
     * @param page the page to place the field. The fist page is 1
     * @param fieldName the field name or <CODE>null</CODE> to generate
automatically a new field name
     */
    public void setVisibleSignature(Rectangle pageRect, int page, String
fieldName)

Regards,   Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Signature-display-locationusing-PDFStamper-tp4659158p4659161.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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

Reply via email to