Skip navigation

Word to PDF not working

305 Views 4 Replies Latest reply: Mar 14, 2013 11:02 AM by pjdube RSS
Grriz86 Calculating status...
Currently Being Moderated
Mar 9, 2013 5:43 AM

Hi there,

I tried to convert a Word document into a PDF with "Save as.." and then choosing PDF as the output format but it returns me the error "Unable to communicate with the printer". What can I do?

Thanks

FR

MacBook Air, OS X Mountain Lion (10.8.2)
  • CT Level 6 Level 6 (14,985 points)
    Currently Being Moderated
    Mar 9, 2013 7:13 AM (in response to Grriz86)
  • pjdube Level 3 Level 3 (830 points)
    Currently Being Moderated
    Mar 13, 2013 12:28 PM (in response to Grriz86)

    Use automator and put the following applescript it in, and save as a service. This works perfectly. Then you just right click the folder and it will convert all doc and docx files into PDF.

     

    1.JPG

     

    Here is the script:

     

    property theList : {"doc", "docx"}

     

    on run {input, parameters}

              set output to {}

              tell application "Microsoft Word" to set theOldDefaultPath to get default file path file path type documents path

              repeat with x in input

                        try

                                  set theDoc to contents of x

                                  tell application "Finder"

                                            set theFilePath to container of theDoc as text

     

                                            set ext to name extension of theDoc

                                            if ext is in theList then

                                                      set theName to name of theDoc

                                                      copy length of theName to l

                                                      copy length of ext to exl

     

                                                      set n to l - exl - 1

                                                      copy characters 1 through n of theName as string to theFilename

     

                                                      set theFilename to theFilename & ".pdf"

     

                                                      tell application "Microsoft Word"

      set default file path file path type documents path path theFilePath

                                                                open theDoc

                                                                set theActiveDoc to the active document

      save as theActiveDoc file format format PDF file name theFilename

                                                                copy (POSIX path of (theFilePath & theFilename as string)) to end of output

      close theActiveDoc

                                                      end tell

                                            end if

                                  end tell

                        end try

              end repeat

              tell application "Microsoft Word" to set default file path file path type documents path path theOldDefaultPath

     

     

              return output

    end run

  • pjdube Level 3 Level 3 (830 points)
    Currently Being Moderated
    Mar 14, 2013 11:02 AM (in response to Grriz86)

    Ok. I fixed it up a little and made it as an app. Below is the link where you can download the workflow. When you download it, unzip it. Then double click on it, and Automator will launch with the workflow. Then Save As an app to your desktop. Then click on the app and select the folder you want to convert the word to pdfs. This should work.

     

    In terms of a PDF printer driver. I have not been able to find one.

     

    Good luck.

     

    Here is the link

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.