LinuxQuestions.org
Help answer threads with 0 replies.
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 09-10-2005, 04:57 AM   #1
sureshkellemane
Member
 
Registered: Jan 2005
Posts: 53

Rep: Reputation: 15
How to print the document to file


Hi All,

Please help me on these situations

problem I

I want to print the document to a file instead of parallel port like in WINDOWS we have the option in the driver properties to print to a file.

I am using fedora core 1 Linux distribution, CUPS printing system and default drivers.

I have tried to install the driver in CUPS configuration tool (http://localhost:631/printers ) with http and ipp protocol connection where we can get the option to write to a file. But it is not getting installed as it gives error stating that "client error not possible"

problem II

I want to take the PRN files from the drivers. How can i take apart from printing to a file.

Thanks a lot

Suresh Bhat
 
Old 09-10-2005, 05:53 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Open Office gives the option to print to pdf files.
LaTeX will produce output in a viariety of formats (postscript, dvi, pdf etc)
And stdout text can be piped to a text file.

So you need to think carefully about what you need the resulting file for, and what kind of document you want to print in this way.

Say you want to print a M$.doc file to MS.prn ... *.prn files are viewable in gostscript - i.e. they are postscript files. (Someone correct me if I am wrong here - but I think this is another case of M$ hiding information.)

Here's what it says under open office.org help:
Quote:
PostScript
To export a document or graphic in PostScript format:
1.If you have not yet done so, install a PostScript printer driver, such as the Apple LaserWriter driver.
2.Print the document with the File - Print menu command.
3.Select the PostScript printer in the dialog and mark the Print to file check box. A PostScript file will be created.

Last edited by Simon Bridge; 09-10-2005 at 06:03 AM.
 
Old 09-12-2005, 01:36 AM   #3
sureshkellemane
Member
 
Registered: Jan 2005
Posts: 53

Original Poster
Rep: Reputation: 15
Hello sir,

Thanks for the help.

What i thought of is that to get the PRN file with respect to particular driver. The PRN file should be the format defined by the driver. Instead of sending the converted data to parallel port (or someother backend) , it should write to a file.

I am not at all bother about the input of the driver. I need the driver output, that is PRN file.

Luckily i have got the way and it can be made by changing the CUPS printer.conf file where we can edit the parallel:/dev/lp0 to parallel:/whatever/youwant.prn
So the driver writes the output to a file instead of sending it to the backend parallel port.

Click on the below link for more information
http://aplawrence.com/MacOSX/macosxcupstofile.html
 
Old 09-12-2005, 02:08 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
I'm not quite sure why you bother to ask if you can
post a link to a solution to your problem? It's all there.



Cheers,
Tink
 
Old 09-12-2005, 04:08 AM   #5
sureshkellemane
Member
 
Registered: Jan 2005
Posts: 53

Original Poster
Rep: Reputation: 15
Yeah...it is true....

I have got that link only after posting luckily....

Before that i tried to get the details from d net but i couldn't able to get .
 
  


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
Print-to-file print driver to print PDF Bill Fox Linux - General 3 05-02-2006 05:15 PM
Is there a good document or article for Linux core file management raees Linux - Software 1 08-31-2005 02:04 PM
Setting up a print to file print driver Bill Fox Linux - General 0 02-26-2005 02:22 PM
My printer does not work after I print a document rangerssg Linux - Hardware 3 08-29-2004 07:13 PM
No such file to load -- rexml/document mikeshn Programming 1 12-08-2003 08:16 PM


All times are GMT -5. The time now is 07:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration