diff options
author | Stani <spe.stani.be@gmail.com> | 2015-07-06 14:53:34 +0200 |
---|---|---|
committer | Stani <spe.stani.be@gmail.com> | 2015-07-06 14:53:34 +0200 |
commit | 0739cc03f4ea4bd99bf3d695b8574a19dfdaccbd (patch) | |
tree | 8c78215d48a288e35fa7346e39d63b99380163ba | |
parent | c58d8b0f8bf2b0e43c107adb8dee06fdc7b3deb6 (diff) |
update tutorial 30 for ArcTo
-rw-r--r-- | fpdf_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
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() |