Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrArchive = errors.New("archiveErr")
View Source
var ErrMimetype = errors.New("mimetypeErr")
TODO: Improve text.
View Source
var ErrOverride = errors.New("overrideErr")
View Source
var ErrUpdateRootMediaType = errors.New("couldn't find and update root media-type")
Functions ¶
This section is empty.
Types ¶
type Odf ¶
type Odf struct {
// contains filtered or unexported fields
}
func New ¶
NewTemplate returns an ODF instance for the given document with the given size. The file is validated to be a valid ODF package but no content or structure is processed.
func NewFromFile ¶
NewFromFile returns a new ODF instance for the given document file path. The file is validated to be a valid ODF package but no content or structure is processed.
func (*Odf) InitScript ¶
func (*Odf) ValidateAndSetMIMEType ¶
https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part2-packages/OpenDocument-v1.3-os-part2-packages.pdf The file is validated to be a valid ODF package and the MIME type is set accordingly. No content or structure is processed.
Click to show internal directories.
Click to hide internal directories.