How can I optimize the ordering of a sequence of images printed to a PDF so that it results in the fewest number of pages?
Here are a few guarantees: