Your solution will break the field name rules by creating a field with a '.' in the name without using an hierarchy.
The code as exists still works for me. I just did some tests both in Java and C# and both worked. I would like to see that third party PDF, if possible, otherwise I have to assume that your PDF is broken somewhere. By the way, working in Acrobat doesn't mean it's not broken. Paulo ----- Original Message ----- From: "Lafontaine, Guy" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Saturday, January 13, 2007 4:25 PM Subject: Re: [iText-questions] Digital signing with blank signature For testing purposes I replace the line with if ((fieldExists && name.IndexOf('.') >= 0) && (name != "sig.1")) I was waiting to see your comments before doing any permanent changes. If I test it with "if (fieldExists) {" I have the same problem. The issue only happens when there is a "." In the name of the field. Re: Digital signing with blank signature <http://sourceforge.net/mailarchive/message.php?msg_id=37901494> From: Paulo Soares <[EMAIL PROTECTED]> - 2007-01-13 06:44 What exactly did you do to fix the problem? In the next release that line will be replaced with: if (fieldExists) { If there's something to fix, now is a good time to say. The spawnPageFromTemplate can be done using PdfCopyFields and adding the template after having renamed the fields. Paulo ----- Original Message ----- From: "Lafontaine, Guy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 13, 2007 1:26 PM Subject: Re: [iText-questions] Digital signing with blank signature I found my problem, it is in the ItextSharp implementation of the preclose of pdfsignatureappearance line if (fieldExists && name.IndexOf('.') >= 0) { thank you. While I'm here I have another question, Is there a way to reproduce the same functionality as the spawnPageFromTemplate in PDF javascript? The form has template that are added when the user request it. I would like to add these myself when needed with Itext. GL Re: Digital signing with blank signature <http://sourceforge.net/mailarchive/message.php?msg_id=37900649> <http://sourceforge.net/mailarchive/message.php?msg_id=37900649%3e> From: Paulo Soares <[EMAIL PROTECTED]> - 2007-01-13 04:29 It works for me. If you want you can send me privately one of those PDFs. Paulo ----- Original Message ----- From: "Lafontaine, Guy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 13, 2007 12:58 AM Subject: [iText-questions] Digital signing with blank signature I've been trying to sign a document from a third party that has an existing blank signature field without success. The signature field name is "sig.1". When I use the code in How to sign a PDF using iText, the signature is applied but is not valid in acrobat. I added a second blank signature to the document name "sig2" and everything works well. If I rename it to "sig.2" I have the same problem. It seems like as soon as there is a "." In the name the signature is not valid in acrobat. Is there any way I can work around this? Because like I said, the document is from a third party and I cannot change the name of the field. GL -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------------------------------------------------------------------------- > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
