epub

package
v0.0.0-...-3db8725 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Epub

type Epub struct {
	// contains filtered or unexported fields
}

Epub structure to represent epub file

func New

func New(outFile string, translit bool) (*Epub, error)

New returns new Epub object

func (*Epub) AddBinary

func (e *Epub) AddBinary(id, contentType, base64Content string) error

AddBinary adds binary file to epub

func (*Epub) AddMetadataAuthor

func (e *Epub) AddMetadataAuthor(firstName, middleName, lastName string)

AddMetadataAuthor adds author to metadata

func (*Epub) AddMetadataCover

func (e *Epub) AddMetadataCover(imageName string)

AddMetadataCover add cover to metadata

func (*Epub) AddMetadataLanguage

func (e *Epub) AddMetadataLanguage(s string)

AddMetadataLanguage adds language to metadata

func (*Epub) AddMetadataSubject

func (e *Epub) AddMetadataSubject(s string)

AddMetadataSubject adds subject to metadata

func (*Epub) AddMetadataTitle

func (e *Epub) AddMetadataTitle(s string)

AddMetadataTitle adds title to metadata

func (*Epub) AddPage

func (e *Epub) AddPage(pageName, guideType, content string) error

AddPage adds page to epub

func (*Epub) Close

func (e *Epub) Close() error

Close zip writer

Jump to

Keyboard shortcuts

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