summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@gmail.com>2015-07-10 17:04:16 -0400
committerKurt Jung <kurt.w.jung@gmail.com>2015-07-10 17:04:16 -0400
commit7754652f6723c384486cbb7603ee3b62d7342376 (patch)
tree3f55d905d8c791a933fafc71e4f8351c7e57fd1e /README.md
parent9382b925ba21eecc97d70a4ce5388d70d40ff663 (diff)
Autogenerate README
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 0f2f50f..530631d 100644
--- a/README.md
+++ b/README.md
@@ -51,14 +51,14 @@ go get -u github.com/jung-kurt/gofpdf
```
##Quick Start
-The following Go code generates a simple PDF and writes it to standard output.
+The following Go code generates a simple PDF file.
```
pdf := gofpdf.New("P", "mm", "A4", "")
pdf.AddPage()
pdf.SetFont("Arial", "B", 16)
pdf.Cell(40, 10, "Hello, world")
-pdf.Output(os.Stdout)
+err := pdf.OutputFileAndClose("hello.pdf")
```
See the functions in the fpdf_test.go file (shown as examples in this