Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 30, 2009, 09:18 AM   #1
whooleytoo
macrumors 603
 
whooleytoo's Avatar
 
Join Date: Aug 2002
Location: Cork, Ireland.
Send a message via AIM to whooleytoo
Automate doc/xls/ppt -> pdf conversion?

I'm looking to automate the conversion of Office docs to PDF format. Obviously it's possible via "Save as pdf..", but I'm not sure how to automate it, or if it's possible.

I can automate conversion for 'generic' filetypes (txt, jpg etc.) using cupsfilter, but not for Office documents. (I tried using cupsfilter with an .xls, and it stated "Unable to determine MIME type of ABC.xls", but even with that fixed I'm sure it would complain about the lack of an appropriate filter?)

Anyone know how to do this? A command-line option would be ideal, I guess I can try UIScripting if all else fails. (Office is installed on the target machine).

Any help much appreciated!
__________________
Mac <- Macintosh <- McIntosh apples <- John McIntosh <- McIntosh surname <- "Mac an toshach" <- "Son of the Chief"
whooleytoo is offline   0 Reply With Quote
Old Jul 30, 2009, 09:22 AM   #2
swiftaw
macrumors 603
 
swiftaw's Avatar
 
Join Date: Jan 2005
Location: Omaha, NE, USA
this might help:
http://www.maciverse.com/automator-t...ts-to-pdf.html
swiftaw is offline   0 Reply With Quote
Old Jul 30, 2009, 09:52 AM   #3
whooleytoo
Thread Starter
macrumors 603
 
whooleytoo's Avatar
 
Join Date: Aug 2002
Location: Cork, Ireland.
Send a message via AIM to whooleytoo
Quote:
Originally Posted by swiftaw View Post
Thanks! I didn't have the Office '08 installed so that Automator action wasn't available.

I'll try now with the trial version and see how that works. Thanks again.
__________________
Mac <- Macintosh <- McIntosh apples <- John McIntosh <- McIntosh surname <- "Mac an toshach" <- "Son of the Chief"
whooleytoo is offline   0 Reply With Quote
Old Jul 30, 2009, 11:04 AM   #4
whooleytoo
Thread Starter
macrumors 603
 
whooleytoo's Avatar
 
Join Date: Aug 2002
Location: Cork, Ireland.
Send a message via AIM to whooleytoo
That works fine!

It's pretty clunky, visually, but it gets the job done. Now, I just need to look at watching a folder for new documents (launchd, I assume).

I also need to figure out how to customise that workflow. I need to delete the originals once converted; and rename the converted files to a an ID returned from an asp page.. but the most important part is working, thanks!
__________________
Mac <- Macintosh <- McIntosh apples <- John McIntosh <- McIntosh surname <- "Mac an toshach" <- "Son of the Chief"
whooleytoo is offline   0 Reply With Quote
Old Jul 30, 2009, 12:06 PM   #5
swiftaw
macrumors 603
 
swiftaw's Avatar
 
Join Date: Jan 2005
Location: Omaha, NE, USA
You can set up a folder action that will run that workflow any time something is placed in that folder.
swiftaw is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
PDF to PPT saberahul Mac Applications and Mac App Store 2 Apr 8, 2013 06:48 PM
Automate Print to PDF Receipts folder? newmacuser13 OS X 1 Mar 14, 2013 04:36 PM
Exporting .ppt as .pdf and preserving links jent Mac Applications and Mac App Store 1 Jan 24, 2013 01:10 PM
What do you use for ppt and pdf viewing/editing on android? 3bs Alternatives to iOS and iOS Devices 10 Oct 13, 2012 08:12 PM
PDF Expert - Adding a photo to an existing PDF doc. UncleBob32 iPad Apps 1 Aug 15, 2012 05:35 AM

Forum Jump

All times are GMT -5. The time now is 12:48 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC