>> Anjanappa wrote >> I have the requirement of controlling PDF form fields like >> accessing the field values outside the PDF. >> Can I access the PDF form field values in a Java Script >> function written inside an HTML?
Paulo Soares wrote: > No Bruno clarifies: You can set up an interaction between a PDF and an HTML page, but it won't work with every browser/reader. Also, you need specific JavaScript in the PDF you want to communicate with. I have two examples: (1) http://itext.ugent.be/playground/agreement.html Here, you can open a course picker by clicking on the button in the HTML page that embeds the PDF. Select a course, click OK, and the course will appear in the PDF. (2) http://itext.ugent.be/playground/talk_to_html.html Here you have an HTML page with an empty HTML form field and a PDF with an empty form field and a button. Enter some data in the PDF field, click OK and the data will be sent to the HTML field. >> If it is possible, please send me the sample code snippet. It is not recommended to use these features in a production environment. If you're an expert, you'll be able to extract the sample code snippets from the sample PDFs and HTMLs of examples (1) and (2). If you don't know how to extract the code snippets, please accept Paulo's answer: Paulo Soares wrote: > No br, Bruno ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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/
