render

package
v0.0.0-...-73e6ce1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: AGPL-3.0, AGPL-3.0-only Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageDevice

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

ImageDevice is used to render PDF pages to image targets.

func NewImageDevice

func NewImageDevice() *ImageDevice

NewImageDevice returns a new image device.

func (*ImageDevice) Render

func (d *ImageDevice) Render(page *model.PdfPage) (image.Image, error)

Render converts the specified PDF page into an image and returns the result.

func (*ImageDevice) RenderToPath

func (d *ImageDevice) RenderToPath(page *model.PdfPage, outputPath string) error

RenderToPath converts the specified PDF page into an image and saves the result at the specified location.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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