Documentation
¶
Overview ¶
Package opc provides functionality related to Open Packaging Conventions (OPC).
Overview:
Open Packaging Conventions (OPC) is a container-file technology initially created by Microsoft to store a combination of XML and non-XML files that together form a single entity. OPC is used in various document formats, including the Office Open XML (OOXML) standard.
Index ¶
- func GetRelsURI(filePath string) (*string, error)
- func LoadContentTypes(fileBytes []byte) (*docx.ContentTypes, error)
- func LoadRelationShips(fileName string, fileBytes []byte) (*docx.Relationships, error)
- func ReadFromZip(content *[]byte) (map[string][]byte, error)
- func Unpack(content *[]byte) (*docx.RootDoc, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRelsURI ¶
GetRelsURI returns the URI of the .rels file for the specified OPC file.
func LoadContentTypes ¶
func LoadContentTypes(fileBytes []byte) (*docx.ContentTypes, error)
LoadContentTypes loads the content type from the content types file
func LoadRelationShips ¶
func LoadRelationShips(fileName string, fileBytes []byte) (*docx.Relationships, error)
LoadRelationShips loads the relationships from the specified file.
func ReadFromZip ¶
ReadFromZip reads files from a zip archive.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.