How to batch convert Word files to pdf

How do I batch convert Word files to pdf using Automator

Here is a drag/drop AppleScript solution that uses the command-line LibreOffice capability to convert MS Word (.doc, .docx) files into PDF. Drag/Drop a single file, or a folder of Word documents, and it will write the respective PDF back to the original file location. When it is done, an OS X Notification will slide out onto the Desktop and provide the count of processed files.
Save this AppleScript as a Desktop application that remains open after running. If you ignore the latter, the notification will not show when it is done. Tested on Mavericks 10.9.5.
property name_extension : {"doc", "docx"}
global fileCnt
on open of finderObjects
    set fileCnt to 0
    repeat with i in (finderObjects)
    if folder of (info for i) is true then
        tell application "Finder" to set temp to (entire contents of i)
        repeat with j in (temp)
            process_files(j)
        end repeat
    else
          process_files(i)
    end if
    end repeat
    display notification "Processed Files: " & fileCnt with title "Word2PDF" subtitle "Processing Complete"
end open
on process_files(fname)
     set cmd to "/Applications/LibreOffice.app/Contents/MacOS/soffice "
     set cmdArgs to "--headless --convert-to pdf:writer_pdf_Export --outdir "
     tell application "Finder"
          set nameExt to name extension of fname
          set outDir to do shell script "dirname " & POSIX path of (fname as alias)
          if name extension of fname is in name_extension then
               try
                    do shell script cmd & cmdArgs & outDir & space & POSIX path of (fname as alias)
                    set fileCnt to fileCnt + 1
               on error errorMessage number errorNumber
                    display alert "Processing Error: " message "[ " & errorNumber & " ] " & errorMessage
                    error number -128
               end try
          end if
     end tell
     return
end process_files

