htmltopdf

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertFromURL

func ConvertFromURL(ctx context.Context, url, savepath string) error

func MinioExport

func MinioExport(ctx context.Context, minioClient *minio.Client, content []byte, savepath string, options ...PDFOptions) error

func NFSExport

func NFSExport(ctx context.Context, content []byte, savepath string, nfspath string, options ...PDFOptions) error

func NFSMinioExport

func NFSMinioExport(ctx context.Context, minioClient *minio.Client, content []byte, savepath string, nfspath string, options ...PDFOptions) error

Types

type PDFOptions added in v0.17.1

type PDFOptions struct {
	MarginTop    uint
	MarginBottom uint
	MarginLeft   uint
	MarginRight  uint
	PaddingLeft  uint
	HeaderPath   string
	FooterPath   string
}

Jump to

Keyboard shortcuts

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