is there a command like:
printpdf sample.pdf -Prlmip0 , where rlmip0 is a printer defined in /etc/printcap ?
post answer here
Thanks
VUK
What printing package are you using? CUPS has built in PDF
processing support so that lp -d yourprinter sample.pdf or lpr
-P yourprinter sample.pdf will work. LPRng has file recognition
support so that you have to hack the filter config file to point
it to a program that will convert your pdf to a printer-friendly
file.
> I am using ted. I have an RTF file which I can convert to
> postsript. However the printer I have does not understand postscript,
> so I am using rtf2pdf which converts RTF to PDF using ted. And I want
> this PDF to print to the printer using commandline program.
Have you tried:
lpr filename.pdf
The filters generally do a good job of determining the filetype and then
automagically using the right filters.
Eg.: pdf2ps sample.pdf - | lpr
You could make this a shell function:
lprpdf () {
pdf2ps $1 - | lpr
}
in your ~/.bashrc, so then you'd type:
lprpdf sample.pdf
--
Dave Brown Austin, TX
You're going the wrong way. If you've configured your printer properly,
you should be able to print a Postscript file from the editor or from
the command line using just lpr. Don't waste your time with pdf unless
you want to distribute the document to other people. What distro are you
using and how did you configure your printer?
Acrobat reader will generate postscript when you tell it to
print. In order for your printer to be useful under Linux,
you're going to have to get it set up so you can print
Postscript.
--
Grant Edwards grante Yow! Clear the
at laundromat!! This
visi.com whirl-o-matic just had a
nuclear meltdown!!
Then that's the first problem you need to solve: you need to be
able to print postscript.
--
Grant Edwards grante Yow! Hmmm... a CRIPPLED
at ACCOUNTANT with a FALAFEL
visi.com sandwich is HIT by a
TROLLEY-CAR...
> on the server I tested running suse 8.1
> I called HP technical service and I was told that HP Laserjet 1100
> (the printer in question) does NOT support postscript ...
That doesn't matter. My Epson inkjet doesn't directly print
PostScript either, and I still print .ps files. You can install
GhostScript and Magicfilter, and the system will then automatically
convert PostScript to PCL (the language the LaserJet does
understand). Install those two packages and run "magicfilterconfig"
and you should be fine.
--
Carl Fink ca...@dm.net
Manager, Dueling Modems Computer Forum
<http://dm.net>
Interestingly, I can print PDF files, but not PostScript! I'm using
CUPS to print to a Samsung ML1210 on a Win98 box.
I haven't bothered hunting for the problem; I just convert to pdf.
--
Chris F.A. Johnson http://cfaj.freeshell.org
===================================================================
My code (if any) in this post is copyright 2002, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
There are a lot of printers around that "do not support postscript"
that are happily printing postscript files with the appropriate
intervening software. That intervening software, called Ghostscript,
translates a postscript document into a bitmap for ordinary printers.
Surely SuSE has a printer setup tool that has a HP laserjet 1100
listed on it. If not, try setting it up for "lj4", i.e., as if it
was a laserjet 4.
VUK> printpdf sample.pdf -Prlmip0 , where rlmip0 is a printer
VUK> defined in /etc/printcap ? post answer here Thanks VUK
case I: You're using a Postscript printer. Then, your problem is
reduced to the problem of converting PDF to PS. There are a few
possibilities. I'm not sure if those "user-too-friendly" programs
like Adobe's PDF reader would like to work without X. But there is
'pdftops' (which comes with 'xpdf') and 'pdf2ps' (which comes with
ghostscript). Note all PDF files are nice enough to work with these,
but most do.
case II: You're not using a Postscript printer. Since you're using
unix, you should have already set up the system so that you can print
Postscript (typically using ghostscript as a print filter). So, you
this reduces to case I ;). However, if you're already using
ghostscript, then the good news is that ghostscript also understands
PDF (to a certain extent). You could try to give it your PDF file
directly (without first converting to PS) as input and see if it
generates the printout correctly.
--
Lee Sau Dan 李守敦(Big5) ~{@nJX6X~}(HZ)
E-mail: dan...@informatik.uni-freiburg.de
Home page: http://www.informatik.uni-freiburg.de/~danlee