Printing pdf file directly from dos command line

一曲冷凌霜 提交于 2019-12-07 19:12:19

问题


I am trying to print a pdf file from dos, in windows xp.

C:\>print c:\dos.pdf /D:"\\jayaprada-pc\HP LaserJet 1018"

C:\dos.pdf is currently being printed

Its saying doc is being is printed. but no print is coming my printer.

Its showing the document in printer spooler window.

When giving print normally from adobe reader , print is coming fine.

What is wrong with my config.

Actually i want to print a pdf document from command line , so it wont pop up printer properties.

Suggest me any other alternative or third party tool that can be used print from command line in windows.


回答1:


Use this:

AcroRd32.exe /t <file.pdf> <printer_name> <printer_driver> <printer_port>

For example:

"C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /t "D:\File.pdf" "Brother MFC-7820N USB Printer" "Brother MFC-7820N USB Printer" "IP_192.168.10.110"

Note:
To find the printer information, right click your printer and choose properties.
In my case shown above, the printer name and driver.



来源:https://stackoverflow.com/questions/25137384/printing-pdf-file-directly-from-dos-command-line

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