Home > database >  How to convert images to a pdf document go lang
How to convert images to a pdf document go lang

Time:10-10

I am trying to make a small tool to download images from websites and automatically convert them to PDF. I have tried looking for go lang libraries to convert images to pdf however most of them are related to converting to pdf to images and even in the libraries such as Maroto and GofPdf they don't go into details on how to convert a directory full of images into a pdf file. I have done this in python but it's super slow for my use case. I am also new to go lang as a whole so please bear with me. Any and all help will be appreciated. :)

CodePudding user response:

PdfCpu works great:

pdfcpu import out.pdf a.jpg b.jpg

https://pdfcpu.io/generate/import

  • Related