bootstrap

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func BuildPipeline

func BuildPipeline(opts Options) (imageparser.ImagePipeline, error)

Types

type CropStyle

type CropStyle uint8
const (
	CropBasic CropStyle = iota
	CropNormal
	CropAggressive
)

type FileWriterWrapper

type FileWriterWrapper struct {
	outdirwriter.WriterHandle
}

func NewFileWriterWrapper

func NewFileWriterWrapper(extractDir string) (*FileWriterWrapper, error)

func (FileWriterWrapper) Close

func (f FileWriterWrapper) Close() error

func (FileWriterWrapper) Process

func (f FileWriterWrapper) Process(filename string, data []byte)

func (FileWriterWrapper) Shutdown

func (f FileWriterWrapper) Shutdown() error

type ImageFormat

type ImageFormat string

type Options

type Options struct {
	SourceFolder  string
	OutputFolder  string
	TargetDevice  deviceprof.DeviceType
	CropLevel     CropStyle
	OutputFormat  OutputFormat
	ReadDirection ReadDirection
	RotateImage   bool
	StretchImage  bool
	AddMargins    bool
	ColoredPages  bool
	ImageFormat   ImageFormat
	ImageQuality  uint8
}

func (Options) AllowStretch

func (opts Options) AllowStretch() bool

type OutputFormat

type OutputFormat string
const (
	FormatEpub   OutputFormat = "epub"
	FormatMobi   OutputFormat = "mobi"
	FormatFolder OutputFormat = "folder"
)

type ReadDirection

type ReadDirection string

Jump to

Keyboard shortcuts

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