LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2011, 10:20 AM   #16
surwassu
LQ Newbie
 
Registered: May 2011
Posts: 18

Original Poster
Rep: Reputation: Disabled
API for printing error


hi guys ,
i would like to know whether there is any API for displaying error in printing file.Its like printer is out of paper,tray is open .I am working on Linux machine,cups version is 1.4 .
plz help me guys.

regards,
sumit
 
Old 06-13-2011, 06:22 AM   #17
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Try to sort one problem at a time. You keep asking for different APIs, different tools, different languages. You say you can print from the command line with .txt and .ps files, but not .pdf files? Work out how to print .pdf files before you start asking about error APIs. If you can print .ps files, why not try:

Code:
$> pdftops myFile.pdf myFile.ps
And see if myFile.ps has converted correctly, then:

Code:
$> lpr myFile.ps
This might help you track down the 'memory' error. I assume you do have 128MB of RAM (I assume this is what the error is talking about - unless it is referring to the printer's internal memory...)

Last edited by Snark1994; 06-13-2011 at 06:27 AM. Reason: Malformed 'CODE' tags
 
Old 06-13-2011, 06:31 AM   #18
surwassu
LQ Newbie
 
Registered: May 2011
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Snark1994 View Post
Try to sort one problem at a time. You keep asking for different APIs, different tools, different languages. You say you can print from the command line with .txt and .ps files, but not .pdf files? Work out how to print .pdf files before you start asking about error APIs. If you can print .ps files, why not try:

[CODE]$> pdftops myFile.pdf myFile.ps[/CODE}

And see if myFile.ps has converted correctly, then:

Code:
$> lpr myFile.ps
Hi buddy,
If u can see my previous post might notice that I tried this things and after that M getting error about memory ,I thinks that problem is related to printers own memory....
 
  


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
Trying to read the contents of a file tarken Programming 8 01-11-2010 06:22 PM
How to extract a .exe file to read its contents BobNutfield Slackware 13 07-30-2008 08:07 PM
howto: pdf file renaming according to contents tacca Linux - Software 1 05-28-2007 02:40 PM
How to read and change the contents of a text file? Bassam Linux - General 11 02-26-2004 05:08 AM
Read contents of file and execute command cosiek Programming 3 09-30-2003 12:07 PM


All times are GMT -5. The time now is 04:45 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration