With a few screenshots, maybe I'll have more luck getting answers : * the background : http://itext-general.2136553.n4.nabble.com/file/n3466077/bg1.png * the signature image (500*300) : http://itext-general.2136553.n4.nabble.com/file/n3466077/signe0.png * the resulting in-pdf SignatureRenderGraphicAndDescription signature : http://itext-general.2136553.n4.nabble.com/file/n3466077/signature_margins.png
I would have expected something more like : http://itext-general.2136553.n4.nabble.com/file/n3466077/signature_margins_ok.png Which is what I get when I change the code to : float x = 0; float y = 0; x = x + (signatureRect.getWidth() - im.getScaledWidth()) / 2; y = y - (signatureRect.getHeight() - im.getScaledHeight()) / 2; p.add(new Chunk(im, x, y, false)); That's why I guess there's something wrong with the margins calculation in today's iText code. Could anyone confirm ? (beware I'm not saying the code given 2 lines above is a fix, maybe it only works in the particular case of the rectangle and image file sizes of this post) -- View this message in context: http://itext-general.2136553.n4.nabble.com/margins-for-the-graphic-part-of-a-signature-with-SignatureRenderGraphicAndDescription-rendering-mode-tp3461128p3466077.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ 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
