renderer

package
v0.0.0-...-f73b261 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddImagesFromMetaData

func AddImagesFromMetaData(ctx context.Context, htmlContent string, unmarshaledData map[string]interface{}) string

func ExecuteTemplate

func ExecuteTemplate(ctx context.Context, templateFile *template.Template, data map[string]interface{}) (string, error)

func GetHtmlPdf

func GetHtmlPdf(ctx context.Context, params *GetHtmlPdfInput, storeAdapter *templatestore.StorageAdapter) ([]byte, error)

func PrefetchImages

func PrefetchImages(ctx context.Context, data map[string]interface{}) map[string]interface{}

Prefetch images and replace their URLs with data URIs

Types

type GetHtmlPdfInput

type GetHtmlPdfInput struct {
	TemplateRequest templatestore.GetTemplateRequest
	Data            []byte
	ViewPort        *browser_manager.ViewportConfig
	PdfParams       *proto.PagePrintToPDF
	IsSinglePage    bool
}

Jump to

Keyboard shortcuts

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