Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Re: Converting M$ Word --> PDF

by peterr (Scribe)
on Jan 23, 2004 at 23:56 UTC ( #323741=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Converting M$ Word --> PDF
in thread Converting M$ Word --> PDF

Hi Roger,

Just to add to the above comment - if your office pack does not allow printing to PDF, you can print to Postscript and then convert the Postscript to PDF using ghostscript.

No, my Office 2000 doesn't seem to have this, unless there is a service pack or other update I haven't installed ??

Peter


Comment on Re: Re: Re: Converting M$ Word --> PDF
Printing to Postscript (Re: Converting M$ Word --> PDF)
by jonadab (Parson) on Jan 24, 2004 at 02:37 UTC
    print to Postscript and then convert the Postscript to PDF using ghostscript.
    No, my Office 2000 doesn't seem to have this

    Go to your Printers control panel, create a New Printer, use the driver for the Apple LaserWriter (included with most if not all versions of Windows) and set it to print to file, rather than to a real printer. When you print to that "printer", it will ask you for a filename -- end the filename in ".ps" (stands for PostScript). These files can then be opened in GSView (or Acrobat Reader, I think) or converted to Acrobat's (un)Portable Document Format using ps2pdf.

    However, this method will require manual opening and printing-to-file of each and every document, which isn't what you asked for in your original post and is probably not what you really want to do, unless you're only doing a few documents. (If you *are* doing only a handful of documents, then it's an easy way out, which is why I explained it.)


    $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/
      Go to your Printers control panel, create a New Printer, use the driver for the Apple LaserWriter (included with most if not all versions of Windows) and set it to print to file, rather than to a real printer. When you print to that "printer", it will ask you for a filename -- end the filename in ".ps" (stands for PostScript).

      Did as per the instructions, and when in Word and using _that_ driver to print, it printed to file, but the extension was .PRN ? When I added the driver, there were HEAPS of Apple LaserWriter ones, I just selected the default. Under the printer options, there were some PS options, so maybe I'll have to read up on that. This is a Win95 box, dinasour stuff

      These files can then be opened in GSView (or Acrobat Reader, I think) or converted to Acrobat's (un)Portable Document Format using ps2pdf.

      Okay, when I get the files to print to PS format, I'll try that.

      However, this method will require manual opening and printing-to-file of each and every document, which isn't what you asked for in your original post and is probably not what you really want to do, unless you're only doing a few documents. (If you *are* doing only a handful of documents, then it's an easy way out, which is why I explained it.)

      Well, it is only for a few, but I guess once I can do it, I'll want to do it more. :)

      Peter

        but the extension was .PRN

        Oh, I forgot about that. Yeah, Windows names it .PRN because Windows only knows that it's formatted for a printer; Windows isn't smart enough to know that this particular printer is a very faithful implementation of the PostScript standard. (The people who wrote the driver knew that, but the code that picks the default filename doesn't come from the driver.) You can just change the extension to .ps by renaming the file.


        $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://323741]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2014-11-28 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (200 votes), past polls