pdf

package
v0.0.0-...-ecf8bde Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2017 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(path string, o Options) api.Printer

New creates a new PDF Printer

Types

type Options

type Options struct {
	Card config.Card
	Font config.Font
	Size string // A[0-6]
}

Options of a flashcard PDF

type PDF

type PDF struct {
	Options
	File string
}

PDF implements api.Printer

func (*PDF) Print

func (p *PDF) Print(cards map[string]string) error

Print saves cards in a PDF file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL