printing problem with 1.68 X11/Motif version (UNIX solaris)

Questions, suggestions, and answers for XnView on all Un*x platforms (Linux, HP-UX, AIX, ...)

Moderators: XnTriq, xnview

Post Reply
cyril

printing problem with 1.68 X11/Motif version (UNIX solaris)

Post by cyril » Tue Mar 01, 2005 2:41 pm

Hi,

When i print a picture, i obtain a postscript file which seems not good!
When i open it with ghostview i have only an "all black picture" not my
original picture...

Here is the header of postscript file generated by xnView:

> more -15 /var/tmp/aaaFlai7t
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: (XnView)
%%Title: (/var/tmp/aaaFlai7t)
%%CreationDate: (Tue Mar 1 13:55:22 2005)
%%BoundingBox: 0 0 498 446
%%DocumentData: Clean7Bit
%%LanguageLevel: 1
%%Orientation: Portrait
%%PageOrder: Ascend
%%Pages: 1
%%EndComments

%%BeginDefaults
%%EndDefaults


Is this a real problem or not?

Because for me it's impossible to print something!
When i use the command: lp -d myPrinter
the bad(?) postscript file is generated and send to printer pool but never
printed as it is refused?!?

Thanks a lot for any help or information

Is print functionnality OK for others?

Pierre can you tell me what kind of postscript do you generate with xnView?

roman
Posts: 1
Joined: Thu May 12, 2005 9:05 pm

Same on HP-UX

Post by roman » Thu May 12, 2005 9:07 pm

I have the same Problem on HP-UX 11.00 and HP-UX 11.11.
Any help is apreciated.

Roman

User avatar
xnview
Author of XnView
Posts: 31145
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Same on HP-UX

Post by xnview » Fri May 13, 2005 6:00 am

roman wrote:I have the same Problem on HP-UX 11.00 and HP-UX 11.11.
Any help is apreciated.
The ps is generated in respect of their DPI information. Could you tell me the size of your picture in inch or cm? Or send me a sample?
Pierre.

Guest

Re: Same on HP-UX

Post by Guest » Mon May 16, 2005 3:53 pm

xnview wrote:
roman wrote:I have the same Problem on HP-UX 11.00 and HP-UX 11.11.
Any help is apreciated.
The ps is generated in respect of their DPI information. Could you tell me the size of your picture in inch or cm? Or send me a sample?
Tomorow i am back in office. I will send you some examples.

Regards
Roman

Guest

Re: Same on HP-UX

Post by Guest » Thu Dec 22, 2005 5:59 pm

xnview wrote:
roman wrote:I have the same Problem on HP-UX 11.00 and HP-UX 11.11.
Any help is apreciated.
The ps is generated in respect of their DPI information. Could you tell me the size of your picture in inch or cm? Or send me a sample?
The problem is still pending.
I can use any oicture/image i want. I can't print anything. The lights on the printer (Laserjet 5000 (postscript)) are flashing a few seconds, than: NOTHING. Nor error message no warning or anything.
If i save the image from xnview as a postscript-file i can't print it with "lp image.ps": Same behavior as before.
Ghostscript (v7) shows the files without problems.

Any hints?

User avatar
xnview
Author of XnView
Posts: 31145
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Same on HP-UX

Post by xnview » Fri Dec 23, 2005 7:38 am

Guest wrote:
xnview wrote:
roman wrote:I have the same Problem on HP-UX 11.00 and HP-UX 11.11.
Any help is apreciated.
The ps is generated in respect of their DPI information. Could you tell me the size of your picture in inch or cm? Or send me a sample?
The problem is still pending.
I can use any oicture/image i want. I can't print anything. The lights on the printer (Laserjet 5000 (postscript)) are flashing a few seconds, than: NOTHING. Nor error message no warning or anything.
If i save the image from xnview as a postscript-file i can't print it with "lp image.ps": Same behavior as before.
Ghostscript (v7) shows the files without problems.

Any hints?
Could you send me a ps file that works on your printer?
Pierre.

rtf
Posts: 2
Joined: Wed Dec 28, 2005 10:08 am

Post by rtf » Wed Dec 28, 2005 11:31 am

I have send an example-file to REMOVED.

Roman[/b]

rtf
Posts: 2
Joined: Wed Dec 28, 2005 10:08 am

Post by rtf » Tue Jan 03, 2006 11:53 am

:?
The problem is solved:
Under HP-UX 11.11 (11.0) there is no Postscript Level 3 driver for our printer (a HP 5100TN (PS) PS3 under Windo%s and other OS).
If i set up the printer under a linux-box (CUPS) with the apropriate driver (PS3) everything works like a charme.
F* HP.
Thanks for all help.

Roman

peter007

Post by peter007 » Mon Apr 10, 2006 8:56 am

Printing in HP-UX (and every other 'ux for that matter) is possible when you let ghostscript do the work:

Don't let 'lp' handle the printjob directly, but send the printjob to a script like this (that's the way I did it, there may be other possibilities) :

Code: Select all

#!/usr/bin/ksh
/usr/local/bin/gs -sDEVICE=laserjet -dEPSFitPage -dBATCH -dNOPAUSE -sOutputFile=${1}.prn ${1}
lp -oraw ${1}.prn
rm ${1}.prn

Post Reply