Skip to content

erdian718/lmodoffice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lmodoffice

A simple Lua module for converting various office documents into OOXML format files.

Usage

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')

Dependencies

Documentation

office.toxlsx(root[, ext1, ...])

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.

office.todocx(root[, ext1, ...])

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.

office.topptx(root[, ext1, ...])

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.

About

A simple Lua module for converting various office documents into OOXML format files.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages