Hi, all,
I’m working on a script to batch-process exporting PDFs out of a bunch of Word documents. Word for Mac v. 16.67.
One issue we have is that the user who’s creating the PDFs may not have the same fonts installed and Word doesn’t give any warning that fonts are being substituted. This can cause reflow and in some instances may cause elements not to display in the final PDF.
I haven’t been able to find much about this in scripting terms. It seems like this:
tell application "Microsoft Word"
set myUnFonts to unavailable fonts of active document
end tell
… should work to get a list of fonts. At least the Word dictionary says that’s what it does. But all I get is “missing value” when testing against a document I know has fonts substituted.
I also found a reference in the dictionary to “get dialog dialog font substitution”, and I can run that and get a reference to the dialog … but then what do I do with that reference to return any useful information? I couldn’t find anything other than getting it to display using “show”.
Anybody out there have any experience or ideas about this?
Thanks in advance for any advice!
Mary