Documentation
¶
Overview ¶
verzettler converts a JSON file of key-value pairs into PDF flash cards.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildFlashCardsPDF ¶
func BuildFlashCardsPDF(params FlashCardParams) error
BuildFlashCardsPDF takes a map of word pairs, a path to store the resulting PDF, the path to a font file (TTF), and renders a PDF of flash cards.
func DistributeWords ¶
DistributeWords renders the given page's words on a PDF.
Types ¶
type FlashCardParams ¶
type FlashCardParams struct {
Rows int
Cols int
FontSize int
FontPath string
InputPath string
OutputPath string
}
FlashCardParams contains all the meta parameters needed to generate a flash cards PDF from a JSON input file.
func ParseCommandLineArguments ¶
func ParseCommandLineArguments(cmdName string) FlashCardParams
Click to show internal directories.
Click to hide internal directories.