Documentation
¶
Overview ¶
Package reader reads the tokens of an RTF file into the shared document model: the group stack with its character and paragraph properties, the destinations, and what each one becomes.
Index ¶
Constants ¶
const ( // WarnUnreadContent: the file holds content of a kind this version // does not read (an equation); the message names it. WarnUnreadContent = "rtf.unread_content" // WarnControlCharsRemoved: control characters with no meaning as text // were removed. WarnControlCharsRemoved = "rtf.control_characters_removed" )
Warning codes of this library.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Opts *gofastcore.Options
MaxGroupDepth int // groups nested deeper are skipped
Decode *gofastcore.DecodeBudget
Text *gofastcore.TextBudget
// DropBody: the body gives no blocks, because the document's content
// was read another way (the HTML it encapsulates).
DropBody bool
}
Config is what the reader is told besides the input.