Doc to pdf with Automator

2009
05.08

As requested here is one possible way to convert doc and docx files to pdf using Automator. A word of caution; I successfully converted simple documents but not complex ones. Some application has better support for the doc format than other and Word will always be one step ahead, I think they want it that way? So if you really need the best conversion of complex documents you are forced to stick to Microsoft Word.

Required Actions

You need Convert Text Files from Armin’s Automator Actions. It’s a front-end to the command line tool textutil.

And Convert To PDF which is a front-end to cupsfilter.

Build the Workflow

  • get the files to convert
  • Convert them to rtf with Convert Text Files(save them in the output folder)
  • Translate the alias to POSIX path
  • Store the temporary files in a variable for later use
  • Convert the rtf files to pdf with Convert to PDF
  • Get the stored temporary rtf files
  • Move them to the Trash

doctopdf1

What result to expect

The two automator actions uses the underlying Mac os x architecture, so there aren’t any external dependencies, no other application require and the drawbacks that the doc format is not as well supported as in f. ex Pages.
The converted document will look as good or as bad as it looks like when opened with TextEdit.
I hope that it will be useful somehow.

Download

I put together a Sample Workflow for better understanding.

Download Doc To PDF

Related posts:
  1. Convert to PDF I was astonished not to discover an easy way to...
  2. Convert to PDF Version 1.1 A minor update for a developer a major improvement for...
  3. Automator vs Applescript Is it a war between  automatizing systems? Everything you can...
  4. Convert to PDF Version 1.2 A long time has passed and our favorite OS has...
  5. Flatten Movies Flatten Movies is an Automator action to flatten every movie...

Tags: , , , , , , , , , ,

One Response to “Doc to pdf with Automator”

  1. [...] Scripts for Mac OS X5 Indispensible Automator ActionsUse Automator variables anywhere in a workflowDoc to pdf with AutomatorScheduling automator workflows and other applicationsJunecloud Automator ActionsUsing Automator to [...]

Your Reply


Ironic Wolf is Digg proof thanks to caching by WP Super Cache