Show in log if version of word does not support PDF (#141)

This commit is contained in:
Toby Allen 2020-10-25 18:58:26 +00:00 committed by GitHub
parent 9c671379c2
commit fc001fe1a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -235,6 +235,14 @@ begin
if (strtoint( OfficeAppVersion) < 14) then
begin
logDebug('Version < 14 Using Saveas Function', VERBOSE);
if ( OutputFileFormat = wdFormatPDF )then
begin
LogInfo('This version of Word does not appear to support saving as PDF. You will need to install a later version. Word 2010 is the first to support Native saving as PDF.');
end;
Wordapp.activedocument.Saveas(OutputFilename ,
OutputFileFormat,
EmptyParam, //LockComments,