gopdf

package
v0.0.0-...-590b00d Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: LGPL-2.1 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Writer

func Writer(w io.Writer, c *canvas.Canvas) error

Writer writes the canvas as a PDF file.

Types

type PDF

type PDF struct {
	*gopdf.GoPdf
	// contains filtered or unexported fields
}

func New

func New(width, height float64) PDF

NewPDF creates a portable document format renderer.

func (PDF) RenderImage

func (pdf PDF) RenderImage(img image.Image, m canvas.Matrix)

func (PDF) RenderPath

func (pdf PDF) RenderPath(path *canvas.Path, style canvas.Style, m canvas.Matrix)

func (PDF) RenderText

func (pdf PDF) RenderText(text *canvas.Text, m canvas.Matrix)

func (PDF) Size

func (pdf PDF) Size() (float64, float64)

Jump to

Keyboard shortcuts

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