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

Distiller API Reference

zeina
Registered: Oct 6 2007
Posts: 2

In the document (DistillerAPIReference.pdf) in the (Adobe Acrobat 7.0.5 SDK ) there is this section witch describe turned off Prompting for fiel name programmatically :
   
Prompting can be turned off programmatically by modifying the Windows registry. This method applies to the creation of only one PDF document by a specific application for the current user. To do this, entries are added under the Windows registry key:
HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl
This key takes as subkeys:
(Default)application
The (Default) entry is reserved for possible future use and should not be used. The application subkey is the full path of the application that is to have prompting turned off. The value of the application subkey is a REG_SZ value that is the full path of the output file. For example, the following registry script would turn off prompting for the next printing performed by wordpad.exe, printing to the file c:\MyPDFoutputFileName.pdf:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl]"C:\Program Files\Windows NT\Accessories\wordpad.exe" = "c:\MyPDFoutputFileName.pdf"
   
I tried to do it manually and it's not working, could any one provide me with an example so I can use this feature in my program.

My Product Information:
Acrobat Standard 8.0999999999999996447286321199499070644378662109375, Windows
dthanna
ExpertTeam
Registered: Sep 28 2005
Posts: 248
Keep in mind that Distiller (as to most of the Acrobat family) statically loads the registry values. In other words, once the application, in this case Distiller, has launched, making a change to the registry will not have any effect.

Also, you will need to programatically make this registry change each time you print.

And lastly, you might want to reread the Acrobat EULA - especially the areas regarding servers and networks if this app will be used in those environments.

Good luck.

Douglas Hanna is a member of the Production Print Technology team at Aon.
www.aonhewitt.com