I've tried this example http://www.javabeat.net/javascript-communication-between-html-and-pdf-in-itext/
So I have PDF with embeded javascript and with input fields in PDF.
When I tried to start(index.html for example) on my computer in IE11, than everything works. So when I enter name and loginname and click on send to PDF, than input fields in PDF are filled. But when I tried this example in chrome, than nothing happens.
I tried to debugging javascript and error which I give but after scrolling the page(without scrolling I don't have error) is this:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('file://') does not match the recipient window's origin ('null')