Similar Messages

  • Acrobat XI Pro successfully installed, but it failed in converting word files into PDF, why?

    I just installed Adobe XI Pro through the download assistant, it looks the installation went well, but when I tried to convert word files into PDF (tried many times), it failed. Anyone has the same problems, any solutions?

    Please reply with more information - what your operating system is, do you have Office installed, and what exactly is happening. Is there an error message, does the application crash, and from where are you starting the conversion (using Word and PDFMaker, using Acrobat's Create button, or batch processing).

  • Not able to convert word file to PDF using Adobe Acrobat 9 Standard

    Hi,
    I am not able to convert word file to PDF using Adobe Acrobat 9 Standard. When I try to convert, it starts the process and in between I am getting this prompt, as shown in figure below and the conversion process stops. The PDF is not created.
    Note: The filename 'Acr85.doc' in the above prompt keeps changing and is random.
    I tried clicking Yes, No and Cancel on the above prompt, but the conversion process just stops and PDF is not getting generated.
    I am able to create PDFs from web pages. No issues with that. Not working only with Word.
    Can someone help me with this.
    Thanks,
    Vinay Jaassiel Kankipati
    Technical Writer

    In MSWord please changes the settings as "Adobe PDF" menu => "Change Conversion Settings" goto Tab Bookmark and clicks the option Convert Word Bookmarks. Now you convert the Doc to PDF you can achieve the Bookmark.
    Hope this help you
    Sudhakar

  • Reader x will not allow me to convert word files to pdf

    reader x will not let me convert word files to pdf's, even word files that have been converted before. unable to get support through adobe...

    The free Reader has never been able to do much more than reading (opening) PDF files. It has never had the capacity to convert any kind of file to any other format.  If you could do it before, you must have been using another Adobe program/service.

  • How to batch convert bmp files into jpg by dos command or c# program language?

    How to batch convert bmp files into jpg by dos command or c# program language?
    Many thanks for replying.

    Try
    GraphicsMagick.

  • How would one convert Word files containing audio to a PC?

    I'm not sure if it's possible, but how could I convert Word files that contain audio from a Mac laptop to a PC laptop? I really would appreciate any help, as I truly need these files for academic reasons. Thank you

    Hi, theocularone -
    Welcome to Apple's Discussions.
    This particular forum is set aside for users of OS 9. Since you are using a MacBook Pro, you can not be using OS 9 (OS 9 is not usable with any Intel-processor Mac).
    You would probably get a faster, more directed response if you reposted your question in the appropriate OSX forum. Depending upon which version of OSX you are using, you can access those here -
    OSX 10.4 - http://discussions.apple.com/category.jspa?categoryID=177
    OSX 10.5 - http://discussions.apple.com/category.jspa?categoryID=235
    OSX 10.6 - http://discussions.apple.com/category.jspa?categoryID=263

  • Batch Convert InDesign Files to PDF: Acrobat 9 Pro Opens CS3

    A question came up in the InDesign forum about batch converting InDesign files. I've never really needed to do it but I was aware of the batch convert command. The OP reported errors so I tried it myself and while it worked, for some reason Acrobat 9 Pro is opening InDesign CS3 even though I have CS4 and CS5 installed.
    I can't seem to find any way to change the default for INDD files. I tried launching ID CS5 first, but Acrobat still launched ID CS3. If I double click an INDD file in Windows Explorer, it opens in CS5 so the operating system has the default correct.
    Any ideas?
    Thanks,
    Bob

    Thanks,
    I just found that out, too.
    What I'd like to find out is how to fix this.
    Bob

  • What Adobe Software should be download (free trail-WinXP) to convert word file to pdf file?

    I would like to know where I can download the captioned required free trial for WinXP from your website which can help me to convert the word file to pdf file.

    That would be Acrobat. anyway, if you just want to print to PDF, you can find enough free tools like GhostScript...
    Mylenium

  • How do I convert Word to online PDF accessible via the web?

    How do I convert a Word Document to an online PDF document which can be accessible via the web? I need to upload the document so people can access it via the web.  HELP???

    You can convert Word docs to PDF using
    Adobe Acrobat
    Adobe PDF Pack
    Microsoft Office 2007+
    One converted, you can upload it to the web, but only Acrobat can actually optimize it for best web usage.

  • How do I convert a file to PDF without subscribing?

    I just downloaded Adobe Reader X, I'm running Windows 7, When I try to convert a file to PDF I'm required to subscribe? I thought this was free? Any ideas?

    Adobe Reader is free - and it reads PDF files; it doesn't create them.
    Adobe CreatePDF and ExportPDF are online subscription services for people who don't want to buy Acrobat. There are links from inside Adobe Reader so users can find those services more easily, but functionally they're unconnected to Reader.

  • How I can convert word file to html file

    Hi all,
    I need to convert word file to html File.. is there any 3rd party API ? please suggest me very soon.........
    or else
    suggest me easiest way to achive this problem...

    Easiest way....
    open up the document in Word, click on "Save as" and select "Web Page".
    There are 3rd party APIs to read Word docs... but I don't know if they then allow you to export to HTML.
    You may have to write that yourself.
    Look up : http://jakarta.apache.org/poi/
    regards,
    Owen

  • How to batch convert office files like doc to pdf?

    version: acrobat pro 7.08
    i want to convert about 500 doc files to pdf and have tried to set printer to "Adobe PDF" printer with using batch "printing all" to convert my doc files, message box always asked me saving directory and tmp file for each doc converting, i just want it can process all files and no question, is there any way to do it? thanks

    SNP as in MS Access report snapshots?
    If so, you've a Microsoft "exotic", as it were, which is not, as far as I can determine, among the file formats support by Acrobat's conversion process.
    The listing in Acrobat's Preferences (Convert to PDF category) and the information at the link below can provide one with a good sense of what is or is not supported.
    http://kb2.adobe.com/cps/333/333504.html
    (Acrobat PDF-capable web browsers and PDFMaker-compatible applications (Acrobat 6.x - 9.x on Windows and Mac OS)
    What ought to provide a PDF is a File > Print using the Adobe Printer from within the viewer feature in MS Access or with the View App for those without MS Access.
    Perhaps a feature request might be of merit?
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Be well...

  • How do I convert a file to PDF without subcribing or paying a fee?

    My old computer (which had Visa) I could right click on most any file and I had three options to conver a file to PDF.... ( Convert to Adobe PDF, Convert to Adobe PDF and EMail, Combine supported file in Acorbat....) which was great!! Now that I have my new computer with Windows 7, I can't seem to find this program without subscribing or paying a fee? Does anyone know where I can find it and how I can get the options back when I right click on a file? 

    You previously had Adobe Acrobat installed, which is not free.
    Adobe do not have any free products or services for making PDF.
    You need to go back through the disks and licenses you got with your old computer. Though in some cases (e.g. some Dell computers) there is a bundled Acrobat which cannot be transferred.

  • Converting Word files to pdf- Output is black and white

    Hello -
    I recently updated the Adobe 9.0 Reader on my computer and now when I try to convert a Word file with pictures and/or difffent colors of fonts to a pdf the output is ALL black and white.  I've seen some people here on the forum saying their printer caused the problem, but I have not changed printers and this same Xerox printer worked before.  Plus, I am not even printing the files yet - just looking at them in Adobe Reader - and they are in black and white.  This never happened before.
    Any ideas?  Need help!

    You may want to ask in the forum for Reader.
    http://forums.adobe.com/community/adobe_reader_forums/adobe_reader

  • How do I convert a file to PDF on my iPad

    How do I convert to PDF on my iPad in order to send it as an attachment

    I don't know that you can or if it is necessary. At the top of the file look for the share icon (box with arrow).  If it's there tap it then tap mail.

Maybe you are looking for