Arrange local images, choose page sizing and JPEG compression, then create a multi-page PDF with pdf-lib.