generator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChromedpGenerator

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

ChromedpGenerator uses Chromedp and chromium to generate PDFs

func NewChromedpGenerator

func NewChromedpGenerator(timeout int, tempDir string) *ChromedpGenerator

func (ChromedpGenerator) RenderHTMLFile

func (s ChromedpGenerator) RenderHTMLFile(htmlFile string, waitFor string) (string, error)

RenderHTMLFile render PDF from html file

type Generator

type Generator interface {
	RenderHTMLFile(templateFile string, sel string) (string, error)
}

Generator interface

Jump to

Keyboard shortcuts

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