Solved

Commandline printing

Posted on 2007-11-23
5
532 Views
Last Modified: 2010-04-21
I want to create PDF documents using the "PDF Printer" as installed by AcrobatPro7 via the windows commandline.

Now an XP dos box allows you to use the print command but when you try:

print /D:"Adobe PDF" drive:\path\to\filename

Where "Adobe PDF" is the actual printer name (also by default).

This does not work as the print command does not understand which printer to use.

What command should I give to tell the print command to use the Adobe PDF printer?
0
Comment
Question by:paulqna
  • 3
  • 2
5 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 20340560
You could try

cscript c:\windows\system32\prnmngr.vbs -t "Adobe PDF"
print drive:\path\to\filename
0
 
LVL 5

Author Comment

by:paulqna
ID: 20341122
Executing that cscript command gives me the help text for the prnmngr.vbs, so I think there is a syntax problem with that command?
0
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 20341205
Ah, that should be

cscript c:\windows\system32\prnmngr.vbs -t -p "Adobe PDF"
print drive:\path\to\filename

It actually sets the standard printer.
0
 
LVL 5

Author Comment

by:paulqna
ID: 20341239
The first command works but then the print command fails with this message:

Unable to initialize device PRN
0
 
LVL 5

Author Closing Comment

by:paulqna
ID: 31410707
Problem never solved.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now