LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-08-2015, 11:36 AM   #1
adrianmariano
Member
 
Registered: Dec 2004
Distribution: Ubuntu Yakkety
Posts: 193

Rep: Reputation: 15
octave: printing figures as postscript text and blank pages


I'm trying to print a figure from Octave 4.0.0 and when I issue the command "print" my printer prints a postscript header and then starts spewing blank pages.

If I print to a file (e.g. with "print('test.pdf')" and then print the resulting pdf file with "lpr test.pdf" from the command line then it works fine. I also tried "print('test.ps')" followed by lpr from the command line, and that works too.

So what is octave doing to force the postscript to be misinterpreted and how can I fix it?

Printing is being handled by cups as normal, and I have an HP Inkjet (8610) printer.
 
Old 11-09-2015, 09:31 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Using the famous (infamous?) WAG method (Wild Assed Guess) of problem resolution, I came up with this:
a. your printer doesn't have a PostScript interpreter for printing PostScript files.
b. you need to usa a work-around to print the file. You have already discovered one such; convert to pdf then print. Pleas see http://www.tldp.org/HOWTO/Printing-Usage-HOWTO-3.html, section 3.2 for more information on using GhostScript to translate PostScript for printing on most printers.

I hope this works for you.
 
Old 11-09-2015, 09:44 AM   #3
adrianmariano
Member
 
Registered: Dec 2004
Distribution: Ubuntu Yakkety
Posts: 193

Original Poster
Rep: Reputation: 15
Printing postscript works fine from the command line for me in general. I've been doing it with various other postscript sources. Also if I print from Octave as postscript and send the postscript file to the printer it prints correctly. In other words, it's not the use of PDF that fixed things but the separate transmission to the printer from the command line. I did also try "print -dpdf" from Octave and it sends something to the printer (the printer makes noises) but nothing prints. So it doesn't seem that switching to pdf is the magic answer.

My WAG would be that somehow Octave is bypassing the mechanism that causes the print service to properly translate the data from the incoming format to a form understood by the printer.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Printing problem in 13.37 ( worked in 13.0 ) Prints out text of postscript arubin Slackware 3 05-25-2011 12:11 PM
printing blank pages pcandpc Linux - Hardware 1 09-16-2009 03:13 AM
text editor printing blank pages davsnotn Linux - Software 2 02-08-2006 03:23 PM
Printing Blank Pages Flat_Tire_ Slackware 11 11-28-2002 03:41 AM
Blank pages before and after printing bspicer Linux - General 0 05-13-2002 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration