How do I insert a barcode into a PDF document

UniPDF allows inserting Go's image object into a PDF document, the Image object could came from other library such as a barcode/qr generator.

Use the following code to import Go's Image object into UniPDF library

c := creator.New()
img, err := c.NewImageFromGoImage(imageObj)

Check the code in this link below for a complete example of inserting Image object into a PDF document