D3crypt360
D3crypt360

Reputation: 130

How can I convert images to a pdf document go lang?

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.

Upvotes: 2

Views: 3932

Answers (1)

Zombo
Zombo

Reputation: 1

PdfCpu works great:

pdfcpu import out.pdf a.jpg b.jpg

https://pdfcpu.io/generate/import

Upvotes: 2

Related Questions