From 0739cc03f4ea4bd99bf3d695b8574a19dfdaccbd Mon Sep 17 00:00:00 2001 From: Stani Date: Mon, 6 Jul 2015 14:53:34 +0200 Subject: update tutorial 30 for ArcTo --- fpdf_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'fpdf_test.go') diff --git a/fpdf_test.go b/fpdf_test.go index 31faa6f..9ac1e18 100644 --- a/fpdf_test.go +++ b/fpdf_test.go @@ -20,7 +20,6 @@ import ( "bufio" "bytes" "fmt" - "github.com/jung-kurt/gofpdf" "io" "io/ioutil" "math" @@ -28,6 +27,8 @@ import ( "os" "path/filepath" "strings" + + "github.com/jung-kurt/gofpdf" ) // Absolute path needed for gocov tool; relative OK for test @@ -1465,7 +1466,8 @@ func ExampleFpdf_tutorial30() { pdf := gofpdf.New("P", "mm", "A4", "") pdf.AddPage() pdf.MoveTo(20, 20) - pdf.LineTo(190, 20) + pdf.LineTo(170, 20) + pdf.ArcTo(170, 40, 20, 20, 0, 90, 0) pdf.CurveTo(190, 100, 105, 100) pdf.CurveBezierCubicTo(20, 100, 105, 200, 20, 200) pdf.ClosePath() -- cgit v1.2.1-24-ge1ad