Ejemplo n.º 1
0
// Parse will add a new page to the document and set the appropiate page
// settings.
func (b *AddPage) Parse(doc documents.Document) {
	doc.AddPage()
	doc.SetMargins(b.Margin.Left, b.Margin.Top, b.Margin.Right)
	doc.SetAutoPageBreak(true, b.Margin.Bottom)
}