bugfix/import: doc import bugfix

bugfix-doc-import
John McLear 2020-08-30 11:29:35 +01:00
parent 4db484e34e
commit 1a97839a8a
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ exports.convertFile = function(srcFile, destFile, type, callback) {
if (type === "html") {
// "html:XHTML Writer File:UTF8" does a better job than normal html exports
type = "html:XHTML Writer File:UTF8";
if (path.extname(srcFile).toLowerCase() === ".doc") {
type = "html";
}
// PDF files need to be converted with LO Draw ref https://github.com/ether/etherpad-lite/issues/4151
if (path.extname(srcFile).toLowerCase() === ".pdf") {
type = "html:XHTML Draw File"