summaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@code.google.com>2013-08-10 21:34:54 -0400
committerKurt Jung <kurt.w.jung@code.google.com>2013-08-10 21:34:54 -0400
commit1e84d9be144408bfdbb95582191158acd1805c74 (patch)
treef3c39afe9b080972984eb1b065ac8b9adcbaf3d5 /doc.go
parentfc5c7916f175f0301b8e103a72825c7db1c79186 (diff)
Added support for drawing curves and arcs with an example. This was adapted
from the geometric figures FPDF script by David Hernández Sanz, with a starter function provided by Anthony Starks. Anthony Starks also made a case for not closing the io.Writer after it is used to produce a document. An additional method, OutputAndClose, was added so that the library can close the writer if desired.
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc.go b/doc.go
index f99773d..339534b 100644
--- a/doc.go
+++ b/doc.go
@@ -19,7 +19,8 @@ Package gofpdf implements a PDF document generator.
This package's code and documentation are closely derived from the FPDF library
created by Olivier Plathey, and a number of font and image resources are copied
-directly from it. The FPDF website is http://www.fpdf.org/.
+directly from it. Drawing support is adapted from the FPDF geometric figures
+script by David Hernández Sanz. The FPDF website is http://www.fpdf.org/.
Features
@@ -41,6 +42,8 @@ Features
• Page compression
+• Drawing support (lines, Bézier curves, arcs, ellipses)
+
gofpdf has no dependencies other than the Go standard library. All tests pass
on Linux, Mac and Windows platforms. Like FPDF version 1.7, from which gofpdf
is derived, this package does not yet support UTF-8 source text. gofpdf is