>>>Hello everyone,
>>>I need to print to a PDF file without the "Save as" dialog box that comes up when
>>>usinig the Adobe pdf driver. I'm sure this have been asked before, and I have done my homework
>>>searching with no luck. the SDK documentation says to change the rgistry keys, page 20 of the link below:
>>>
>>>
http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/pdf_creation_apis_and_specs/DistillerAPIReference.pdf>>>
>>>i.e.
>>>[HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl]
>>>"C:\Program Files\Windows NT\Accessories\wordpad.exe" = "c:\MyPDFoutputFileName.pdf"
>>>
>>>But I think it should be a better way, any thoughs anyone? maybe a piece of code.
>>>
>>>Thanks.
>>
>>Please excuse my ignorance here, but how can you save anything to the hard drive, which is printing to a PDF (I believe), without giving it a file name? If they have named the file someplace else, then why is that file name not being passed to the 'print to pdf' program?
>>
>>HTH
>>Beth
>
>Beth,
>
>Please re-read his question carefully. He only wants to avoid the Save As dialog and do it in the silent mode providing the name of the PDF.
Okay, that is what the registry key is all about. It took 3 reads for me to get that. I use ps2pdf.prg and pass in the filename with the rest of the parameters and do not get a 'save as' dialog when creating the pdf. ps2pdf is opensource.
Beth