summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2018-01-08 15:32:13 -0500
committerKurt <kurt.w.jung@gmail.com>2018-01-08 15:32:13 -0500
commitd65c2335e8ec3db6c87c9e23aa2ff329da57e182 (patch)
treec8a5b4c1031393270a97bab1c1d347fcb4bc2fd5
parent2b7dc4c2c0c37ed765386c79b37b829e49c1c912 (diff)
Acknowledge David Fish's generic alias replacement contribution; change test name so that example hang's off of RegisterAlias method in documentation
-rw-r--r--README.md6
-rw-r--r--doc.go6
-rw-r--r--fpdf_test.go6
3 files changed, 11 insertions, 7 deletions
diff --git a/README.md b/README.md
index d0cd77c..cc6b459 100644
--- a/README.md
+++ b/README.md
@@ -217,8 +217,10 @@ basic HTML functionality with aligned text. Kent Quirk implemented
backwards-compatible support for reading DPI from images that support it, and
for setting DPI manually and then having it properly taken into account when
calculating image size. Paulo Coutinho provided support for static embedded
-fonts. Dan Meyers added support for embedded JavaScript. Bruno Michel has
-provided valuable assistance with the code.
+fonts. Dan Meyers added support for embedded JavaScript. David Fish added a
+generic alias-replacement function to enable, among other things, Table of
+Contents functionality. Bruno Michel has provided valuable assistance with the
+code.
## Roadmap
diff --git a/doc.go b/doc.go
index 4c63289..598e13c 100644
--- a/doc.go
+++ b/doc.go
@@ -230,8 +230,10 @@ basic HTML functionality with aligned text. Kent Quirk implemented
backwards-compatible support for reading DPI from images that support it, and
for setting DPI manually and then having it properly taken into account when
calculating image size. Paulo Coutinho provided support for static embedded
-fonts. Dan Meyers added support for embedded JavaScript. Bruno Michel has
-provided valuable assistance with the code.
+fonts. Dan Meyers added support for embedded JavaScript. David Fish added a
+generic alias-replacement function to enable, among other things, Table of
+Contents functionality. Bruno Michel has provided valuable assistance with the
+code.
Roadmap
diff --git a/fpdf_test.go b/fpdf_test.go
index c7d843a..c7cd582 100644
--- a/fpdf_test.go
+++ b/fpdf_test.go
@@ -2063,7 +2063,7 @@ func ExampleFpdf_AddSpotColor() {
// This example demonstrates how to use `RegisterAlias` to create a table of
// contents.
-func ExampleFpdf_TableOfContents() {
+func ExampleFpdf_RegisterAlias() {
pdf := gofpdf.New("P", "mm", "A4", "")
pdf.SetFont("Arial", "", 12)
pdf.AddPage()
@@ -2085,9 +2085,9 @@ func ExampleFpdf_TableOfContents() {
pdf.Write(10, fmt.Sprintf("Section %d", i))
}
- fileStr := example.Filename("Fpdf_TableOfContents")
+ fileStr := example.Filename("Fpdf_RegisterAlias")
err := pdf.OutputFileAndClose(fileStr)
example.Summary(err, fileStr)
// Output:
- // Successfully generated pdf/Fpdf_TableOfContents.pdf
+ // Successfully generated pdf/Fpdf_RegisterAlias.pdf
}