Documentation ¶
Index ¶
Constants ¶
View Source
const MainDocumentContentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"
View Source
const OpenxmlNamespace = "http://schemas.openxmlformats.org/package/2006/content-types"
Variables ¶
View Source
var ErrArchive = errors.New("archiveErr")
View Source
var ErrContentTypeValidation = errors.New(" of ooxml in invalid")
View Source
var ErrMimetype = errors.New("mimetypeErr")
TODO: Improve text.
View Source
var ErrOverride = errors.New("overrideErr")
View Source
var ErrUnexpectedTokenType = errors.New("unexpected token type")
Functions ¶
This section is empty.
Types ¶
type OOXML ¶
type OOXML struct {
// contains filtered or unexported fields
}
ODF defines an OpenDocument file that is concurrently accessible.
func New ¶
New returns an ooxml instance for the given document with the given size. The file is validated to be a valid ooxml package but no content or structure is processed.
func NewFromFile ¶
NewFromFile returns an OOXML instance for the given document file path. The file is validated to be a valid OOXML package but no content or structure is processed.
func (*OOXML) Close ¶
Close needs to be called at the end of the document processing to release any allocated resources.
func (*OOXML) InitScript ¶
func (*OOXML) ValidateAndSetMIMEType ¶
Click to show internal directories.
Click to hide internal directories.