LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to print the document to file (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-print-the-document-to-file-361999/)

sureshkellemane 09-10-2005 03:57 AM

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

Simon Bridge 09-10-2005 04:53 AM

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.

sureshkellemane 09-12-2005 12:36 AM

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

Tinkster 09-12-2005 01:08 AM

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

sureshkellemane 09-12-2005 03:08 AM

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 .


All times are GMT -5. The time now is 05:02 PM.