func ExampleFpdf_SetJavascript() {
	pdf := gofpdf.New("P", "mm", "A4", "")
	pdf.SetJavascript("print(true);")
	pdf.AddPage()
	pdf.SetFont("Arial", "", 12)
	pdf.Write(10, "Auto-print.")
	fileStr := example.Filename("Fpdf_SetJavascript")
	err := pdf.OutputFileAndClose(fileStr)
	example.Summary(err, fileStr)
	// Output:
	// Successfully generated pdf/Fpdf_SetJavascript.pdf
}
// ExampleFpdf_SetJavascript demonstrates including JavaScript in the document.
ExampleFpdf_SetJavascript demonstrates including JavaScript in the document.
// ExampleFpdf_SetJavascript demonstrates including JavaScript in the document .
func ExampleFpdf_SetJavascript() {
	pdf := gofpdf.New("P", "mm", "A4", "")
	pdf.SetJavascript("print(true);")
	pdf.AddPage()
	pdf.SetFont("Arial", "", 12)
	pdf.Write(10, "Auto-print.")
	fileStr := example.Filename("Fpdf_SetJavascript")
	err := pdf.OutputFileAndClose(fileStr)
	example.Summary(err, fileStr)
}
func ExampleFpdf_SetJavascript ( ) { pdf := gofpdf . New ( " " , " " , " " , " " ) pdf . SetJavascript ( " " ) pdf . AddPage ( ) pdf . SetFont ( " " , " " , 12 ) pdf . Write ( 10 , " " ) fileStr := example . Filename ( " " ) err := pdf . OutputFileAndClose ( fileStr ) example . Summary ( err , fileStr ) }
ExampleFpdf_SetJavascript demonstrates including JavaScript in the document.
ExampleFpdf_SetJavascript demonstrates including JavaScript in the document .
// Output: // Successfully generated pdf/Fpdf_SetJavascript.pdf