[26334] in resnet

home help back first fref pref prev next nref lref last post

Re: command line print processing

daemon@ATHENA.MIT.EDU (Jeremy Mlazovsky)
Mon May 9 16:33:15 2011

MIME-Version: 1.0
Content-Type: multipart/alternative; boundary=20cf303bff68b170a004a2dd9a1a
Message-ID:  <BANLkTi=nfOpgrGFa8yNkMMkfMHoMLigd4w@mail.gmail.com>
Date:         Mon, 9 May 2011 16:22:53 -0400
Reply-To: Resnet Forum <RESNET-L@listserv.nd.edu>
From: Jeremy Mlazovsky <Jeremy.Mlazovsky@notes.udayton.edu>
To: RESNET-L@listserv.nd.edu
In-Reply-To:  <4DC84BC5.7000809@wheatoncollege.edu>

--20cf303bff68b170a004a2dd9a1a
Content-Type: text/plain; charset=ISO-8859-1

If Adobe Reader is installed, you can use the commandline or a batch file to
tell Adobe Reader to print the PDF file.

http://stackoverflow.com/questions/619158/adobe-reader-command-line-reference

<http://stackoverflow.com/questions/619158/adobe-reader-command-line-reference>

To open a file it's:

AcroRd32.exe <filename>

The following switches are available:

   - /n - Launch a new instance of Reader ever if one is already open
   - /s - Don't show the splash screen
   - /o - Don't show the open file dialog
   - /h - Open as a minimized window
   - /p <filename> - Open and go straight to the print dialog
   - /t <filename> <printername> <drivername> <portname> - Print the file
   the specified printer.


Jeremy Mlazovsky '02
Director of Information Technology
College of Arts and Sciences
University of Dayton
300 College Park
Dayton, Ohio 45469-2201
937-229-2166

Leadership UD 2009

Please contact CAS Help (937-229-2166, cashelp@notes.udayton.edu) for
service requests.



On Mon, May 9, 2011 at 4:17 PM, Brian Gibson <
gibson_brian@wheatoncollege.edu> wrote:

> Hi all,
>
> We want to create a web form where someone can upload a PDF and it will be
> printed to a print queue hosted off of a Windows 2008 print server. I did a
> proof of concept on the back end (assuming the PDF has already been
> uploaded), I used the Windows LPR command line tool but when I sent the PDF
> to the printer it printed out a ton of garbage pages.  I guess I am missing
> the piece the print driver usually takes care of, converting the document to
> a printer-friendly language. Does anyone know of a way from the command line
> to process a document so it can be sent to the print queue and be
> interpreted correctly?
>
> Thanks
>
> ___________________________________________________
> You are subscribed to the ResNet-L mailing list.
>
> To subscribe, unsubscribe or search the archives,
> go to http://LISTSERV.ND.EDU/archives/resnet-l.html
> ___________________________________________________
>

___________________________________________________
You are subscribed to the ResNet-L mailing list.

To subscribe, unsubscribe or search the archives,
go to http://LISTSERV.ND.EDU/archives/resnet-l.html
___________________________________________________

--20cf303bff68b170a004a2dd9a1a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

If Adobe Reader is installed, you can use the commandline or a batch file t=
o tell Adobe Reader to print the PDF file.<div><br></div><div><a href=3D"ht=
tp://stackoverflow.com/questions/619158/adobe-reader-command-line-reference=
">http://stackoverflow.com/questions/619158/adobe-reader-command-line-refer=
ence</a></div>
<div><br></div><div><a href=3D"http://stackoverflow.com/questions/619158/ad=
obe-reader-command-line-reference"></a><span class=3D"Apple-style-span" sty=
le=3D"border-collapse: collapse; font-family: Arial, &#39;Liberation Sans&#=
39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px;=
 "><p style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; marg=
in-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; pa=
dding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bot=
tom-width: 0px; border-left-width: 0px; border-style: initial; border-color=
: initial; font-size: 14px; vertical-align: baseline; background-image: ini=
tial; background-attachment: initial; background-origin: initial; backgroun=
d-clip: initial; background-color: transparent; clear: both; word-wrap: bre=
ak-word; background-position: initial initial; background-repeat: initial i=
nitial; ">
To open a file it&#39;s:</p><pre style=3D"margin-top: 0px; margin-right: 0p=
x; margin-bottom: 10px; margin-left: 0px; padding-top: 5px; padding-right: =
5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 0px; border-=
right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-=
style: initial; border-color: initial; font-size: 14px; vertical-align: bas=
eline; background-image: initial; background-attachment: initial; backgroun=
d-origin: initial; background-clip: initial; background-color: rgb(238, 238=
, 238); font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#3=
9;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera San=
s Mono&#39;, &#39;Courier New&#39;, monospace, serif; overflow-x: auto; ove=
rflow-y: auto; width: auto; max-height: 600px; background-position: initial=
 initial; background-repeat: initial initial; ">
