func ExampleFpdf_ImageOptions() {
	var opt gofpdf.ImageOptions

	pdf := gofpdf.New("P", "mm", "A4", "")
	pdf.AddPage()
	pdf.SetFont("Arial", "", 11)
	pdf.SetX(60)
	opt.ImageType = "png"
	pdf.ImageOptions(example.ImageFile("logo.png"), -10, 10, 30, 0, false, opt, 0, "")
	opt.AllowNegativePosition = true
	pdf.ImageOptions(example.ImageFile("logo.png"), -10, 50, 30, 0, false, opt, 0, "")
	fileStr := example.Filename("Fpdf_ImageOptions")
	err := pdf.OutputFileAndClose(fileStr)
	example.Summary(err, fileStr)
	// Output:
	// Successfully generated pdf/Fpdf_ImageOptions.pdf
}
// ExampleFpdf_ImageOptions demonstrates how the AllowNegativePosition field of the
// ImageOption struct can be used to affect horizontal image placement.
ExampleFpdf_ImageOptions demonstrates how the AllowNegativePosition field of the
ImageOption struct can be used to affect horizontal image placement.
// ExampleFpdf_ImageOptions demonstrates how the AllowNegativePosition field of the // ImageOption struct can be used to affect horizontal image placement .
func ExampleFpdf_ImageOptions() {
	var opt gofpdf.ImageOptions
	pdf := gofpdf.New("P", "mm", "A4", "")
	pdf.AddPage()
	pdf.SetFont("Arial", "", 11)
	pdf.SetX(60)
	opt.ImageType = "png"
	pdf.ImageOptions(example.ImageFile("logo.png"), -10, 10, 30, 0, false, opt, 0, "")
	opt.AllowNegativePosition = true
	pdf.ImageOptions(example.ImageFile("logo.png"), -10, 50, 30, 0, false, opt, 0, "")
	fileStr := example.Filename("Fpdf_ImageOptions")
	err := pdf.OutputFileAndClose(fileStr)
	example.Summary(err, fileStr)
}
func ExampleFpdf_ImageOptions ( ) { var opt gofpdf . ImageOptions pdf := gofpdf . New ( " " , " " , " " , " " ) pdf . AddPage ( ) pdf . SetFont ( " " , " " , 11 ) pdf . SetX ( 60 ) opt . ImageType = " " pdf . ImageOptions ( example . ImageFile ( " " ) , - 10 , 10 , 30 , 0 , false , opt , 0 , " " ) opt . AllowNegativePosition = true pdf . ImageOptions ( example . ImageFile ( " " ) , - 10 , 50 , 30 , 0 , false , opt , 0 , " " ) fileStr := example . Filename ( " " ) err := pdf . OutputFileAndClose ( fileStr ) example . Summary ( err , fileStr ) }
ExampleFpdf_ImageOptions demonstrates how the AllowNegativePosition field of the
ImageOption struct can be used to affect horizontal image placement.
ExampleFpdf_ImageOptions demonstrates how the AllowNegativePosition field of the ImageOption struct can be used to affect horizontal image placement .
// Output: // Successfully generated pdf/Fpdf_ImageOptions.pdf