How do I insert an image file into a PDF document
To insert an image file into a PDF document, follow these step.
First, load the image file to be inserted
c := creator.New() // Prepare the image. img, err := c.NewImageFromFile(imagePath)
And then draw the loaded image file to the page
c.Draw(img)
For a complete example on how to insert an image file into a PDF document, visit this link below
https://github.com/unidoc/unipdf-examples/blob/master/image/pdf_add_image_to_page.go