diff options
-rw-r--r-- | fpdf_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdf_test.go b/fpdf_test.go index d9fa429..e82217a 100644 --- a/fpdf_test.go +++ b/fpdf_test.go @@ -716,7 +716,7 @@ func ExampleFpdf_Image() { // This example demonstrates how the AllowNegativePosition field of the // ImageOption struct can be used to affect horizontal image placement. -func ExampleFpdf_ImageOption() { +func ExampleFpdf_ImageOptions() { var opt gofpdf.ImageOptions pdf := gofpdf.New("P", "mm", "A4", "") @@ -727,11 +727,11 @@ func ExampleFpdf_ImageOption() { 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_ImageOption") + fileStr := example.Filename("Fpdf_ImageOptions") err := pdf.OutputFileAndClose(fileStr) example.Summary(err, fileStr) // Output: - // Successfully generated pdf/Fpdf_ImageOption.pdf + // Successfully generated pdf/Fpdf_ImageOptions.pdf } // This examples demonstrates Landscape mode with images. |