summaryrefslogtreecommitdiff
path: root/fpdf.go
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2019-04-10 08:06:56 -0400
committerKurt <kurt.w.jung@gmail.com>2019-04-10 08:06:56 -0400
commitadea43f9f1e4324cde55328c74e0e1a7af9aaf73 (patch)
tree6911238e7df9976ec0fe32c96a5eaa2549bc5e86 /fpdf.go
parent83024250a9829a15db59ff414a36984300c98771 (diff)
Add watermark example
Diffstat (limited to 'fpdf.go')
-rw-r--r--fpdf.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/fpdf.go b/fpdf.go
index adc510b..7294df7 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -430,6 +430,11 @@ func (f *Fpdf) SetHeaderFuncMode(fnc func(), homeMode bool) {
// headers. fnc will typically be a closure that has access to the Fpdf
// instance and other document generation variables.
//
+// A header is a convenient place to put background content that repeats on
+// each page such as a watermark. When this is done, remember to reset the X
+// and Y values so the normal content begins where expected. Including a
+// watermark on each page is demonstrated in the example for TransformRotate.
+//
// This method is demonstrated in the example for AddPage().
func (f *Fpdf) SetHeaderFunc(fnc func()) {
f.headerFnc = fnc