Help for a new boy please! I have looked throughout the forum without finding what I need, so here is my first post.
We have a need to print a banner on some documents to include some user-entered text (container number), so that the printed form is specific for a certain piece of kit. The script works fine, but the entered text needed to be mandatory - just ignoring it wasn't allowed. An extra bit of script was added using the 'this.closeDoc' function to close the document if nothing was entered. This also works fine if opened directly into Adobe Reader, but if opened via the intranet into a browser, it allows people to close the dialog box and carry on!
I found reference on another post saying "the closeDoc() function will not work in the Acrobat/Reader web plugin" (see here http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=12582) but no suggestion as to what to use instead!
Is there a way to get this function to work via a web browser (IE)? Or am I completely sunk?
The script we are using can be provided if required.
What you can do is opening another PDF document. That would close the previous one (if you are in the browser).
In some Acrobat (Reader) versions, it was (is) possible to get an URL using the javascript: protocol, which executes a browser-javascript. However, as said, it may or may not work, depending on the Reader version, and the newer the Acrobat/Reader is, the less likely it is.
Hope this can help.
Max.