pdf

package
v0.0.0-...-249b389 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pdf implements the builder for PDF files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PDFBuilder

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

PDFBuilder struct.

func (*PDFBuilder) GenerateFile

func (p *PDFBuilder) GenerateFile(page *rod.Page) ([]byte, error)

GenerateFile converts a rod Page instance to a PDF file.

func (*PDFBuilder) SetFullPage

func (p *PDFBuilder) SetFullPage(fullPage bool) generator.Generator

SetFullPage sets the pages to be converted. If false, only the first page is selected.

Jump to

Keyboard shortcuts

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