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)
Click to show internal directories.
Click to hide internal directories.