summaryrefslogtreecommitdiff
path: root/fpdf_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'fpdf_test.go')
-rw-r--r--fpdf_test.go13
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
+}