On Tuesday 28 January 2003 8:15 pm, Burke, Thomas G. wrote: > Hmmm.. How do you convert a doc to pdf?
Most applications print to postscript format as that's the base format for the various printing systems. Therefore if you can open a document and print it, you can create a postscript version of that document. Once you've done that, you can simply use ps2pdf to convert it to a PDF. The way I did it here was to create a Samba printer called PDF that calls a wrapper for ps2pdf instead of lpr. Then on every PC that wishes to create PDF's install a network printer pointing to \\mylinuxbox\PDF and using one of the Apple Laserwriter colour drivers. Each PC also has a share called PDF which the created PDF file gets put into. This way every Windows box has access to a PDF creator for free. Below is the extract from smb.conf, and the script: [pdf] comment = PDF Generator path = /var/spool/samba browseable = yes public = yes guest ok = yes printable = yes print command = /usr/bin/smbtopdf '/var/spool/samba/' '%f' '%J' '%m' [root@dcomp2 root]# cat /usr/bin/smbtopdf #!/bin/bash exec >>/tmp/smbtopdf exec 2>&1 path="$1" fname="$2" Job="$3" machine="$4" Job=`echo $Job|sed 's/ /_/g'` echo "machine='$machine' file='$fname' job='$Job'" cd $path /usr/bin/ps2pdf -sPAPERSIZE=a4 $fname $fname.pdf /usr/bin/smbclient //$machine/PDF -N<<EOF put $fname.pdf $Job.pdf EOF rm $fname $fname.pdf echo [root@dcomp2 root]# > > -----Original Message----- > From: Anthony E. Greene [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 28, 2003 3:05 PM > To: [EMAIL PROTECTED] > Subject: Re: u.s. government recognizes Linux as > > Buck <[EMAIL PROTECTED]> wrote: > >As an experiment, I am trying to setup a Linux computer as an office > >computer running ALL FREE software. It doesn't mean I won't pay for > >some software in the office, but I want to see if I can setup at > >least one computer in the network in which there is NO software cost > >and make it powerful and usable for the business. I have a home > >business right now and I am learning Linux and it's software. First > >I want to create a server then I'll work on the desktop idea. > > It depends on what you want to do. > > I used a Linux desktop at work for several years. My work included a > lot of > text editing, email, and web work. I had to read lots of documents, > and > produce memorandums. I had no problem doing this with various > editors, > mailers and browsers, OpenOffice, AbiWord, and Gnumeric. The > showstopper was > the occasional Windows-only custom app. > > That said, if you already own Windows licenses, then there may not be > a need > to switch, especially on the desktop. I've done enough with Linux > servers > that I'd like to have one on my network just because of the abilities > you > get for free; SQL database, development languages and programming > tools, > LDAP, mail, web, and more. Many offices could stand to have an > end-user > maintained shared contact database, or a way to convert any document > to PDF, > or a customizable spam filter/backup MX, or any of a host of services > that > can be setup on Linux without expending any funds. > > Go for it, and don't forget that Google and the Linux Documentation > Project > are your friends. > > --Tony -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list