Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorExtraction = errors.New("image extraction failed")
Functions ¶
This section is empty.
Types ¶
type ConverterFactory ¶
type ConverterFactory struct {
// contains filtered or unexported fields
}
func NewConverter ¶
func NewConverter(extractor ImageConverter, rasterizer ImageConverter, counter PageCounter) *ConverterFactory
func (*ConverterFactory) Extractor ¶
func (c *ConverterFactory) Extractor() ImageConverter
func (*ConverterFactory) Rasterizer ¶
func (c *ConverterFactory) Rasterizer() ImageConverter
type ImageConverter ¶
type ImageConverter interface {
ToImages(ctx context.Context, data io.ReadSeeker, writer ImageSender) (int, error)
}
type ImageSender ¶
type PageCounter ¶
type PageCounter interface {
Count(data io.ReadSeeker) (int, error)
}
Click to show internal directories.
Click to hide internal directories.