handlers

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	proto.PageCaptureScreenshot | proto.PagePrintToPDF
}

type FileHandler

type FileHandler[T Config] interface {
	// SetConfig adds the config to the instance.
	SetConfig(config T) FileHandler[T]
	// SetFullPage sets the pages to be converted. If false, only the first page is selected.
	// Default is false.
	SetFullPage(fullPage bool) FileHandler[T]
	// GenerateFile converts a rod Page instance to a file.
	GenerateFile(page *rod.Page) (*fileinfo.Fileinfo, error)
}

FileHandler interface contains the methods used for page conversion.

Directories

Path Synopsis
Package pdf is used to generate PDFs from the rod Page instance.
Package pdf is used to generate PDFs from the rod Page instance.
Package screenshot is used to generate screenshots from the rod Page instance.
Package screenshot is used to generate screenshots from the rod Page instance.

Jump to

Keyboard shortcuts

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