Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Actually I don't now a thing about printing on linux, but after setting up cups, I am able to print from all my KDEapps by using the nice kprinter dialog.
The problem is that I don't know what commands to use to print something. I'd just like to know how you print things like images, let's say from the gimp. Or pdf-files from acrobat or xpdf...
When I use the default settings, the only thing my printer (HP8320) puts on the paper is:
* With xpdf or Acrobat:
Error: /invalidfont in -dict-
Operand stack:
HFGCHE+Wingdings-Identity-H --di
* With gimp:
%!PS-Adobe-3.0
%%Creator: Print plug-in V4.2 for GIMP/Gimp-print 4.2.5 (24 Jan 20
I didn't change any setting since I really don't know anything about it, so maybe if some-one could tell me how to configure a HP3820.
Setting up printer drivers manually is way over my head these days. One thing that sold me on KDE was that everything in this area seemed to work.
For PDF I can just print from Acrobat Reader. The print dialog has 'kprinter' as the default print command and works fine.
I haven't tried to print from GIMP, but OpenOffice works OK. The printers I installed from KDE show up in both the OO and GIMP print dialogs.
If this does not work for you I am pretty sure your printing software is not set up correctly. But like I say, I just rely on the distro packagers to get that right.
In the fairly recent pre-CUPS past many apps generated postscript code (as GIMP is doing in your case) and the printing software would filter it through ghostscript, which has built in drivers for many types of printer.
From what I can guess from the config files in /etc/cups, CUPS is using something similar to interface to my simple HP inkjet.
No they do do show up, it just doesn't print. It does print from KDE apps, OO works as well...
Pleazzz can anyone help me, I am really getting it on my nerves from always having to switch apps just to print something or first converting to ps and then printing.
Another thing, I noticed when clicking on 'setup printer...' in the Gimp printing dialog, my HP3820 printer is set up as a Postscript Level 2 printer. There are a lot of specific HP printer types in the list, but not the 'HP Deskjet 3820'.
Maybe I have to set it up by using drivers for older types? Does anybody have an idea?
Now GIMP seems to work... I downloaded the ppd-file for hpijs 1.3, but that didn't work at all. I noticed somewhere on a site that HP3820 is compatible with the HP Deskjet 900 drivers and that is correct. The only problem is the printing quality, but I can live with that...
I installed hpijs-1.4, this didn't solve anything, not even by using the ppd-file that came with the package itself.
Still what could be the cause of the error I get when trying to print pdf? It seems like I have a font missing... What fonts should I always have and where do I get them. If I remember well wingdings is a windoze font, but I don't have windoze.
I tried to print from GIMP with the same result as you.
But now I have it working. Here is what I did. In the GIMP print dialog leave the printer type as Postscript Level 2 but in the GIMP printer setup sub-dialog set the 'command' to
lpr -PHP640C
(Change HP640C to whatever printer name you have set up in KDE to print your images).
I'm guessing that GIMP then assumes it is writing to a Postscript printer, but CUPS sees the postscript coming and filters it appropriately.
I don't know if this produces the best possible results, especially if you have one of the printers listed by the GIMP print dialog. But it's better than nothing
EDIT: I see our messages just crossed.
Last edited by maroonbaboon; 02-03-2004 at 05:08 AM.
Originally posted by maroonbaboon ...EDIT: I see our messages just crossed.
Indeed I'll try it as soon as possible, thanks for your reaction... I was worrying nobody would respond to my posts, it would be the first time here on LQ .
GIMP also works for me if I just put set 'kprinter' as the command in the GIMP printer setup. Then I get the KDE printer dialog and can choose the printer there.
Is your faulty PDF produced by MS-Word by any chance? I did a bit of searching and there was a rumour Microsoft might have done a bit of 'embracing and extending' of the PDF standard
Printing from gv (ghostview) is another thing to try.
I don't now, but it could be a converted Powerpoint Slideshow...
kprinter does exactly the same as the lp or lpr command, one strange thing though...
when I give as command gv, I get an empty document. I always tought everything was converted to postscript before being printed, so what I expected was to see a ps-file.
Maybe this leads somewhere, I really don't know anything about the subject, so I don't have a clue where I have to start searching for answers...
[Edit:]I just tried printing this page from galeon, with all the commands we've tried so far, no result. I also noticed I've said OO works, unfortunatly I was wrong, I haven't tested it yet. I mixed it up with a setup of an other pc.
It seems as if the problem is in reaching the printing queue, not in really in printing the thing. In gimp the reason for the strange error message was the -arow flag.
AFAIK that is all these apps are doing anyway. Otherwise I am pretty much out of suggestions.
I guess you can print a test page from KDE control center OK? With ghostview I was thinking maybe you could try printing pdf from the gv application but if nothing else works there is no reason to suppose that would.
Also, check the log files in /var/log/cups for error messages.
Last edited by maroonbaboon; 02-04-2004 at 12:20 AM.
This works, that's the strange part... This is how I print for now from non-kdeapps, by first converting it to ps and then 'kprinter <fn>'.
It seems like some apps don't send the ps through, the kprinter dialog appears, but when I print, nothing happens.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.