Documentation
¶
Index ¶
- func AddImagesFromMetaData(ctx context.Context, htmlContent string, ...) string
- func ExecuteTemplate(ctx context.Context, templateFile *template.Template, ...) (string, error)
- func GetHtmlPdf(ctx context.Context, params *GetHtmlPdfInput, ...) ([]byte, error)
- func PrefetchImages(ctx context.Context, data map[string]interface{}) map[string]interface{}
- type GetHtmlPdfInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddImagesFromMetaData ¶
func ExecuteTemplate ¶
func GetHtmlPdf ¶
func GetHtmlPdf(ctx context.Context, params *GetHtmlPdfInput, storeAdapter *templatestore.StorageAdapter) ([]byte, error)
Types ¶
type GetHtmlPdfInput ¶
type GetHtmlPdfInput struct {
TemplateRequest templatestore.GetTemplateRequest
Data []byte
ViewPort *browser_manager.ViewportConfig
PdfParams *proto.PagePrintToPDF
IsSinglePage bool
}
Click to show internal directories.
Click to hide internal directories.