Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/WordUtils.pas
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,14 @@ function TWordDocConverter.ExecuteConversion(fileToConvert: String; OutputFilena
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,
Expand Down