summaryrefslogtreecommitdiff
path: root/def.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 /def.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 'def.go')
-rw-r--r--def.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/def.go b/def.go
index 7136dee..6d0e83a 100644
--- a/def.go
+++ b/def.go
@@ -20,7 +20,9 @@ import (
"bytes"
)
-const FPDF_VERSION = "1.7"
+const (
+ FPDF_VERSION = "1.7"
+)
type sizeType struct {
wd, ht float64
@@ -118,6 +120,8 @@ type Fpdf struct {
aliasNbPagesStr string // alias for total number of pages
pdfVersion string // PDF version number
fontDirStr string // location of font definition files
+ capStyle int // line cap style: butt 0, round 1, square 2
+ joinStyle int // line segment join style: miter 0, round 1, bevel 2
err error // Set if error occurs during life cycle of instance
}