summaryrefslogtreecommitdiff
path: root/fpdf_test.go
diff options
context:
space:
mode:
authorJoe Westcott <joewestcott@users.noreply.github.com>2019-03-08 23:37:40 +0000
committerJoe Westcott <joewestcott@users.noreply.github.com>2019-03-08 23:37:40 +0000
commit4d91079d1d295574ef183a71fa4276c1724f04ed (patch)
treeb1054a42d7471fa0b05e69affb93ec9acf39bfbb /fpdf_test.go
parent6b7c17b5b904039a423e8df6e51875702bae5763 (diff)
Remove additional 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")