lmodoffice

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2019 License: Zlib Imports: 6 Imported by: 0

README

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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(l *lua.State) int

Open opens the module.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL