func ExampleFpdf_SetKeywords() {
	var err error
	fileStr := example.Filename("Fpdf_SetKeywords")
	err = gofpdf.MakeFont(example.FontFile("CalligrapherRegular.pfb"),
		example.FontFile("cp1252.map"), example.FontDir(), nil, true)
	if err == nil {
		pdf := gofpdf.New("", "", "", "")
		pdf.SetFontLocation(example.FontDir())
		pdf.SetTitle("世界", true)
		pdf.SetAuthor("世界", true)
		pdf.SetSubject("世界", true)
		pdf.SetCreator("世界", true)
		pdf.SetKeywords("世界", true)
		pdf.AddFont("Calligrapher", "", "CalligrapherRegular.json")
		pdf.AddPage()
		pdf.SetFont("Calligrapher", "", 16)
		pdf.Writef(5, "\x95 %s \x95", pdf)
		err = pdf.OutputFileAndClose(fileStr)
	}
	example.Summary(err, fileStr)
	// Output:
	// Successfully generated pdf/Fpdf_SetKeywords.pdf
}
// This example tests corner cases as reported by the gocov tool.
This example tests corner cases as reported by the gocov tool.
// This example tests corner cases as reported by the gocov tool .
func ExampleFpdf_SetKeywords() {
	var err error
	fileStr := example.Filename("Fpdf_SetKeywords")
	err = gofpdf.MakeFont(example.FontFile("CalligrapherRegular.pfb"),
		example.FontFile("cp1252.map"), example.FontDir(), nil, true)
	if err == nil {
		pdf := gofpdf.New("", "", "", "")
		pdf.SetFontLocation(example.FontDir())
		pdf.SetTitle("世界", true)
		pdf.SetAuthor("世界", true)
		pdf.SetSubject("世界", true)
		pdf.SetCreator("世界", true)
		pdf.SetKeywords("世界", true)
		pdf.AddFont("Calligrapher", "", "CalligrapherRegular.json")
		pdf.AddPage()
		pdf.SetFont("Calligrapher", "", 16)
		pdf.Writef(5, "\x95 %s \x95", pdf)
		err = pdf.OutputFileAndClose(fileStr)
	}
	example.Summary(err, fileStr)
}
func ExampleFpdf_SetKeywords ( ) { var err error fileStr := example . Filename ( " " ) err = gofpdf . MakeFont ( example . FontFile ( " " ) , example . FontFile ( " " ) , example . FontDir ( ) , nil , true ) if err == nil { pdf := gofpdf . New ( " " , " " , " " , " " ) pdf . SetFontLocation ( example . FontDir ( ) ) pdf . SetTitle ( " r u ) pdf . SetAuthor ( " r u ) pdf . SetSubject ( " r u ) pdf . SetCreator ( " r u ) pdf . SetKeywords ( " r u ) pdf . AddFont ( " " , " " , " " ) pdf . AddPage ( ) pdf . SetFont ( " " , " " , 16 ) pdf . Writef ( 5 , " \x95 \x95 " , pdf ) err = pdf . OutputFileAndClose ( fileStr ) } example . Summary ( err , fileStr ) }
This example tests corner cases as reported by the gocov tool.
This example tests corner cases as reported by the gocov tool .
// Output: // Successfully generated pdf/Fpdf_SetKeywords.pdf