These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to combine two forms on printing without opening secondary form?

sorcerus
Registered: Jan 16 2008
Posts: 9

I have programmed a form (created with specific programming according to my needs) which, when the user clicks on its print button, a pop-up window will inquire whether the user wishes to print another form (it is a contract). If the user wishes to print the secondary form, this document will be printed right after the main form.

How can I program the main form to print the secondary form without opening it on Reader or Acrobat, that is, by simply sending it to the printer?

My Product Information:
Acrobat Pro 8.1.1, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You can't. No printer or print driver that I know of can print a PDF directly. It has to be interpreted by an application, in this case, Acrobat. The file has to be opened in Acrobat first. This shouldn't be a big problem though, just close it after printing.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

sorcerus
Registered: Jan 16 2008
Posts: 9
thomp wrote:
You can't. No printer or print driver that I know of can print a PDF directly. It has to be interpreted by an application, in this case, Acrobat. The file has to be opened in Acrobat first. This shouldn't be a big problem though, just close it after printing.
Actually, this form is programmed for automatic printing of the main form and the secondary form through a button, per client's request.

I have already programmed the form to do the above, using the commands to open and close a document, but, this form is opened by my client through the Internet Explorer browser, and, as we all know, "closeDoc()" does not work in the browsers.

In light of the facts exposed above, I ask: is there a way (script command) for closing this (secondary) form in the browser?
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Acrobat has closed that feature in the web browser plug-in because of possible security issues like closing or exiting Acrobat/Reader if the wrong window is referenced.

George Kaiser

sorcerus
Registered: Jan 16 2008
Posts: 9
Is there a way to program in Javascript a command to open a secondary form direcly on the ACROBAT/READER software from the main form open in the IE browser's plugin?