OT: print a pdf from command line
Jean-Pierre A. Radley
appl at jpr.com
Mon May 23 13:49:43 PDT 2005
Bob Rasmussen propounded (on Mon, May 23, 2005 at 09:49:37AM -0700):
| So the word is, you can simply tell Linux to print a PDF file, and it
| works. My question is, "How?"
|
| Presumably, an output filter or something similar would react to the file
| extension, send the job to Acrobat, and output the result. Is this done by
| CUPS? Somebody please fill me (and others) in.
React to the extension? In Linux? More likely the 'file' command is
invoked.
I have a file here in both postscript and PDF format.
My printer is an HP OfficeJet, which does NOT directly print PS. I can
use my 'gsoj' one-line shell script to print either out.ps or out.pdf.
#!/bin/sh
# @(#) gsoj
gs -q -sDEVICE=djet500 -dNOPAUSE -sOutputFile=- ${@:--} -c quit | lp -og -s
I also can do:
lp --cups out.ps
or
lp --cups out.pdf
Unless I fiddle with gs's output resolution (I believe it converts to
PCL), the resulting page isn't usable, since the barcode is not rendered
finely enough to be properly scanned. The CUPS printing, OTOH, is quite
good.
I'm attaching the out.pdf file; it was generated from within filePro to
print (on Avery labels, two-to-a-letter-size page) some filePro data in
a very large font, plus a barcode.
--
JP
-------------- next part --------------
A non-text attachment was scrubbed...
Name: out.pdf
Type: application/pdf
Size: 58519 bytes
Desc: not available
Url : http://lists.celestial.com/pipermail/filepro-list/attachments/20050523/cf16d695/out-0001.pdf
More information about the Filepro-list
mailing list