letterhead

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "Letterhead"

Variables

This section is empty.

Functions

This section is empty.

Types

type Letterhead

type Letterhead struct {
	metadata.MetadataInfo
	XMLName   xml.Name `xml:"Letterhead"`
	Xmlns     string   `xml:"xmlns,attr"`
	Available struct {
		Text string `xml:",chardata"`
	} `xml:"available"`
	BackgroundColor struct {
		Text string `xml:",chardata"`
	} `xml:"backgroundColor"`
	BodyColor struct {
		Text string `xml:",chardata"`
	} `xml:"bodyColor"`
	BottomLine struct {
		Color struct {
			Text string `xml:",chardata"`
		} `xml:"color"`
		Height struct {
			Text string `xml:",chardata"`
		} `xml:"height"`
	} `xml:"bottomLine"`
	Description *struct {
		Text string `xml:",chardata"`
	} `xml:"description"`
	Footer struct {
		BackgroundColor struct {
			Text string `xml:",chardata"`
		} `xml:"backgroundColor"`
		Height struct {
			Text string `xml:",chardata"`
		} `xml:"height"`
		HorizontalAlignment struct {
			Text string `xml:",chardata"`
		} `xml:"horizontalAlignment"`
		VerticalAlignment struct {
			Text string `xml:",chardata"`
		} `xml:"verticalAlignment"`
	} `xml:"footer"`
	Header struct {
		BackgroundColor struct {
			Text string `xml:",chardata"`
		} `xml:"backgroundColor"`
		Height struct {
			Text string `xml:",chardata"`
		} `xml:"height"`
		HorizontalAlignment struct {
			Text string `xml:",chardata"`
		} `xml:"horizontalAlignment"`
		Logo *struct {
			Text string `xml:",chardata"`
		} `xml:"logo"`
		VerticalAlignment struct {
			Text string `xml:",chardata"`
		} `xml:"verticalAlignment"`
	} `xml:"header"`
	MiddleLine struct {
		Color struct {
			Text string `xml:",chardata"`
		} `xml:"color"`
		Height struct {
			Text string `xml:",chardata"`
		} `xml:"height"`
	} `xml:"middleLine"`
	Name struct {
		Text string `xml:",chardata"`
	} `xml:"name"`
	TopLine struct {
		Color struct {
			Text string `xml:",chardata"`
		} `xml:"color"`
		Height struct {
			Text string `xml:",chardata"`
		} `xml:"height"`
	} `xml:"topLine"`
}

func Open

func Open(path string) (*Letterhead, error)

func (*Letterhead) SetMetadata

func (c *Letterhead) SetMetadata(m metadata.MetadataInfo)

func (*Letterhead) Type

func (c *Letterhead) Type() metadata.MetadataType

Jump to

Keyboard shortcuts

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