pdf

package
v0.0.0-...-04ab0c9 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HtmlModels

type HtmlModels interface {
	HasHeaderOrFooterHtml() bool

	GetHeaderHtml() string
	SetHeaderHtml(html string)

	GetFooterHtml() string
	SetFooterHtml(html string)
}

type PdfService

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

func (*PdfService) PdfFromBundle

func (ps *PdfService) PdfFromBundle(bundle *bundles.Bundle, jsonModel string, templateEngine string) (io.Reader, error)

func (*PdfService) PdfFromHtml

func (ps *PdfService) PdfFromHtml(data *models.RenderData) (io.Reader, error)

func (*PdfService) PdfFromHtmlTemplate

func (ps *PdfService) PdfFromHtmlTemplate(templateData *models.RenderTemplateData) (io.Reader, error)

type PdfServiceAbstraction

type PdfServiceAbstraction interface {
	PdfFromHtml(data *models.RenderData) (io.Reader, error)
	PdfFromHtmlTemplate(templateData *models.RenderTemplateData) (io.Reader, error)
	PdfFromBundle(bundle *bundles.Bundle, jsonModel string, templateEngine string) (io.Reader, error)
}

func NewPdfService

func NewPdfService(requestctx context.Context) PdfServiceAbstraction

type TemplateModels

type TemplateModels interface {
	GetMainModel() any
	GetHeaderModel() any
	GetFooterModel() any
	HasHeaderOrFooterModel() bool
}

Jump to

Keyboard shortcuts

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