Documentation ¶
Index ¶
Constants ¶
View Source
const ( ContainerFile = "META-INF/container.xml" EncryptionFile = "META-INF/encryption.xml" LicenseFile = "META-INF/license.lcpl" ContentType_XHTML = "application/xhtml+xml" ContentType_HTML = "text/html" ContentType_NCX = "application/x-dtbncx+xml" ContentType_EPUB = "application/epub+zip" )
View Source
const (
RootFileElement = "rootfile"
)
root element of the opf
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Epub ¶
type Epub struct { Encryption *xmlenc.Manifest Package []opf.Package Resource []*Resource // contains filtered or unexported fields }
func Read ¶
Read reads the opf file in the zip passed as a parameter, selects resources which mustn't be encrypted and returns an EPUB object
func (Epub) CanEncrypt ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) AddResource ¶
func (*Writer) WriteHeader ¶
Click to show internal directories.
Click to hide internal directories.