From 1e84d9be144408bfdbb95582191158acd1805c74 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Sat, 10 Aug 2013 21:34:54 -0400 Subject: =?UTF-8?q?Added=20support=20for=20drawing=20curves=20and=20arcs?= =?UTF-8?q?=20with=20an=20example.=20This=20was=20adapted=20from=20the=20g?= =?UTF-8?q?eometric=20figures=20FPDF=20script=20by=20David=20Hern=C3=A1nde?= =?UTF-8?q?z=20Sanz,=20with=20a=20starter=20function=20provided=20by=20Ant?= =?UTF-8?q?hony=20Starks.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- def.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'def.go') 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 } -- cgit v1.2.1-24-ge1ad