epub

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EpubExporter

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

EpubExporter convert an article to a epub file

func (*EpubExporter) Export

func (exp *EpubExporter) Export(ctx context.Context, article *model.Article) (*downloader.WebAsset, error)

Export an article to epub file

type Writer

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

Writer of a ePub format

func NewWriter

func NewWriter(w io.Writer, title string) (*Writer, error)

NewWriter create new ePub writer

func (*Writer) Close

func (w *Writer) Close() error

Close the writer

func (*Writer) NewContainer

func (w *Writer) NewContainer() error

NewContainer create new ePub container

func (*Writer) NewItem

func (w *Writer) NewItem(filename, contentType string) (io.Writer, error)

NewItem create new ePub container item

func (*Writer) WriteOPF

func (w *Writer) WriteOPF(filename, spineRef string) error

WriteOPF write ePub file

Jump to

Keyboard shortcuts

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