summaryrefslogtreecommitdiff
path: root/fpdf.go
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@code.google.com>2013-11-16 06:17:00 -0500
committerKurt Jung <kurt.w.jung@code.google.com>2013-11-16 06:17:00 -0500
commit711954a6e56ea7359309d8853a2fb0fc3b1aa657 (patch)
treed334309d2f7d6b03d8354fe779b52fb5e94f712e /fpdf.go
parent807441a526f9094d3c099d422542252a4a0ec964 (diff)
Clarify what empty string does in call to AliasNbPages.
Diffstat (limited to 'fpdf.go')
-rw-r--r--fpdf.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdf.go b/fpdf.go
index 18fabc4..c126fbc 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -410,8 +410,8 @@ func (f *Fpdf) SetCreator(creatorStr string, isUTF8 bool) {
}
// AliasNbPages defines an alias for the total number of pages. It will be
-// substituted as the document is closed. This method is demonstrated in
-// tutorial 2.
+// substituted as the document is closed. An empty string is replaced with the
+// string "{nb}". This method is demonstrated in tutorial 2.
func (f *Fpdf) AliasNbPages(aliasStr string) {
if aliasStr == "" {
aliasStr = "{nb}"
@@ -1400,7 +1400,7 @@ func (f *Fpdf) Bookmark(txtStr string, level int, y float64) {
}
// Text prints a character string. The origin (x, y) is on the left of the
-// first character at the baseline. This method allows to place a string
+// first character at the baseline. This method permits a string to be placed
// precisely on the page, but it is usually easier to use Cell(), MultiCell()
// or Write() which are the standard methods to print text.
func (f *Fpdf) Text(x, y float64, txtStr string) {
@@ -1589,7 +1589,7 @@ func (f *Fpdf) Cellf(w, h float64, fmtStr string, args ...interface{}) {
f.CellFormat(w, h, sprintf(fmtStr, args...), "", 0, "L", false, 0, "")
}
-// MultiCell allows printing text with line breaks. They can be automatic (as
+// MultiCell supports printing text with line breaks. They can be automatic (as
// soon as the text reaches the right border of the cell) or explicit (via the
// \n character). As many cells as necessary are output, one below the other.
//