Image to PDF conversion with help Golang I had written two simple program. "compress.go" Program to compress the image and "pdf.go" to convert compressed jpg image in PDF format. Take image and run #go run compress.go "image.jpg" it will generate ==> compresimage.jpg Take this compressed image as input to program "pdf.go" and run # go run second.go "compre_adhar.jpg" "" It will generate pdf image. Check always image property and calculate with url https://uproer.com/articles/image-size-calculator-px-in/ Base upon you requirement you need to adjust imageoptions How to get all imageoptions ==> go doc gofpdf
-
Notifications
You must be signed in to change notification settings - Fork 0
omankame/image-pdf
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Image to PDF conversion by using Go Lang
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published