Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dolphin77

macrumors newbie
Original poster
Mar 16, 2004
2
0
Looking for a way to convert a word document to pdf via the command line on OS X.

Any help would be greatly apprecatied.....
 
dolphin77 said:
Looking for a way to convert a word document to pdf via the command line on OS X.

Any help would be greatly apprecatied.....
Do you know how to write Python scripts? If you do, you're in luck: you can access Quartz functions, including PDF creation, via Python. See this PDF for details. This only works in Panther, so if you don't have Panther yet, you'll need to upgrade to do this.
 
wrldwzrd89 said:
Do you know how to write Python scripts? If you do, you're in luck: you can access Quartz functions, including PDF creation, via Python. See this PDF for details. This only works in Panther, so if you don't have Panther yet, you'll need to upgrade to do this.

Thanks for the information.....the pstopdf looks really great....However, the showstopper for us is getting the word file to ps....do you know any way to do this??
 
i assume you know that you can "print" to PDF from Office and jump directly from word doc to PDF...

but obviously, you are asking for command line version so it's easier to do a batch job...

applescript, perhaps?
 
If you have postscript printer driver intstalled, then in the print dialogue box , you can change somthing to 'print to file' .then instead of printing , it wd save ur document as a ps file.
cheers
 
I have not actually done this myself with Word, but MS Office for Mac can be scripted with Applescript. So you should be able to create a simple Applescript to say loop thru all .doc files in a folder, opening each file in Word and having Word print the file out in pdf format, then close the file.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.