From 9f16b52334238f446dbafcbe06ffff0637403361 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Mon, 25 Aug 2014 17:11:35 -0400 Subject: Additional comment about tutorials --- doc.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc.go') diff --git a/doc.go b/doc.go index d62a20d..0a394a4 100644 --- a/doc.go +++ b/doc.go @@ -135,6 +135,13 @@ Tutorials A side effect of running "go test" is the production of the tutorial PDFs. These can be found in the gofpdf/pdf directory after the tests complete. +Please note that these tutorials run in the context of a test. In order run an +example as a standalone application, you'll need to examine fpdf_test.go for +some helper routines, for example docWriter and strDelimit. In particular, +docWriter is used as an argument to OutputAndClose in order to reduce the +boilerplate in each example. In practice, you may be better served by calling +OutputFileAndClose(). + Nonstandard Fonts Nothing special is required to use the standard PDF fonts (courier, helvetica, -- cgit v1.2.1-24-ge1ad