func ExampleFpdf_SetProtection() {
	pdf := gofpdf.New("P", "mm", "A4", "")
	pdf.SetProtection(gofpdf.CnProtectPrint, "123", "abc")
	pdf.AddPage()
	pdf.SetFont("Arial", "", 12)
	pdf.Write(10, "Password-protected.")
	fileStr := example.Filename("Fpdf_SetProtection")
	err := pdf.OutputFileAndClose(fileStr)
	example.Summary(err, fileStr)
	// Output:
	// Successfully generated pdf/Fpdf_SetProtection.pdf
}
// ExampleFpdf_SetProtection demonstrates password protection for documents.
ExampleFpdf_SetProtection demonstrates password protection for documents.
// ExampleFpdf_SetProtection demonstrates password protection for documents .
func ExampleFpdf_SetProtection() {
	pdf := gofpdf.New("P", "mm", "A4", "")
	pdf.SetProtection(gofpdf.CnProtectPrint, "123", "abc")
	pdf.AddPage()
	pdf.SetFont("Arial", "", 12)
	pdf.Write(10, "Password-protected.")
	fileStr := example.Filename("Fpdf_SetProtection")
	err := pdf.OutputFileAndClose(fileStr)
	example.Summary(err, fileStr)
}
func ExampleFpdf_SetProtection ( ) { pdf := gofpdf . New ( " " , " " , " " , " " ) pdf . SetProtection ( gofpdf . CnProtectPrint , " " , " " ) pdf . AddPage ( ) pdf . SetFont ( " " , " " , 12 ) pdf . Write ( 10 , " " ) fileStr := example . Filename ( " " ) err := pdf . OutputFileAndClose ( fileStr ) example . Summary ( err , fileStr ) }
ExampleFpdf_SetProtection demonstrates password protection for documents.
ExampleFpdf_SetProtection demonstrates password protection for documents .
// Output: // Successfully generated pdf/Fpdf_SetProtection.pdf