itopdf

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongImageType error = errors.New("wrong image type")
)

Functions

This section is empty.

Types

type IToPDF

type IToPDF interface {
	AddImage(path string) error
	Save(path string) error

	// WalkDir uses AddImage and Save methods to iterate over a directory and add all images in it to pdf.
	// iterCallback - function that takes full path of an image that is being saved
	WalkDir(dir string, iterCallback func(path string)) error
}

func NewInstance

func NewInstance() (pdf IToPDF)

Jump to

Keyboard shortcuts

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