Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache manages rendered PDF page images.
func (*Cache) GetPage ¶
func (c *Cache) GetPage(pdfPath string, fileID int, pageNum int) (cachedPath string, mimeType string, err error)
GetPage returns the path to a cached page image, rendering if necessary. pageNum is 0-indexed.
func (*Cache) Invalidate ¶
Invalidate removes all cached pages for a file.
Click to show internal directories.
Click to hide internal directories.