pdf

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RenderOpts

type RenderOpts struct {
	// The width of the PDF page in mm
	Width float64
	// The height of the PDF page in mm
	Height float64
}

RenderOpts contains options for rendering a PDF

type Renderer

type Renderer interface {
	Render(ctx context.Context, html io.Reader, pdf io.Writer, opts RenderOpts) error
}

Renderer is an interface for rendering PDFs from HTML content

func NewRodRenderer

func NewRodRenderer(chromium string) Renderer

NewRodRenderer creates a new rodRenderer

Jump to

Keyboard shortcuts

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