Hi msinatl, it's always a bit tricky to estimate the size of a signature as the standards allow a broad variety of data to be included into a signature ( or just left out ). Moreover the PDF format uses a hex encoding of the binary signature, so the size doubles. If you are going to do an operation you need to pay for ( like a timestamp ) you will always go for a little more space ...
Your example of 7.7 MB for five signature sounds extreme ... you may take a look inside the PDF fle : The unused space for a signature must be filled with '0' ( zero characters ), so it's easy to find ... Greetings Andreas ----- original Nachricht -------- Betreff: [iText-questions] Estimated space, signing with timestamp Gesendet: Mo, 13. Sep 2010 Von: msinatl Hello,I am using the example from Chapter 12 (http://itextpdf.com/examples/iia.php?id=225) for signing using a timestamp and OCSP.On the line where estimated space is declared:// preserve some space for the contentsint contentEstimated = 15000;What is the source of that number, 15000? I am inclined to replace it with the number of bytes in my content input stream. Am I mistaken?I ask because a PDF that was previously 201 Kb when signing without a timestamp is now 7.7 Mb when signing (five signatures) with the timestamp. Is this expected? That seems extreme. View this message in context: Estimated space, signing with timestamp Sent from the iText - General mailing list archive at Nabble.com. --- original Nachricht Ende ----
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/
