writer

package
v0.0.0-...-118bd4e Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package writer creates a pdf file and takes care of the formatting of the tokens.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PdfWriter

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

func NewWriter

func NewWriter(lines [][]*parser.Token) PdfWriter

NewWriter takes the parsed list of list of tokens returns a PdfWriter.

func (*PdfWriter) Export

func (p *PdfWriter) Export(filename string)

Export saves the PdfWriter object on disk as a pdf document.

func (*PdfWriter) ExportWriter

func (p *PdfWriter) ExportWriter(w io.Writer)

Export saves the PdfWriter object out to the provided io.Writer.

Jump to

Keyboard shortcuts

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