How to insert an image into a PDF
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)Visit our user guide on details for how to insert an image file into a PDF document.