bypass Adobe PDF Printer “SaveFileAs” prompt

牧云@^-^@ 提交于 2019-12-12 08:55:38

问题


i have a program that opens files, creates a PDF version by sending it to Adobe printer and saving the created PDF in a specified output folder. occassionally, when it creates the PDF, it throws a "Save PDF File As" dialog. since it does this for thousands of files, i don't think its an issue within the program. this dialog only appears for some files. can anyone tell me if its a setting for the Adobe printer or registry settings that would cause this?

i think this question has been asked on many forums but I have not been able to find a solution to this problem.

thanks!


回答1:


You can write a key to the registry.
Here is an example of the registry key for PDFing from WordPad.

HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl
Value Name: C:\Program Files\Windows NT\Accessories\wordpad.exe
Type: REG_SZ
Value Data: c:\MyPDFoutputFileName.pdf

For Window 64-bit OS you have to use splwow64.exe as the program.
It is normally located in C:\Windows.

HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl
Value Name: C:\Windows\splwow64.exe
Type: REG_SZ
Value Data: c:\MyPDFoutputFileName.pdf

If it still does not work then the program name might be wrong. To see the program name, manually create a PDF from the program. Acrobat will store the program name in the registry under "LastPdfPortFolder -".

In my case it was:
HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl
Value Name: LastPdfPortFolder - splwow64.exe
Value Data: D:\0000

As you can see splwow64.exe was shown there, which made me google it and ultimately figured out that the Adobe Documentation was a little lacking.

I am using: Acrobat 9
Windows 7 Pro 64-bit
Printing to "Adobe PDF" printer.



来源:https://stackoverflow.com/questions/2075104/bypass-adobe-pdf-printer-savefileas-prompt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!