Convert DOCX to PDF Natively With A Right-Click

Microsoft Office for OS X is usually very sluggish and slow.  This is one reason I don’t like working with DOCs or DOCXs in OS X.  Yes, you can easily view the document using QuickLook (pressing the Space bar while the file is highlighted), but if you actually want to open the file and manipulate it, you need to either buy Office, or get an open source alternative.

Download a pre-built workflow (or create your own by following the steps below).

I hate waiting for Microsoft Word to load and open the documents so I made an Automator workflow that converts a Microsoft Word document into a PDF so I can easily get rid of the DOCX and enjoy using the better-performing Preview app.

automator-docx-to-pdf

The best part is that you don’t need to install an office suite or any other software.  The script runs as a service, so you can just right-click a DOCX and choose Convert to PDF.

Setup

  1. Open Automator
  2. Choose Servicechoose-service
  3. Click Choose
  4. Choose Files or folders and Finder.app from the pulldown menus labeled Service receives selectedreceives-files
  5. Drag Get Specified Finder Items from the left pane into the right pane
  6. Drag Run Shell Script from the left pane into the right panerun-script
  7. Choose As Arguments from the pulldown menu labeled Pass Inputas-arguments
  8. Paste in the script below
  9. Choose File > Save
  10. Your workflow will now appear when right-clicking files

Please be aware that this workflow deletes the original DOCX.

21 Replies to “Convert DOCX to PDF Natively With A Right-Click”

  1. BE CAREFUL
    I just found out the hard way that it deletes the original file once it converts it to a PDF…

  2. Is there any way this would work for pptx files as well?
    I tried some solutions with a shell script but couldn’t get it to work. I guess it’s due to the new Office version.

    1. I haven’t tried. I’m not sure how well a power point would convert into HTML, but you could try it and see. There might be some different options to do it if it doesn’t display properly.

      1. using your script unfortunately just gives blank pages. Would be really nice to see if someone could make it to work with pptx as well. =)

        1. I suppose very complex documents might have issues. Do you documents have tons of formatting/macros, etc?

          1. It’s slideshows from my lectures, so I actually can’t control what will be in or not. There are no macros. I thought it’d be possible, because there were solutions with a different script for older Office versions. I guess they used the built in function, that came with the office suite.

          2. Yeah, it may or may not work. The whole point of this trick is to convert Microsoft document without having to own Office or any of it’s AppleScript libraries and to turn it into something more usable.

  3. Hi, can you please let me know how to delete the saved workflow? I clicked file save and think i labelled it DOCX to PDF but can not find it to delete it. Thanks

  4. Is there a way to alter the AppleScript so that there can be a Service for converting Pages documents to PDFs? Or, how would you recommend creating a similar service designed for converting Pages instead of Word docs?

    1. You could do it via AppleScript, but wouldn’t be as easy. DOCX to PDF works well since there is already a built in tool to do so. And AppleScript is probably the best way.

  5. HI I am having trouble converting more than 1000 files at a time. When i highlight 1000 item the service to convert is still available but at 1001 files it is no longer available

    1. Automator tends to have low limits like this. You can probably increase the limit by running the script via the command line, although it is a bit more tedious and difficult.

  6. Many thanks for that. Been looking at a quick way of converting those pesky docx in pdf and you have the best solution so far. Many thanks.
    Just need a way to stop it deleting the original files.

Leave a Reply