diff options
author | Brigham Thompson <brigham.thompson@gmail.com> | 2019-08-11 20:52:54 -0700 |
---|---|---|
committer | Brigham Thompson <brigham.thompson@gmail.com> | 2019-08-11 20:52:54 -0700 |
commit | 7c5006543b654248bb1fb640703faf0a53f59f71 (patch) | |
tree | faaa9fedf9409273d10d8a819abfdbdf5e160c71 /fpdf_test.go | |
parent | 4e47058871098a8e32dff39b461760b280bccff0 (diff) |
adds RoundedRect per Issue #272
Diffstat (limited to 'fpdf_test.go')
-rw-r--r-- | fpdf_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fpdf_test.go b/fpdf_test.go index 63c28c5..08814e0 100644 --- a/fpdf_test.go +++ b/fpdf_test.go @@ -2639,3 +2639,16 @@ func ExampleUTF8CutFont() { // Output: // Successfully generated pdf/Fpdf_UTF8CutFont.pdf } + +func ExampleFpdf_RoundedRect() { + pdf := gofpdf.New("P", "mm", "A4", "") + pdf.AddPage() + pdf.SetFillColor(160, 160, 160) + pdf.SetLineWidth(0.5) + pdf.RoundedRect(70, 30, 68, 46, 20, "1234", "FD") + fileStr := example.Filename("Fpdf_RoundedRect") + err := pdf.OutputFileAndClose(fileStr) + example.Summary(err, fileStr) + // Output: + // Successfully generated pdf/Fpdf_RoundedRect.pdf +} |