Rui, rukinhas wrote: > I'm having troubles doing three things: > 1- Positioning the signature on the pdf page (signature stamp) > [...] > I think that the size of the signature is the difference between the > coordinates, but can't seem to find out to what point of the document is > used as a reference to the coordinates specified. > Is it the bottom of the page? The top of the page? Is it the right corner > or the left?
You should consult the PDF specification, ISO 32000-1:2008. Chapter 8.3 will tell you: > The user space coordinate system shall be initialized to a default state > for each page of a document. The CropBox entry in the page dictionary > shall specify the rectangle of user space corresponding to the visible > area of the intended output medium (display window or printed page). The > positive x axis extends horizontally to the right and the positive y axis > vertically upward, as in standard mathematical practice (subject to > alteration by the Rotate entry in the page dictionary). The length of a > unit along both the x and y axes is set by the UserUnit entry (PDF 1.6) in > the page dictionary (see Table 30). If that entry is not present or > supported, the default value of 1⁄72 inch is used. This coordinate system > is called default user space. > > NOTE 1 In PostScript, the origin of default user space always corresponds > to the lower-left corner of the output medium. While this convention is > common in PDF documents as well, it is not required; the page dictionary’s > CropBox entry can specify any rectangle of default user space to be made > visible on the medium. Therefore the origin... may be anywhere! To be sure, you'll have to read the CropBox and Rotate entries. rukinhas wrote: > 3- editing the text for the signature. > [...] > The signature can contain some fields. One of those fields is "reason" and > the text on pdf will be "Reason:". > I would like to change this text to something else, but I can't figure > out how to do it. com.itextpdf.text.pdf.PdfSignatureAppearance.setReason(String) Or do you want to replace the "Reason:" header by something? It is hard coded in com.itextpdf.text.pdf.PdfSignatureAppearance.getAppearance() for app[2]. But you may override the Layer design by filling the PdfTemplate getLayer(2) yourself. Regards, Michael. -- View this message in context: http://itext-general.2136553.n4.nabble.com/itext-questions-Digital-Signature-Position-tp3050406p3050482.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions 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
