Documentation
¶
Index ¶
- func ParseUnit(s string) float64
- type Acrobat
- type Agent
- type Area
- type Bind
- type Binder
- type Button
- type Caption
- type CheckButton
- type ChoiceList
- type Config
- type ConnectionSet
- type Data
- type Datasets
- type DateTimeEdit
- type Draw
- type ExData
- type Field
- type Font
- type Form
- type ImageEdit
- type ImageVal
- type LayoutContext
- type LayoutEngine
- type LayoutEngineImpl
- type Locale
- type LocaleSet
- type Log
- type Messaging
- type Node
- type NumericEdit
- type Occur
- type Para
- type Parser
- type ParserImpl
- type Present
- type Signature
- type Subform
- type Template
- type TextEdit
- type Trace
- type UI
- type Value
- type WsdlConnection
- type XsdConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Binder ¶
type Binder struct {
Form *Form
}
Binder handles the binding of data from Datasets to the Template.
type Button ¶
type Button struct {
Highlight string `xml:"highlight,attr"` // "inverted", "push", "outline"
}
type CheckButton ¶
type CheckButton struct {
Shape string `xml:"shape,attr"` // "square", "round"
}
type ChoiceList ¶
type ChoiceList struct {
Open string `xml:"open,attr"` // "userControl", "always", "multiSelect"
}
type ConnectionSet ¶
type ConnectionSet struct {
WsdlConnection []WsdlConnection `xml:"wsdlConnection"`
XsdConnection []XsdConnection `xml:"xsdConnection"`
}
type DateTimeEdit ¶
type DateTimeEdit struct{}
type Form ¶
type Form struct {
XMLName xml.Name `xml:"xdp"`
Config *Config `xml:"config"`
Template *Template `xml:"template"`
Datasets *Datasets `xml:"datasets"`
LocaleSet *LocaleSet `xml:"localeSet"`
ConnectionSet *ConnectionSet `xml:"connectionSet"`
}
Form represents the root of the XFA DOM. Note: This is a simplified representation. XFA is huge.
type LayoutContext ¶
type LayoutEngine ¶
LayoutEngine renders an XFA Form into PDF pages.
type LayoutEngineImpl ¶
type LayoutEngineImpl struct{}
func NewLayoutEngine ¶
func NewLayoutEngine() *LayoutEngineImpl
type Node ¶
func (*Node) UnmarshalXML ¶
type NumericEdit ¶
type NumericEdit struct{}
type Subform ¶
type Subform struct {
Name string `xml:"name,attr"`
Layout string `xml:"layout,attr"` // e.g., "tb" (top-to-bottom)
W string `xml:"w,attr"`
H string `xml:"h,attr"`
X string `xml:"x,attr"`
Y string `xml:"y,attr"`
Fields []Field `xml:"field"`
Subforms []Subform `xml:"subform"`
Draws []Draw `xml:"draw"`
Content []Area `xml:"area"`
Bind *Bind `xml:"bind"`
Occur *Occur `xml:"occur"`
}
type UI ¶
type UI struct {
TextEdit *TextEdit `xml:"textEdit"`
CheckButton *CheckButton `xml:"checkButton"`
ChoiceList *ChoiceList `xml:"choiceList"`
NumericEdit *NumericEdit `xml:"numericEdit"`
DateTimeEdit *DateTimeEdit `xml:"dateTimeEdit"`
ImageEdit *ImageEdit `xml:"imageEdit"`
Signature *Signature `xml:"signature"`
Button *Button `xml:"button"`
}
type Value ¶
type Value struct {
Text string `xml:"text"`
Integer string `xml:"integer"`
Decimal string `xml:"decimal"`
Float string `xml:"float"`
Boolean string `xml:"boolean"`
Date string `xml:"date"`
Time string `xml:"time"`
DateTime string `xml:"dateTime"`
Image *ImageVal `xml:"image"`
ExData *ExData `xml:"exData"`
}
type WsdlConnection ¶
type WsdlConnection struct {
Name string `xml:"name,attr"`
}
type XsdConnection ¶
Click to show internal directories.
Click to hide internal directories.