Here's an applescript service which converts individual files to PDFs and then merges the sections. You can download the service via the below link and add it to library > services or you can use the script posted below:
http://goo.gl/ikQJ9k
One question though. I took the number of sections on a new page ("section new page", "section odd page", "section even page") as an indicator for the number of PDFs the document would produce. This isn't always correct however (thereby stalling the script). Apparently there are other factors influencing the number of PDFs produced by Word for a document. If anyone knows a better way of finding the number of output PDFs from Word, please let me know!
on run {input, parameters}
set the_counter to count of input
repeat with i from 1 to the_counter
set cur_file to (item i of input) as string
try
do shell script "cd " & quoted form of POSIX path of posix_file_path
display dialog "This script does not work with folders."
set the_counter to 0
exit repeat
end try
-- REMOVE EXTENSION
set theCharacters to characters of cur_file
set theReverse to reverse of theCharacters as string
set extension_length to (offset of "." in theReverse) + 1
set file_base to (text 1 thru -extension_length) of cur_file
set sectionCount to 0
set file_name to file_base & ".pdf"
tell application "Microsoft Word"
open cur_file
tell active document
activate
repeat with i from 1 to count of sections
if (section start of page setup of section i) as text is in {"section even page", "section odd page", "section new page"} then
set sectionCount to sectionCount + 1
end if
end repeat
end tell
tell application "Finder"
if exists file file_name then
repeat with i from 1 to 10000
set file_name to (file_base & "(" & i & ").pdf")
if not (exists file file_name) then exit repeat
end repeat
end if
end tell
save as active document file format format PDF file name file_name
end tell
set file_search to (text 1 thru -5) of file_name
if sectionCount > 2 then
set last_file to file_search & "." & sectionCount - 1 & ".pdf"
else
set last_file to file_name
end if
tell application "Finder"
set counter to 0
repeat until ((file last_file exists) or (counter = 600))
delay 0.5
set counter to counter + 1
end repeat
end tell
delay 0.5
set merge_files to every paragraph of (do shell script "ls -tr " & quoted form of POSIX path of file_search & "*" & ".pdf")
if (count of merge_files) > 1 then
set newFirst to quoted form of POSIX path of (file_search & ".1.pdf")
set item 1 of merge_files to newFirst
do shell script "mv " & " " & quoted form of POSIX path of file_name & " " & newFirst
set merge_file_paths to item 1 of merge_files
repeat with merge_file in (items 2 thru end of merge_files)
set merge_file_paths to merge_file_paths & " " & quoted form of merge_file
end repeat
do shell script "/System/Library/Automator/Combine\\ PDF\\ Pages.action/Contents/Resources/join.py -o " & quoted form of POSIX path of file_name & " " & merge_file_paths
tell application "Finder"
set counter to 0
repeat until ((file file_name exists) or (counter = 1800))
delay 0.5
set counter to counter + 1
end repeat
end tell
delay 2
do shell script "rm " & merge_file_paths
end if
end repeat
if the_counter > 0 then
tell application "System Events"
activate
display dialog ("Script Complete! " & return & return & the_counter & " files converted") buttons {"OK"} default button 1 with title "Convert to PDF"
end tell
end if
end run