scribe

package
v0.0.0-...-f62386e Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scribe

type Scribe struct {
	// contains filtered or unexported fields
}

Scribe provides convenient functions to write content to a pdf document. All methods on this type should reset to the default formatting before returning.

func NewCoopScribe

func NewCoopScribe() *Scribe

NewCoopScribe creates a new scribe with the coop header and footer images.

func NewScribe

func NewScribe() *Scribe

NewScribe creates a new Scribe struct.

func (*Scribe) FormattedLine

func (s *Scribe) FormattedLine(content, format string)

FormattedLine adds a line to the document with specific formatting.

func (*Scribe) Line

func (s *Scribe) Line(content string)

Line adds a line of text to the document.

func (s *Scribe) Link(content, link string)

Link adds a link to the document.

func (*Scribe) Paragraph

func (s *Scribe) Paragraph(content string)

Paragraph adds a paragraph to the document.

func (*Scribe) Save

func (s *Scribe) Save(name string)

Save writes the document to the root folder.

func (*Scribe) Spacer

func (s *Scribe) Spacer(multiplier float64)

Spacer adds a space to the document.

func (*Scribe) Title

func (s *Scribe) Title(content string, multiplier float64)

Title adds a title to the document.

Jump to

Keyboard shortcuts

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