Documentation ¶
Overview ¶
Package signature implements creation of signatures.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New is responsible to create an instance of a Signature.
Example ¶
ExampleNew demonstrates how to create a signature component.
m := maroto.New() signature := signature.New("signature label") col := col.New(12).Add(signature) m.AddRow(10, col) // generate document
Output:
func NewAutoRow ¶ added in v2.1.0
NewRow is responsible to create an instance of a Signature wrapped in a automatic Row.
func NewCol ¶
NewCol is responsible to create an instance of a Signature wrapped in a Col.
Example ¶
ExampleNewCol demonstrates how to create a signature component wrapped into a column.
m := maroto.New() signatureCol := signature.NewCol(12, "signature label") m.AddRow(10, signatureCol) // generate document
Output:
func NewRow ¶
NewRow is responsible to create an instance of a Signature wrapped in a Row.
Example ¶
ExampleNewRow demonstrates how to create a signature component wrapped into a row.
m := maroto.New() signatureRow := signature.NewRow(10, "signature label") m.AddRows(signatureRow) // generate document
Output:
Types ¶
type Signature ¶
type Signature struct {
// contains filtered or unexported fields
}
func (*Signature) GetHeight ¶ added in v2.1.0
GetHeight returns the height that the signature will have in the PDF
func (*Signature) GetStructure ¶
GetStructure returns the Structure of a Signature.