mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
parent
358af5fea1
commit
3ea8d571e7
1 changed files with 4 additions and 0 deletions
|
@ -44,6 +44,10 @@ exports.convertFile = function(srcFile, destFile, type, callback) {
|
||||||
if (type === "html") {
|
if (type === "html") {
|
||||||
// "html:XHTML Writer File:UTF8" does a better job than normal html exports
|
// "html:XHTML Writer File:UTF8" does a better job than normal html exports
|
||||||
type = "html:XHTML Writer File:UTF8";
|
type = "html:XHTML Writer File:UTF8";
|
||||||
|
// 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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// soffice can't convert from html to doc directly (verified with LO 5 and 6)
|
// soffice can't convert from html to doc directly (verified with LO 5 and 6)
|
||||||
|
|
Loading…
Reference in a new issue