Documentation
¶
Index ¶
- func ConvertHTMLToText(html string) string
- type Slide
- type Template
- func (t *Template) Apply(data map[string]any) error
- func (t *Template) Close() error
- func (t *Template) ProcessLoops(data map[string]any) error
- func (t *Template) Save(path string) error
- func (t *Template) SetTextValue(placeholder, value string) error
- func (t *Template) SetTextValueHTML(placeholder, htmlValue string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertHTMLToText ¶
ConvertHTMLToText converts basic HTML to plain text for PowerPoint Strips HTML tags and preserves content
Types ¶
type Slide ¶
type Slide struct {
// contains filtered or unexported fields
}
Slide represents a slide in the PPTX file
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
Template represents a PPTX document template
func (*Template) ProcessLoops ¶
ProcessLoops handles {#arrayName}...{/arrayName} in slides Duplicates slides for each array element
func (*Template) SetTextValue ¶
SetTextValue replaces a placeholder in text runs with a value
func (*Template) SetTextValueHTML ¶
SetTextValueHTML replaces a placeholder with HTML content (basic support)
Click to show internal directories.
Click to hide internal directories.