Skip to content

Commit

Permalink
Added Paragraph.Text function returning text content
Browse files Browse the repository at this point in the history
  • Loading branch information
llonchj committed Feb 15, 2018
1 parent c9f1726 commit 7ae1175
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pdf/creator/paragraph.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ func (p *Paragraph) SetText(text string) {
p.text = text
}

// Text sets the text content of the Paragraph.
func (p *Paragraph) Text() string {
return p.text
}

// SetEnableWrap sets the line wrapping enabled flag.
func (p *Paragraph) SetEnableWrap(enableWrap bool) {
p.enableWrap = enableWrap
Expand Down

0 comments on commit 7ae1175

Please sign in to comment.