func Example() {
	pdf := gofpdf.New(gofpdf.OrientationPortrait, "mm", "A4", "")
	pdf.AddPage()
	pdf.SetFont("Arial", "B", 16)
	pdf.Cell(40, 10, "Hello World!")
	fileStr := example.Filename("basic")
	err := pdf.OutputFileAndClose(fileStr)
	example.Summary(err, fileStr)
	// Output:
	// Successfully generated pdf/basic.pdf
}
// Example demonstrates the generation of a simple PDF document. Note that
// since only core fonts are used (in this case Arial, a synonym for
// Helvetica), an empty string can be specified for the font directory in the
// call to New(). Note also that the example.Filename() and example.Summary()
// functions belong to a separate, internal package and are not part of the
// gofpdf library. If an error occurs at some point during the construction of
// the document, subsequent method calls exit immediately and the error is
// finally retrieved with the output call where it can be handled by the
// application.
Example demonstrates the generation of a simple PDF document. Note that
since only core fonts are used (in this case Arial, a synonym for
Helvetica), an empty string can be specified for the font directory in the
call to New(). Note also that the example.Filename() and example.Summary()
functions belong to a separate, internal package and are not part of the
gofpdf library. If an error occurs at some point during the construction of
the document, subsequent method calls exit immediately and the error is
finally retrieved with the output call where it can be handled by the
application.
// Example demonstrates the generation of a simple PDF document . Note that // since only core fonts are used ( in this case Arial a synonym for // Helvetica ) an empty string can be specified for the font directory in the // call to New () . Note also that the example . Filename () and example . Summary () // functions belong to a separate internal package and are not part of the // gofpdf library . If an error occurs at some point during the construction of // the document subsequent method calls exit immediately and the error is // finally retrieved with the output call where it can be handled by the // application .
func Example() {
	pdf := gofpdf.New(gofpdf.OrientationPortrait, "mm", "A4", "")
	pdf.AddPage()
	pdf.SetFont("Arial", "B", 16)
	pdf.Cell(40, 10, "Hello World!")
	fileStr := example.Filename("basic")
	err := pdf.OutputFileAndClose(fileStr)
	example.Summary(err, fileStr)
}
func Example ( ) { pdf := gofpdf . New ( gofpdf . OrientationPortrait , " " , " " , " " ) pdf . AddPage ( ) pdf . SetFont ( " " , " " , 16 ) pdf . Cell ( 40 , 10 , " " ) fileStr := example . Filename ( " " ) err := pdf . OutputFileAndClose ( fileStr ) example . Summary ( err , fileStr ) }
Example demonstrates the generation of a simple PDF document.
Example demonstrates the generation of a simple PDF document .
// Output: // Successfully generated pdf/basic.pdf