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.


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.


  1. Open Automator
  2. Choose Servicechoose-service
  3. Click Choose
  4. Choose Files or folders and 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.

38 thoughts on “Convert DOCX to PDF Natively With A Right-Click”

    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.

    1. Maybe? I think the utilities used in the script don’t care about those. It might be worth investigating, but I don’t know off hand if it’s possible or not.

  7. How can I alter this script to use LibreOffice command line options to convert DOCX to PDF? As it is, this script strips out images and formatting that I require in the PDF output. Opening the docx files in LibreOffice and exporting to PDF retains the formatting.

    1. There might be a way to directly use the cupsfilter command, which is essential what printing to PDF does, but I used the intermediate step of converting it to HTML first, which is probably where you lose the formatting.

  8. This script removes all docx formatting. Is there any way to keep the formatting (and comments etc.) and convert to pdf (so it looks exactly like when printed)? Thanks. VS

    1. The command line utilities that handle the conversion are what do that. There might be something better out there then what I’ve put together.

  9. THANKS SO MUCH for this (and the additional note in the replies about how to keep the original document). I’m a teacher and this just saved me loads of precious time!

    Thanks again!

  10. Hi again,

    There are no files related to the service in that folder. Anywhere else I might find them?


  11. I attempted to write a script to reverse but it can’t preserve the contents of the pdf into a word doc. Assume there’s no reliable way of doing such an action?

Leave a Reply