Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// Configuration
DefaultFont string
DefaultFontSize float64
LineHeight float64 // Multiplier, e.g., 1.2
Margins Margins
// contains filtered or unexported fields
}
Engine handles the layout and rendering of structured content (Markdown/HTML) into PDF pages.
func NewEngine ¶
func NewEngine(b builder.PDFBuilder) *Engine
NewEngine creates a new layout engine.
func (*Engine) RenderHTML ¶
RenderHTML renders an HTML string to the PDF.
func (*Engine) RenderMarkdown ¶
RenderMarkdown renders a markdown string to the PDF using goldmark.
func (*Engine) SetPageSize ¶
SetPageSize sets the dimensions for new pages.
Click to show internal directories.
Click to hide internal directories.