From f7253a9ffd57d84b807b601cf2c8e4563d9b614e Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Tue, 15 Apr 2014 20:08:24 -0400 Subject: Documentation adjustment. --- fpdf_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fpdf_test.go') diff --git a/fpdf_test.go b/fpdf_test.go index fc9d6a5..ae0acf9 100644 --- a/fpdf_test.go +++ b/fpdf_test.go @@ -1187,11 +1187,11 @@ func ExampleFpdf_tutorial23() { // This example demonstrates document protection. func ExampleFpdf_tutorial24() { - pdf := gofpdf.New("P", "mm", "A4", cnFontDir) // A4 210.0 x 297.0 + pdf := gofpdf.New("P", "mm", "A4", cnFontDir) pdf.SetProtection(gofpdf.CnProtectPrint, "123", "abc") pdf.AddPage() pdf.SetFont("Arial", "", 12) - pdf.Write(10, "You can print me but not copy my text.") + pdf.Write(10, "Password-protected.") pdf.OutputAndClose(docWriter(pdf, 24)) // Output: // Successfully generated pdf/tutorial24.pdf -- cgit v1.2.1-24-ge1ad