I have some image files in a folder. I want to have them as a single pdf, one image per page.
I'm currently using Mutool and especially mutool create
. I am willing to switch tools (command line, gui or programming library) if you have any you recommend using. Would prefer something that can be automated through scripting or code. In general, I'm looking for a way to extensively and freely manipulate pdf files.
I couldn't get a simple source for what the content stream syntax is (from what I read it's basically a part of the internal pdf format syntax, doesn't seem very user-friendly...), is this really how I'm supposed to use mutool?
Using this content stream file, how do I not resize an image? Using 1 0 0 1 <x> <y> cm
for positionning should work (page 206) but it also scales the image to 1x1. And how do I make a page the size of the image in it? How do I "switch" to the next page?
So how can I create a pdf with images using mutool or some other software/code?