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. |
Click to show internal directories.
Click to hide internal directories.