2022-07-27 17:04:18 +02:00
|
|
|
/* global OpenDocument */
|
|
|
|
|
2022-07-29 14:18:11 +02:00
|
|
|
var Html2Ods = function (output, table, options) {
|
|
|
|
//compile target
|
|
|
|
|
|
|
|
switch(output) {
|
|
|
|
case "blob":
|
|
|
|
return OpenDocument.OdsConverter.convertToBlob(table, options);
|
|
|
|
case "xml":
|
|
|
|
return OpenDocument.OdsConverter.convertToXml(table, options);
|
|
|
|
default:
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
};
|
2022-07-27 17:04:18 +02:00
|
|
|
|
|
|
|
Html2Ods.blob = function (table, options) {
|
2022-07-29 14:18:11 +02:00
|
|
|
return Html2Ods("blob", table, options);
|
2022-07-27 17:04:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
Html2Ods.xml = function (table, options) {
|
2022-07-29 14:18:11 +02:00
|
|
|
return Html2Ods("xml", table, options);
|
2022-07-27 17:04:18 +02:00
|
|
|
};
|