Github Repo

Usage Example

Convert a selection of images files into a single PDF.

I made a tool to convert multiple image files into a single PDF, addressing the limitation of my wife’s scanner by efficiently merging individual images into a single cohesive document.

Written in go, there are no dependencies to worry about when sharing the tool!

Building

  • From source:
  • From go pkg
    • go install github.com/ssebs/images-to-pdf@latest

CLI Usage

1PS F:\LocalProgramming\images-to-pdf> .\img2pdf.exe -h
2Images to PDF
3Usage of F:\LocalProgramming\images-to-pdf\img2pdf.exe:
4  -a    Whether or not to archive images (use a=false if needed) (default true)
5  -d string
6        Folder where images are stored (default ".")
7  -o string
8        Filename of PDF file (default "out.pdf")
9PS F:\LocalProgramming\images-to-pdf> 

How to run CLI

  • Download img2pdf.exe from the releases page
  • Move the img2pdf.exe file to the folder you want to convert images
  • EZPZ:
    • Double click the img2pdf.exe file
  • CLI:
    • SHIFT + RIGHT CLICK the folder > Open in Powershell window here
      • Or command window
    • Type this command:
      • .\img2pdf.exe -a