.eps file displays with gv but will not print

View: New views
9 Messages — Rating Filter:   Alert me  

.eps file displays with gv but will not print

by Bobatapl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am having an aggravating plotting problem with octave-3.0.0-1.3
(gnuplot-4.2.0-72.1) on SuSE 10.2.

print ('plot1.eps', '-depsc2');

generates "plot1.eps" just fine. I can display it with 'gv'. However it
will not print from gv. It will not print directly from octave using

print ('-Pprinter', '-depsc2');

Nor will it print from the command line with 'lpr -Pprinter plot1.eps'.

However if I convert it to pdf with ps2pdf or even use

eps2eps plot1.eps plot2.eps

plot2.eps (or the pdf) files print just fine. I must have some bonehead
error in a config file somewhere, but have been unable to find it. I
certainly have made sure that the gv and gs default paper size is US letter.
I thought maybe it was a PostScript language level problem, but that
doesn't seem to be it either. Although I can find no way to specify the
level withing octave.

I can of course just give up and run every plot through eps2eps, but
that shouldn't be necessary, should it?
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: .eps file displays with gv but will not print

by Thomas Weber-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 13/05/08 13:08 -0700, Bob Odom wrote:
> generates "plot1.eps" just fine. I can display it with 'gv'. However it
> will not print from gv. It will not print directly from octave using
>
> print ('-Pprinter', '-depsc2');
>
> Nor will it print from the command line with 'lpr -Pprinter plot1.eps'.

