topdf

package
v0.0.0-...-e520354 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePdf

func CreatePdf(ctx context.Context, params ChromeParameters) ([]byte, error)

CreatePdf is the main method to create PDF using Chrome Dev Protocol given a URI

Types

type ChromeParameters

type ChromeParameters struct {
	TargetURL       string
	Headers         map[string]string
	Orientation     string
	PrintBackground bool
	MarginTop       float64
	MarginRight     float64
	MarginBottom    float64
	MarginLeft      float64
}

Jump to

Keyboard shortcuts

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