A simple Lua module for converting various office documents into OOXML format files.
package main
import (
"ofunc/lmodoffice"
"ofunc/lua/util"
)
func main() {
l := util.NewState()
l.Preload("office", lmodoffice.Open)
util.Run(l, "main.lua")
}
local office = require 'office'
office.toxlsx('path to files')
Converts all files in the root that has the specified extensions to xlsx format files. If no extension is specified, converts all files in the root.
Converts all files in the root that has the specified extensions to docx format files. If no extension is specified, converts all files in the root.
Converts all files in the root that has the specified extensions to pptx format files. If no extension is specified, converts all files in the root.