[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSPrinter problem (PPD)
From: |
Andreas Höschler |
Subject: |
Re: NSPrinter problem (PPD) |
Date: |
Fri, 2 Jun 2006 19:10:21 +0200 |
Hello all,
I just configured my printer with
defaults write NSGlobalDomain GSLPRPrinters '{
lp={PPDPath="/usr/local/ppds/xr_8400DP.ppd"; Host=localhost;
Note="Xerox Phaser 8400DP"; Type="Xerox Phaser 8400DP"};}'
When I know open TextEdit.app I get a "Badly formatted hexadecimal
substring in PPD printer file" exception and TextEdit.app dies. I have
checked NSPrinter.m, it happens in
-(NSString*) interpretQuotedValue: (NSString*) qString
but I have no idea what could be wrong here. I don't really understand
what exactly this method is supposed to do. Any idea? I attached the
PPD file if anybody cares.
I would like to use this opportunity how exactly printing is supposed
to work under GNUstep. I have a print queue xerox that can be used rom
the command line with
lp -d xerox filname
The Xerox printer is a network printer reachable at 192.168.1.253. What
would be the correct setting for such a beast? I guess HOST shoul
dpoint to the IPAdresse of the print queue, right
defaults write NSGlobalDomain GSLPRPrinters '{
lp={PPDPath="/usr/local/ppds/xr_8400DP.ppd"; Host="192.168.1.253";
Note="Xerox Phaser 8400DP"; Type="Xerox Phaser 8400DP"};}'
Who is doing the PDF to PostScript conversion here if this shoul dbe
necessary? I have installed Vindaloo as a PDF viewer and just relaized
that this app cannot print!? What are you guys using for viewing and
printing PDFs?
Since my PPD did not work (probably a bug in NSPrinter) I tried the
default PPD for now.
defaults write NSGlobalDomain GSLPRPrinters '{
Xerox={PPDPath="/usr/src/core/gui/PrinterTypes/English.lproj/Generic-
PostScript_Printer-Postscript.ppd"; Host=192.168.1.253; Note="Xerox
Phaser 8400DP"; Type="Xerox Phaser 8400DP"};}'
Printing still does not work. I get:
2006-06-02 19:06:23.144 TextEdit[11826] Printing to
/tmp/GNUstepSecure100/GSLPRPrintJob-loghost_2e32_a30a786_0.ps
UX:lp: ERROR: There is no filter to convert the file content.
TO FIX: Use the lpstat -p -l command to find a
printer that can handle the file type
directly, check your filters using lpfilter -f all -l, or
consult with your system
administrator.
bash-3.00# lpstat -p -l
printer xerox is idle. enabled since Wed Mar 22 11:42:53 2006.
available.
Form mounted:
Content types: postscript
Printer types: PS
Description:
Connection: direct
Interface: /usr/lib/lp/model/netstandard_foomatic
PPD: /usr/local/ppds/xr_8400DP.ppd
On fault: write to root once
After fault: continue
Users allowed:
(all)
Forms allowed:
(none)
Banner page never printed
Character sets:
Default pitch:
Default page size: 80 wide 66 long
Default port settings:
Options: media=A4, protocol=bsd, dest=xerox,
sides=two-sided-long-edge
printer tta_pdfprinter is idle. enabled since Fri Jun 02 13:46:05 2006.
available.
Form mounted:
Content types: any
Printer types: unknown
Description:
Connection: direct
Interface: /opt/tarantella/bin/scripts/lp_interface.en
PPD: none
On fault: write to root once
After fault: continue
Users allowed:
(all)
Forms allowed:
(none)
Banner not required
Character sets:
(none)
Default pitch:
Default page size:
Default port settings:
printer tta_printer is idle. enabled since Fri Jun 02 13:46:05 2006.
available.
Form mounted:
Content types: any
Printer types: unknown
Description:
Connection: direct
Interface: /opt/tarantella/bin/scripts/lp_interface.en
PPD: none
On fault: write to root once
After fault: continue
Users allowed:
(all)
Forms allowed:
(none)
Banner not required
Character sets:
(none)
Default pitch:
Default page size:
Default port settings:
Any ideas?
Thanks,
Andreas