opc

package
v0.0.7-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 10 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRelsURI

func GetRelsURI(filePath string) (*string, error)

GetRelsURI returns the URI of the .rels file for the specified OPC file.

func LoadRelationShips

func LoadRelationShips(fileName string, fileBytes []byte) (*oxml.Relationships, error)

LoadRelationShips loads the relationships from the specified file.

func ReadFromZip

func ReadFromZip(content *[]byte) (map[string][]byte, error)

ReadFromZip reads files from a zip archive.

func Unpack

func Unpack(content *[]byte) (*oxml.RootDoc, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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