donglei2022 2018-10-16 10:08
浏览 226

使用动态图像在Go中生成PDF

I am new to Go and actually trying to figure out the way to handle images in templates. My goal is to generate a barcode and insert it into a template I wrote. The program already use go-wkhtmltopdf to generate pdf but lacks about images. My main question is : what's nicest way to do this ? Should I generate an image in a public directory then insert into img src tag/property ?

  • 写回答

2条回答 默认 最新

  • doutu4335 2018-10-16 13:03
    关注

    Supposedly you might get away by using embedding image data directly into your HTML pages.

    评论

报告相同问题?