Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageFormat ¶
type ImageFormat string
const ( PNG ImageFormat = "png" JPEG ImageFormat = "jpg" )
func (ImageFormat) MimeType ¶
func (f ImageFormat) MimeType() (string, error)
type ImageOptions ¶
type ImageOptions struct {
Format ImageFormat
Quality int
DPI int
}
func DefaultImageOptions ¶
func DefaultImageOptions() ImageOptions
type PDFDocument ¶
type PDFDocument struct {
// contains filtered or unexported fields
}
func OpenPDF ¶
func OpenPDF(path string) (*PDFDocument, error)
func (*PDFDocument) Close ¶
func (d *PDFDocument) Close() error
func (*PDFDocument) ExtractAllPages ¶
func (d *PDFDocument) ExtractAllPages() ([]Page, error)
func (*PDFDocument) ExtractPage ¶
func (d *PDFDocument) ExtractPage(pageNum int) (Page, error)
func (*PDFDocument) PageCount ¶
func (d *PDFDocument) PageCount() int
Click to show internal directories.
Click to hide internal directories.