Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertPDFToImages ¶
func ConvertPDFToImages(pdf []byte, opts ConvertOptions) ([]image.Image, error)
ConvertPDFToImages converts a PDF file to a []image.Image. MuPdf is not thread safe. There is no point in goroutines here.
Types ¶
type ConvertOptions ¶
type ConvertOptions struct {
// MaxPages limits the number of pages to convert (0 = all pages)
MaxPages int
// SkipFirstNPages skips the first N pages
SkipFirstNPages int
// DPI is the resolution of the image
DPI float64
}
func DefaultOptions ¶
func DefaultOptions() ConvertOptions
Click to show internal directories.
Click to hide internal directories.