Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedContentTypes = []string{
"application/pdf",
}
TODO: Support non-PDF file formats.
Functions ¶
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
Block is a holder for one or multiple lines of text.
type Line ¶
type Line struct {
// contains filtered or unexported fields
}
Line is a single line of text without newlines.
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
Page holds recognized elements on a single page.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func New ¶
func New(path string, tool ToolWrapper) *Parser
New creates a new mutool-based parser. mutool requires a regular and seekable file.
func (*Parser) ParsePages ¶
ParsePages uses mutool to parse a file and returns the page contents.
func (*Parser) RenderPage ¶
Click to show internal directories.
Click to hide internal directories.