Image inclusion
To include images in your document, a few steps are necessary:
to load an image object
type Imagefile struct {
Format string
NumberOfPages int
PageSizes map[int]map[string]map[string]float64
Filename string
ScaleX float64
ScaleY float64
W int
H int
Box string
PageNumber int
}
You can create an image node from this image object with
Optionally set the width and the height:
Once you have this image node, put it in a vlist node by calling
and place it on the page with