I’ve been searching around a lot for this but wasn’t able to find a solution.
How can I generate a PDF with an arbitrary paper format (say A4) and fill its pages with as many copies of an image as possible?
I’m looking for a CLI solution, using programs like ImageMagick, Poppler, Ghostscript and such.
My use case: Changed password for the guests Wi-Fi in my office, wanted to send around a nice A4 PDF composed of a tight grid, each cell containing the network SSID and WPA-Key, to be printed, cut into pieces handed out to guests visiting.
Could not find a way to do it and resorted to paste the tiny images manually in a page using MS Word.
EDIT: how these tiny images looked like. Just typed into a text editor and made a screenshot of the text.
I’ll be changing this password once every 3 months, so I’d like an automated/scriptable solution. Doesn’t need to be perfect, but it needs to be quick.