<code style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; marg=
in-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; pa=
dding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bot=
tom-width: 0px; border-left-width: 0px; border-style: initial; border-color=
: initial; font-size: 14px; vertical-align: baseline; background-image: ini=
tial; background-attachment: initial; background-origin: initial; backgroun=
d-clip: initial; background-color: rgb(238, 238, 238); font-family: Consola=
s, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39=
;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier Ne=
w&#39;, monospace, serif; background-position: initial initial; background-=
repeat: initial initial; ">AcroRd32.exe &lt;filename&gt;
</code></pre><p style=3D"margin-top: 0px; margin-right: 0px; margin-bottom:=
 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-botto=
m: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; =
border-bottom-width: 0px; border-left-width: 0px; border-style: initial; bo=
rder-color: initial; font-size: 14px; vertical-align: baseline; background-=
image: initial; background-attachment: initial; background-origin: initial;=
 background-clip: initial; background-color: transparent; clear: both; word=
-wrap: break-word; background-position: initial initial; background-repeat:=
 initial initial; ">
The following switches are available:</p><ul style=3D"margin-top: 0px; marg=
in-right: 0px; margin-bottom: 1em; margin-left: 30px; padding-top: 0px; pad=
ding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: =
0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: =
0px; border-style: initial; border-color: initial; font-size: 14px; vertica=
l-align: baseline; background-image: initial; background-attachment: initia=
l; background-origin: initial; background-clip: initial; background-color: =
transparent; list-style-type: disc; list-style-position: initial; list-styl=
e-image: initial; background-position: initial initial; background-repeat: =
initial initial; ">
<li style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin=
-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padd=
ing-left: 0px; border-top-width: 0px; border-right-width: 0px; border-botto=
m-width: 0px; border-left-width: 0px; border-style: initial; border-color: =
initial; font-size: 14px; vertical-align: baseline; background-image: initi=
al; background-attachment: initial; background-origin: initial; background-=
clip: initial; background-color: transparent; background-position: initial =
initial; background-repeat: initial initial; ">
<code style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; marg=
in-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; pa=
dding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bot=
tom-width: 0px; border-left-width: 0px; border-style: initial; border-color=
: initial; font-size: 14px; vertical-align: baseline; background-image: ini=
tial; background-attachment: initial; background-origin: initial; backgroun=
d-clip: initial; background-color: rgb(238, 238, 238); font-family: Consola=
s, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39=
;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier Ne=
w&#39;, monospace, serif; background-position: initial initial; background-=
repeat: initial initial; ">/n</code>=A0- Launch a new instance of Reader ev=
er if one is already open</li>
<li style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin=
-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padd=
ing-left: 0px; border-top-width: 0px; border-right-width: 0px; border-botto=
m-width: 0px; border-left-width: 0px; border-style: initial; border-color: =
initial; font-size: 14px; vertical-align: baseline; background-image: initi=
al; background-attachment: initial; background-origin: initial; background-=
clip: initial; background-color: transparent; background-position: initial =
initial; background-repeat: initial initial; ">
<code style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; marg=
in-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; pa=
dding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bot=
tom-width: 0px; border-left-width: 0px; border-style: initial; border-color=
: initial; font-size: 14px; vertical-align: baseline; background-image: ini=
tial; background-attachment: initial; background-origin: initial; backgroun=
d-clip: initial; background-color: rgb(238, 238, 238); font-family: Consola=
s, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39=
;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier Ne=
w&#39;, monospace, serif; background-position: initial initial; background-=
repeat: initial initial; ">/s</code>=A0- Don&#39;t show the splash screen</=
li>
<li style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin=
-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padd=
ing-left: 0px; border-top-width: 0px; border-right-width: 0px; border-botto=
m-width: 0px; border-left-width: 0px; border-style: initial; border-color: =
initial; font-size: 14px; vertical-align: baseline; background-image: initi=
al; background-attachment: initial; background-origin: initial; background-=
clip: initial; background-color: transparent; background-position: initial =
initial; background-repeat: initial initial; ">
<code style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; marg=
in-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; pa=
dding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bot=
tom-width: 0px; border-left-width: 0px; border-style: initial; border-color=
: initial; font-size: 14px; vertical-align: baseline; background-image: ini=
tial; background-attachment: initial; background-origin: initial; backgroun=
d-clip: initial; background-color: rgb(238, 238, 238); font-family: Consola=
s, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39=
;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier Ne=
w&#39;, monospace, serif; background-position: initial initial; background-=
repeat: initial initial; ">/o</code>=A0- Don&#39;t show the open file dialo=
g</li>
<li style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin=
-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padd=
ing-left: 0px; border-top-width: 0px; border-right-width: 0px; border-botto=
m-width: 0px; border-left-width: 0px; border-style: initial; border-color: =
initial; font-size: 14px; vertical-align: baseline; background-image: initi=
al; background-attachment: initial; background-origin: initial; background-=
clip: initial; background-color: transparent; background-position: initial =
initial; background-repeat: initial initial; ">
<code style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; marg=
in-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; pa=
dding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bot=
tom-width: 0px; border-left-width: 0px; border-style: initial; border-color=
: initial; font-size: 14px; vertical-align: baseline; background-image: ini=
tial; background-attachment: initial; background-origin: initial; backgroun=
d-clip: initial; background-color: rgb(238, 238, 238); font-family: Consola=
s, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39=
;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier Ne=
w&#39;, monospace, serif; background-position: initial initial; background-=
repeat: initial initial; ">/h</code>=A0- Open as a minimized window</li>
<li style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin=
-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padd=
ing-left: 0px; border-top-width: 0px; border-right-width: 0px; border-botto=
m-width: 0px; border-left-width: 0px; border-style: initial; border-color: =
initial; font-size: 14px; vertical-align: baseline; background-image: initi=
al; background-attachment: initial; background-origin: initial; background-=
clip: initial; background-color: transparent; background-position: initial =
initial; background-repeat: initial initial; ">
/<code style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; mar=
gin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; p=
adding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bo=
ttom-width: 0px; border-left-width: 0px; border-style: initial; border-colo=
r: initial; font-size: 14px; vertical-align: baseline; background-image: in=
itial; background-attachment: initial; background-origin: initial; backgrou=
nd-clip: initial; background-color: rgb(238, 238, 238); font-family: Consol=
as, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#3=
9;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier N=
ew&#39;, monospace, serif; background-position: initial initial; background=
-repeat: initial initial; ">p &lt;filename&gt;</code>=A0- Open and go strai=
ght to the print dialog</li>
<li style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin=
-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padd=
ing-left: 0px; border-top-width: 0px; border-right-width: 0px; border-botto=
m-width: 0px; border-left-width: 0px; border-style: initial; border-color: =
initial; font-size: 14px; vertical-align: baseline; background-image: initi=
al; background-attachment: initial; background-origin: initial; background-=
clip: initial; background-color: transparent; background-position: initial =
initial; background-repeat: initial initial; ">
/<code style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; mar=
gin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; p=
adding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bo=
ttom-width: 0px; border-left-width: 0px; border-style: initial; border-colo=
r: initial; font-size: 14px; vertical-align: baseline; background-image: in=
itial; background-attachment: initial; background-origin: initial; backgrou=
nd-clip: initial; background-color: rgb(238, 238, 238); font-family: Consol=
as, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#3=
9;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier N=
ew&#39;, monospace, serif; background-position: initial initial; background=
-repeat: initial initial; ">t &lt;filename&gt; &lt;printername&gt; &lt;driv=
ername&gt; &lt;portname&gt;</code>=A0- Print the file the specified printer=
.</li>
</ul></span><div><br></div>Jeremy Mlazovsky &#39;02<br>Director of Informat=
ion Technology<br>College of Arts and Sciences<br>University of Dayton<br>3=
00 College Park<br>Dayton, Ohio 45469-2201<br>937-229-2166<br><br>Leadershi=
p UD 2009<br>
<br>Please contact CAS Help (937-229-2166, <a href=3D"mailto:cashelp@notes.=
udayton.edu" target=3D"_blank">cashelp@notes.udayton.edu</a>) for service r=
equests.<br><br>
<br><br><div class=3D"gmail_quote">On Mon, May 9, 2011 at 4:17 PM, Brian Gi=
bson <span dir=3D"ltr">&lt;<a href=3D"mailto:gibson_brian@wheatoncollege.ed=
u">gibson_brian@wheatoncollege.edu</a>&gt;</span> wrote:<br><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex;">
Hi all,<br>
<br>
We want to create a web form where someone can upload a PDF and it will be =
printed to a print queue hosted off of a Windows 2008 print server. I did a=
 proof of concept on the back end (assuming the PDF has already been upload=
ed), I used the Windows LPR command line tool but when I sent the PDF to th=
e printer it printed out a ton of garbage pages. =A0I guess I am missing th=
e piece the print driver usually takes care of, converting the document to =
a printer-friendly language. Does anyone know of a way from the command lin=
e to process a document so it can be sent to the print queue and be interpr=
eted correctly?<br>

<br>
Thanks<br>
<br>
___________________________________________________<br>
You are subscribed to the ResNet-L mailing list.<br>
<br>
To subscribe, unsubscribe or search the archives,<br>
go to <a href=3D"http://LISTSERV.ND.EDU/archives/resnet-l.html" target=3D"_=
blank">http://LISTSERV.ND.EDU/archives/resnet-l.html</a><br>
___________________________________________________<br>
</blockquote></div><br></div>
___________________________________________________
You are subscribed to the ResNet-L mailing list.
<p>
To subscribe, unsubscribe or search the archives,
go to http://LISTSERV.ND.EDU/archives/resnet-l.html
___________________________________________________

--20cf303bff68b170a004a2dd9a1a--

home help back first fref pref prev next nref lref last post