epuboptions

package
v2.7.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package epuboptions Options for EPUB creation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color added in v2.5.0

type Color struct {
	Foreground, Background string
}

type Crop

type Crop struct {
	Enabled                 bool
	Left, Up, Right, Bottom int
	Limit                   int
	SkipIfLimitReached      bool
}

type Image

type Image struct {
	Crop                      *Crop
	Quality                   int
	Brightness                int
	Contrast                  int
	AutoContrast              bool
	AutoRotate                bool
	AutoSplitDoublePage       bool
	KeepDoublePageIfSplit     bool
	KeepSplitDoublePageAspect bool
	NoBlankImage              bool
	Manga                     bool
	HasCover                  bool
	View                      *View
	GrayScale                 bool
	GrayScaleMode             int
	Resize                    bool
	Format                    string
	AppleBookCompatibility    bool
}

type Options

type Options struct {
	Input                      string
	Output                     string
	Title                      string
	TitlePage                  int
	Author                     string
	LimitMb                    int
	StripFirstDirectoryFromToc bool
	Dry                        bool
	DryVerbose                 bool
	SortPathMode               int
	Quiet                      bool
	Json                       bool
	Workers                    int
	Image                      *Image
}

func (*Options) ImgStorage added in v2.4.0

func (o *Options) ImgStorage() string

func (*Options) WorkersRatio

func (o *Options) WorkersRatio(pct int) (nbWorkers int)

type View

type View struct {
	Width, Height int
	AspectRatio   float64
	PortraitOnly  bool
	Color         Color
}

Jump to

Keyboard shortcuts

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