summaryrefslogtreecommitdiff
path: root/fpdf_test.go
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2019-03-09 07:35:53 -0500
committerKurt <kurt.w.jung@gmail.com>2019-03-09 07:35:53 -0500
commit028e9cd207bf37e1d0e2b72f37b5e3bd6abf86a2 (patch)
treeb1054a42d7471fa0b05e69affb93ec9acf39bfbb /fpdf_test.go
parent6b7c17b5b904039a423e8df6e51875702bae5763 (diff)
parent4d91079d1d295574ef183a71fa4276c1724f04ed (diff)
Merge branch 'joewestcott-graphics-state-checks'
Diffstat (limited to 'fpdf_test.go')
-rw-r--r--fpdf_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/fpdf_test.go b/fpdf_test.go
index 34b824c..92ac3d9 100644
--- a/fpdf_test.go
+++ b/fpdf_test.go
@@ -2448,6 +2448,8 @@ func ExampleFpdf_SetFillColor() {
pdf := gofpdf.New("P", "mm", "A4", "")
pdf.AddPage()
+ pdf.SetFont("Arial", "", 12)
+
pdf.TransformBegin()
pdf.TransformTranslateX(5)
pdf.TransformTranslateY(5)
@@ -2455,7 +2457,11 @@ func ExampleFpdf_SetFillColor() {
pdf.SetLineWidth(2)
pdf.SetDrawColor(128, 64, 0)
pdf.SetFillColor(255, 127, 0)
+ pdf.SetAlpha(0.5, "Normal")
+ pdf.SetDashPattern([]float64{5, 10}, 0)
pdf.Rect(0, 0, 20, 20, "FD")
+ pdf.SetFontSize(8)
+ pdf.Write(10, "Test")
pdf.TransformEnd()
pdf.TransformBegin()
@@ -2465,7 +2471,11 @@ func ExampleFpdf_SetFillColor() {
pdf.SetLineWidth(2)
pdf.SetDrawColor(128, 64, 0)
pdf.SetFillColor(255, 127, 0)
+ pdf.SetAlpha(0.5, "Normal")
+ pdf.SetDashPattern([]float64{5, 10}, 0)
pdf.Rect(0, 0, 20, 20, "FD")
+ pdf.SetFontSize(8)
+ pdf.Write(10, "Test")
pdf.TransformEnd()
fileStr := example.Filename("Fpdf_SetFillColor")