Set PDF page size based on each page's image size.