Versions in this module Expand all Collapse all v1 v1.18.1 Aug 7, 2021 Changes in this version + var ErrCreateContext = errors.New("fitz: cannot create context") + var ErrCreatePixmap = errors.New("fitz: cannot create pixmap") + var ErrLoadOutline = errors.New("fitz: cannot load outline") + var ErrNeedsPassword = errors.New("fitz: document needs password") + var ErrNoSuchFile = errors.New("fitz: no such file") + var ErrOpenDocument = errors.New("fitz: cannot open document") + var ErrOpenMemory = errors.New("fitz: cannot open memory") + var ErrPageMissing = errors.New("fitz: page missing") + var ErrPixmapSamples = errors.New("fitz: cannot get pixmap samples") + type Document struct + func New(filename string) (f *Document, err error) + func NewFromMemory(b []byte) (f *Document, err error) + func NewFromReader(r io.Reader) (f *Document, err error) + func (f *Document) Close() error + func (f *Document) HTML(pageNumber int, header bool) (string, error) + func (f *Document) Image(pageNumber int) (image.Image, error) + func (f *Document) ImageDPI(pageNumber int, dpi float64) (image.Image, error) + func (f *Document) ImagePNG(pageNumber int, dpi float64) ([]byte, error) + func (f *Document) Metadata() map[string]string + func (f *Document) NumPage() int + func (f *Document) SVG(pageNumber int) (string, error) + func (f *Document) Text(pageNumber int) (string, error) + func (f *Document) ToC() ([]Outline, error) + type Outline struct + Level int + Page int + Title string + Top float64 + URI string v1.13.0 Mar 16, 2021