Hi,

I found a potential issue when trying to use the 'onCloseDocument' page
event to add a form field to the document.

The motivation for this is to add a custom form field to the
last page of document that is being autogenerated by HtmlWorker. The
field would then be used for the digital signature once the entire
document is merged with additional pdf's. The field may also be used as
a visible representation of the digital signature.

>From looking at the code in PdfDocument.close() - line ~763+, I can see
that there are still some pre-actions - like issuing a newpage() method
and others. The newpage() turns out to be critical as it turns the
annotations from the form field into real document fields.

My question is:

- is the 'add a form field upon document close' a scenario that should
work?

- if not, shouldn't there me an additional 'onDocumentEnd()' event that
would be really the very last thing issued prior to running any of the
close actions?

Best regards,

Jan Capek

p.s. I am not subscribed to the list, please, cc me with any comments

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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/

Reply via email to