Re: [iText-questions] Xfa signature
Hi Emmanuel, thanks for the detailed answer ! So 'dynamic' is more or less the short version of 'dynamically calculated representation depending on the current data'. Anyway, impleneting XFA signature brings a fairly portion of work. But if there are 'magic' numbers involved, I wouldn't be too eager to spend time and effort on XFA signatures ... Greetings Andreas - original Nachricht Betreff: Re: [iText-questions] Xfa signature Gesendet: Mi, 13. Jul 2011 Von: Emmanuel Costernd...@gmail.com You can find a definition of dynamic form in the XFA spec: Here is an extract: Dynamic forms change in appearance in response to changes in the data. They can do this in several ways. Forms may be designed to change structure to accommodate changes in the structure of the data supplied to the form. For example, a page of the form may be omitted if there is no data for it. Alternatively changes can occur at a lower level. For example, a field may occupy a variable amount of space on the page, resizing itself to efficiently hold its content. Dynamic forms use paper or screen real estate efficiently and present a cleaner, more modern look than static forms. On the other hand a dynamic form cannot rely on a PDF representation of its boilerplate, because the positioning and layout of the boilerplate change as the fields grow and shrink or as subforms are omitted and included. Hence dynamic forms require that the boilerplate be included in the template in a form that the XFA processor can render at run-time. This rendering does not have the exquisite control over appearance that PDF yields. Furthermore it uses more CPU time than a static XFAF form. What you say about signature mechanism is correct -- typically an author signature followed by recipient ones. This principle does not change for the XFA documents. But Acrobat Pro brings something new, undocumented (well... as far as I know of course): the checksum computation written in the XFA form in the form node. For example, this node was created by Acrobat Pro (and is *MANDATORY* for signature validation): form xmlns=http://www.xfa.org/schema/xfa-form/2.8/; checksum=OI0a7q2Hu8kYSJ6C19+SSW2F9XI= subform name=formulaire1 instanceManager name=_/ subform field name=Signature1 access=readOnly/ field name=Signature2 access=readOnly/ /subform pageSet pageArea name=Page1/ /pageSet /subform /form -- View this message in context: http://itext-general.2136553.n4.nabble.com/Xfa-signature-tp2172306p3665243.h tml Sent from the iText - General mailing list archive at Nabble.com. -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ 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 --- original Nachricht Ende -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ 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
Re: [iText-questions] Xfa signature
Hello Andreas, There is the PDFSigned with XFA and the XML. I also add the original document and the original document signed by adobe if this can help. Please note that we had manualy insert the checksum in the xml we took this checksum from and XML result of an adobe succesfully signed pdf. Just to valid if this is working with the checksum because we see that the XML is the same as the Non-Signed version but without the checksum at the end. There is the document, By the way im working with mathieu on that problems its why I reply to this post ! I will continue investigate Cheer's, Christian Leclerc. http://old.nabble.com/file/p27378127/signedWithXfa.pdf signedWithXfa.pdf http://old.nabble.com/file/p27378127/signedWithXfa.pdf.xml signedWithXfa.pdf.xml http://old.nabble.com/file/p27378127/original_signed_with_adobe.pdf original_signed_with_adobe.pdf http://old.nabble.com/file/p27378127/original_unsigned.pdf original_unsigned.pdf Andreas Kuehne-2 wrote: Hi Mathieu, does your XML validate ? How did you apply the XML signature ? Could you share the XML document / the PDF ? Greetings Andreas From: Mathieu Fortin mathieu.for...@notarius.com To: itext-questions@lists.sourceforge.net Sent: Mon, January 25, 2010 11:04:31 PM Subject: Re: [iText-questions] Xfa signature Xfa signature Still unanswered. Is that one of those adobe proprietary feature? An interesting but maybe unrelated thing is that if we delibarately produces an error in the xml , adobe reader throws a bunch of xml parsing error BUT the signature appears( doesn't validate though) Notarius Inc. 700-1080 Côte du Beaver Hall Montréal, Québec, H2Z 1S8 Avis de confidentialité / Confidentiality Notice Notarius Inc. - Certifié ISO 9001 : 2000 Centre de certification du Québec - Certifié ISO 27001 : 2005 From: Mathieu Fortin To: itext-questions@lists.sourceforge.net Sent: Thu Jan 21 17:52:59 2010 Subject: [iText-questions] Xfa signature I understand that with xfa docs we can sign the whole pdf or the xml datasets (in whole or in parts). We are trying to sign the whole pdf using the same method as static pdf. The result is a signature extractable by IText, but Adobe Reader doesn't even see there is a signature in there. When we sign with acrobat it hads a form element in the xdp along with a checksum value. The question is: - how is this checksum calculated? - is this checksum even used by reader to discover the signatures? Mathieu Notarius Inc. 700-1080 Côte du Beaver Hall Montréal, Québec, H2Z 1S8 Avis de confidentialité / Confidentiality Notice Notarius Inc. - Certifié ISO 9001 : 2000 Centre de certification du Québec - Certifié ISO 27001 : 2005 -- 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 iText-questions@lists.sourceforge.net 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/Xfa-signature-tp27266070p27378127.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 iText-questions@lists.sourceforge.net 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/
Re: [iText-questions] Xfa signature
NO! Everything you need to know is documented in either ISO 32000-1 or the XFA specification. You just need to read those documents. Nothing proprietary. Leonard From: Mathieu Fortin [mailto:mathieu.for...@notarius.com] Sent: Monday, January 25, 2010 11:05 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Xfa signature Still unanswered. Is that one of those adobe proprietary feature? An interesting but maybe unrelated thing is that if we delibarately produces an error in the xml , adobe reader throws a bunch of xml parsing error BUT the signature appears( doesn't validate though) Notarius Inc. 700-1080 Côte du Beaver Hall Montréal, Québec, H2Z 1S8 Avis de confidentialité / Confidentiality Notice Notarius Inc. - Certifié ISO 9001 : 2000 Centre de certification du Québec - Certifié ISO 27001 : 2005 From: Mathieu Fortin To: itext-questions@lists.sourceforge.net Sent: Thu Jan 21 17:52:59 2010 Subject: [iText-questions] Xfa signature I understand that with xfa docs we can sign the whole pdf or the xml datasets (in whole or in parts). We are trying to sign the whole pdf using the same method as static pdf. The result is a signature extractable by IText, but Adobe Reader doesn't even see there is a signature in there. When we sign with acrobat it hads a form element in the xdp along with a checksum value. The question is: - how is this checksum calculated? - is this checksum even used by reader to discover the signatures? Mathieu Notarius Inc. 700-1080 Côte du Beaver Hall Montréal, Québec, H2Z 1S8 Avis de confidentialité / Confidentiality Notice Notarius Inc. - Certifié ISO 9001 : 2000 Centre de certification du Québec - Certifié ISO 27001 : 2005 -- 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 iText-questions@lists.sourceforge.net 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/
Re: [iText-questions] Xfa signature
Hi Mathieu, does your XML validate ? How did you apply the XML signature ? Could you share the XML document / the PDF ? Greetings Andreas From: Mathieu Fortin mathieu.for...@notarius.com To: itext-questions@lists.sourceforge.net Sent: Mon, January 25, 2010 11:04:31 PM Subject: Re: [iText-questions] Xfa signature Xfa signature Still unanswered. Is that one of those adobe proprietary feature? An interesting but maybe unrelated thing is that if we delibarately produces an error in the xml , adobe reader throws a bunch of xml parsing error BUT the signature appears( doesn't validate though) Notarius Inc. 700-1080 Côte du Beaver Hall Montréal, Québec, H2Z 1S8 Avis de confidentialité / Confidentiality Notice Notarius Inc. - Certifié ISO 9001 : 2000 Centre de certification du Québec - Certifié ISO 27001 : 2005 From: Mathieu Fortin To: itext-questions@lists.sourceforge.net Sent: Thu Jan 21 17:52:59 2010 Subject: [iText-questions] Xfa signature I understand that with xfa docs we can sign the whole pdf or the xml datasets (in whole or in parts). We are trying to sign the whole pdf using the same method as static pdf. The result is a signature extractable by IText, but Adobe Reader doesn't even see there is a signature in there. When we sign with acrobat it hads a form element in the xdp along with a checksum value. The question is: - how is this checksum calculated? - is this checksum even used by reader to discover the signatures? Mathieu Notarius Inc. 700-1080 Côte du Beaver Hall Montréal, Québec, H2Z 1S8 Avis de confidentialité / Confidentiality Notice Notarius Inc. - Certifié ISO 9001 : 2000 Centre de certification du Québec - Certifié ISO 27001 : 2005-- 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 iText-questions@lists.sourceforge.net 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/
Re: [iText-questions] Xfa signature
Still unanswered. Is that one of those adobe proprietary feature? An interesting but maybe unrelated thing is that if we delibarately produces an error in the xml , adobe reader throws a bunch of xml parsing error BUT the signature appears( doesn't validate though) Notarius Inc. 700-1080 Côte du Beaver Hall Montréal, Québec, H2Z 1S8 Avis de confidentialité / Confidentiality Notice Notarius Inc. - Certifié ISO 9001 : 2000 Centre de certification du Québec - Certifié ISO 27001 : 2005 From: Mathieu Fortin To: itext-questions@lists.sourceforge.net Sent: Thu Jan 21 17:52:59 2010 Subject: [iText-questions] Xfa signature I understand that with xfa docs we can sign the whole pdf or the xml datasets (in whole or in parts). We are trying to sign the whole pdf using the same method as static pdf. The result is a signature extractable by IText, but Adobe Reader doesn't even see there is a signature in there. When we sign with acrobat it hads a form element in the xdp along with a checksum value. The question is: - how is this checksum calculated? - is this checksum even used by reader to discover the signatures? Mathieu Notarius Inc. 700-1080 Côte du Beaver Hall Montréal, Québec, H2Z 1S8 Avis de confidentialité / Confidentiality Notice Notarius Inc. - Certifié ISO 9001 : 2000 Centre de certification du Québec - Certifié ISO 27001 : 2005 -- 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 iText-questions@lists.sourceforge.net 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/