What print system are you using (probably CUPS). What's in its log
files (try setting the loglevel to DEBUG or how it's called there)? Is
anything sent to the printer?

        Thomas
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: .eps file displays with gv but will not print

by Bobatapl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thomas,

Yes, I am using CUPS. Here are a few lines from the log file:

I [13/May/2008:11:45:45 -0700] Adding start banner page "none" to job
814.
I [13/May/2008:11:45:45 -0700] Adding end banner page "none" to job 814. I [13/May/2008:11:45:45 -0700] Job 814 queued on "super" by "odom".
I [13/May/2008:11:45:45 -0700] Started filter
/usr/lib64/cups/filter/pstops (PID 21414) for job 814.
I [13/May/2008:11:45:45 -0700] Started backend
/usr/lib64/cups/backend/lpd (PID 21415) for job 814.
E [13/May/2008:11:45:45 -0700] [Job 814] No %%Pages: comment in header!

The job seems to be sent to the printer, as the printer screen echoes
"odom file_eps" and then after a while "Done: odom file_eps"

I have exactly the same problem on a different computer also running
SuSE 10.2 and same installations of octave and gnuplot. I am also using
CUPS on that machine.

Bob
On Tue, 13 May 2008, Thomas Weber wrote:

> On 13/05/08 13:08 -0700, Bob Odom wrote:
>> generates "plot1.eps" just fine. I can display it with 'gv'. However it
>> will not print from gv. It will not print directly from octave using
>>
>> print ('-Pprinter', '-depsc2');
>>
>> Nor will it print from the command line with 'lpr -Pprinter plot1.eps'.
>
> What print system are you using (probably CUPS). What's in its log
> files (try setting the loglevel to DEBUG or how it's called there)? Is
> anything sent to the printer?
>
> Thomas
>
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: .eps file displays with gv but will not print

by Bobatapl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thomas,

I think I found the problem, and it must be in either octave or gnuplot.

There is a line in the CUPS error log for a non-printing file:

E [13/May/2008:15:03:13 -0700] [Job 818] No %%Pages: comment in header!

I looked at a file with no problems, and saw that directly below
%%EndProlog  is the line
%%Page: 1 1

I manually edited the non-printing file and added the line "%%Page: 1 1"
directly below the "%%EndProlog" statement. That file now prints.

So the problem is in the generation of the PostScript. This seems to be
a genuine bug, but is it an octave problem or a gnuplot problem?

Bob





On Tue, 13 May 2008, Bob Odom wrote:

> Thomas,
>
> Yes, I am using CUPS. Here are a few lines from the log file:
>
> I [13/May/2008:11:45:45 -0700] Adding start banner page "none" to job
> 814.
> I [13/May/2008:11:45:45 -0700] Adding end banner page "none" to job 814. I [13/May/2008:11:45:45 -0700] Job 814 queued on "super" by "odom".
> I [13/May/2008:11:45:45 -0700] Started filter
> /usr/lib64/cups/filter/pstops (PID 21414) for job 814.
> I [13/May/2008:11:45:45 -0700] Started backend
> /usr/lib64/cups/backend/lpd (PID 21415) for job 814.
> E [13/May/2008:11:45:45 -0700] [Job 814] No %%Pages: comment in header!
>
> The job seems to be sent to the printer, as the printer screen echoes
> "odom file_eps" and then after a while "Done: odom file_eps"
>
> I have exactly the same problem on a different computer also running
> SuSE 10.2 and same installations of octave and gnuplot. I am also using
> CUPS on that machine.
>
> Bob
> On Tue, 13 May 2008, Thomas Weber wrote:
>
>> On 13/05/08 13:08 -0700, Bob Odom wrote:
>>> generates "plot1.eps" just fine. I can display it with 'gv'. However it
>>> will not print from gv. It will not print directly from octave using
>>>
>>> print ('-Pprinter', '-depsc2');
>>>
>>> Nor will it print from the command line with 'lpr -Pprinter plot1.eps'.
>>
>> What print system are you using (probably CUPS). What's in its log
>> files (try setting the loglevel to DEBUG or how it's called there)? Is
>> anything sent to the printer?
>>
>> Thomas
>>
> _______________________________________________
> Help-octave mailing list
> Help-octave@...
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: .eps file displays with gv but will not print

by John W. Eaton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 13-May-2008, Bob Odom wrote:

| I think I found the problem, and it must be in either octave or gnuplot.
|
| There is a line in the CUPS error log for a non-printing file:
|
| E [13/May/2008:15:03:13 -0700] [Job 818] No %%Pages: comment in header!
|
| I looked at a file with no problems, and saw that directly below
| %%EndProlog  is the line
| %%Page: 1 1
|
| I manually edited the non-printing file and added the line "%%Page: 1 1"
| directly below the "%%EndProlog" statement. That file now prints.
|
| So the problem is in the generation of the PostScript. This seems to be
| a genuine bug, but is it an octave problem or a gnuplot problem?

It must be in gnuplot because gnuplot generates the PostScript, not
Octave.

jwe
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: .eps file displays with gv but will not print

by Bobatapl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, I did track it to gnuplot. I guess it's a "feature" not a bug. The
-dps devices don't have that problem, only the -deps devices. I had
never run into a .eps file that wouldn't just print. Even eps2eps
produces a printable file with a %%Page line in. So I guess it's a
"quirk" if not a bug. Thanks to all for the thoughtful posts!

Bob


On Wed, 14 May 2008, John W. Eaton wrote:

> On 13-May-2008, Bob Odom wrote:
>
> | I think I found the problem, and it must be in either octave or gnuplot.
> |
> | There is a line in the CUPS error log for a non-printing file:
> |
> | E [13/May/2008:15:03:13 -0700] [Job 818] No %%Pages: comment in header!
> |
> | I looked at a file with no problems, and saw that directly below
> | %%EndProlog  is the line
> | %%Page: 1 1
> |
> | I manually edited the non-printing file and added the line "%%Page: 1 1"
> | directly below the "%%EndProlog" statement. That file now prints.
> |
> | So the problem is in the generation of the PostScript. This seems to be
> | a genuine bug, but is it an octave problem or a gnuplot problem?
>
> It must be in gnuplot because gnuplot generates the PostScript, not
> Octave.
>
> jwe
>
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: .eps file displays with gv but will not print

by stefan pofahl-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Bob

you wrote:
> I think I found the problem, and it must be in either octave or gnuplot.
> There is a line in the CUPS error log for a non-printing file:
> E [13/May/2008:15:03:13 -0700] [Job 818] No %%Pages: comment in header!
As I understand it, it is not bug, but a feature.
That is the difference between *.eps and *.ps,
*.ps documents have pages, but *.eps should not have
pages, as I understand it, *.eps are for usage in documents,
they are not supposed to be stand alone printable documents.

Regards,

Stefan

***


2008/5/14 Bob Odom <odom@...>:
Thomas,

I think I found the problem, and it must be in either octave or gnuplot.

There is a line in the CUPS error log for a non-printing file:

E [13/May/2008:15:03:13 -0700] [Job 818] No %%Pages: comment in header!

I looked at a file with no problems, and saw that directly below
%%EndProlog  is the line
%%Page: 1 1

I manually edited the non-printing file and added the line "%%Page: 1 1"
directly below the "%%EndProlog" statement. That file now prints.

So the problem is in the generation of the PostScript. This seems to be
a genuine bug, but is it an octave problem or a gnuplot problem?

Bob





On Tue, 13 May 2008, Bob Odom wrote:

> Thomas,
>
> Yes, I am using CUPS. Here are a few lines from the log file:
>
> I [13/May/2008:11:45:45 -0700] Adding start banner page "none" to job
> 814.
> I [13/May/2008:11:45:45 -0700] Adding end banner page "none" to job 814. I [13/May/2008:11:45:45 -0700] Job 814 queued on "super" by "odom".
> I [13/May/2008:11:45:45 -0700] Started filter
> /usr/lib64/cups/filter/pstops (PID 21414) for job 814.
> I [13/May/2008:11:45:45 -0700] Started backend
> /usr/lib64/cups/backend/lpd (PID 21415) for job 814.
> E [13/May/2008:11:45:45 -0700] [Job 814] No %%Pages: comment in header!
>
> The job seems to be sent to the printer, as the printer screen echoes
> "odom file_eps" and then after a while "Done: odom file_eps"
>
> I have exactly the same problem on a different computer also running
> SuSE 10.2 and same installations of octave and gnuplot. I am also using
> CUPS on that machine.
>
> Bob
> On Tue, 13 May 2008, Thomas Weber wrote:
>
>> On 13/05/08 13:08 -0700, Bob Odom wrote:
>>> generates "plot1.eps" just fine. I can display it with 'gv'. However it
>>> will not print from gv. It will not print directly from octave using
>>>
>>> print ('-Pprinter', '-depsc2');
>>>
>>> Nor will it print from the command line with 'lpr -Pprinter plot1.eps'.
>>
>> What print system are you using (probably CUPS). What's in its log
>> files (try setting the loglevel to DEBUG or how it's called there)? Is
>> anything sent to the printer?
>>
>>      Thomas
>>
> _______________________________________________
> Help-octave mailing list
> Help-octave@...
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave



--
Tel.: 0731-3805149
Ochsensteige 48
89075 Ulm
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: .eps file displays with gv but will not print

by Ben Abbott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On May 14, 2008, at 7:04 AM, Stefan Pofahl wrote:

> Hi Bob
>
> you wrote:
> > I think I found the problem, and it must be in either octave or  
> gnuplot.
> > There is a line in the CUPS error log for a non-printing file:
> > E [13/May/2008:15:03:13 -0700] [Job 818] No %%Pages: comment in  
> header!
> As I understand it, it is not bug, but a feature.
> That is the difference between *.eps and *.ps,
> *.ps documents have pages, but *.eps should not have
> pages, as I understand it, *.eps are for usage in documents,
> they are not supposed to be stand alone printable documents.
>
> Regards,
>
> Stefan

In the past, I've printed eps files on my Mac. However, if I recall  
correctly they were converted to pdf files first.

I believe ps2pdf does this using Ghostscript ... correct?

Ben

> 2008/5/14 Bob Odom <odom@...>:
> Thomas,
>
> I think I found the problem, and it must be in either octave or  
> gnuplot.
>
> There is a line in the CUPS error log for a non-printing file:
>
> E [13/May/2008:15:03:13 -0700] [Job 818] No %%Pages: comment in  
> header!
>
> I looked at a file with no problems, and saw that directly below
> %%EndProlog  is the line
> %%Page: 1 1
>
> I manually edited the non-printing file and added the line "%%Page:  
> 1 1"
> directly below the "%%EndProlog" statement. That file now prints.
>
> So the problem is in the generation of the PostScript. This seems to  
> be
> a genuine bug, but is it an octave problem or a gnuplot problem?
>
> Bob
>
> On Tue, 13 May 2008, Bob Odom wrote:
>
> > Thomas,
> >
> > Yes, I am using CUPS. Here are a few lines from the log file:
> >
> > I [13/May/2008:11:45:45 -0700] Adding start banner page "none" to  
> job
> > 814.
> > I [13/May/2008:11:45:45 -0700] Adding end banner page "none" to  
> job 814. I [13/May/2008:11:45:45 -0700] Job 814 queued on "super" by  
> "odom".
> > I [13/May/2008:11:45:45 -0700] Started filter
> > /usr/lib64/cups/filter/pstops (PID 21414) for job 814.
> > I [13/May/2008:11:45:45 -0700] Started backend
> > /usr/lib64/cups/backend/lpd (PID 21415) for job 814.
> > E [13/May/2008:11:45:45 -0700] [Job 814] No %%Pages: comment in  
> header!
> >
> > The job seems to be sent to the printer, as the printer screen  
> echoes
> > "odom file_eps" and then after a while "Done: odom file_eps"
> >
> > I have exactly the same problem on a different computer also running
> > SuSE 10.2 and same installations of octave and gnuplot. I am also  
> using
> > CUPS on that machine.
> >
> > Bob
> > On Tue, 13 May 2008, Thomas Weber wrote:
> >
> >> On 13/05/08 13:08 -0700, Bob Odom wrote:
> >>> generates "plot1.eps" just fine. I can display it with 'gv'.  
> However it
> >>> will not print from gv. It will not print directly from octave  
> using
> >>>
> >>> print ('-Pprinter', '-depsc2');
> >>>
> >>> Nor will it print from the command line with 'lpr -Pprinter  
> plot1.eps'.
> >>
> >> What print system are you using (probably CUPS). What's in its log
> >> files (try setting the loglevel to DEBUG or how it's called  
> there)? Is
> >> anything sent to the printer?
> >>
> >>      Thomas
> >>
> > _______________________________________________
> > Help-octave mailing list
> > Help-octave@...
> > https://www.cae.wisc.edu/mailman/listinfo/help-octave
> >
> _______________________________________________
> Help-octave mailing list
> Help-octave@...
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>
>
>
> --
> Tel.: 0731-3805149
> Ochsensteige 48
> 89075 Ulm _______________________________________________
> Help-octave mailing list
> Help-octave@...
> https://www.cae.wisc.edu/mailman/listinfo/help-octave

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: .eps file displays with gv but will not print

by Przemek Klosowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It is possible that the postscript file contains something that the
postscript interpreter in the printer chokes on. If you don't have PS
error printing turned on (which is the usual default), the end effect
is that the printer data light blinks briefly and nothing comes
out. Actually that's somethign that you could check easily: send the
print job and see if the printer goes off the READY state and if it
appears to be getting data. If it is, go to the printer front panel
config menus and turn PS printing on, and see if that gives you an
indication of the cause.
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave