pdfrender

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format string
const (
	JPEG Format = "jpeg"
	PNG  Format = "png"
)

type Options

type Options struct {
	DPI         int
	Format      Format
	JPEGQuality int
	PageIndexes []int
}

func Validate

func Validate(options Options) (Options, error)

type Renderer

type Renderer interface {
	PageCount(context.Context, string) (int, error)
	Render(context.Context, string, string, Options) (Result, error)
	Close() error
}

type Result

type Result struct {
	Files     []string
	PageCount int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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