Hey Oris, make PDF of two images.
mkdir -p /home/daytona/workspace/images-to-pdf && curl -s -o /home/daytona/workspace/images-to-pdf/img1.jpg "https://d361swluvexzqs.cloudfront.net/chats-attachments/IMG_0064-1779712057521-o4ekb1.jpg" && curl -s -o /home/daytona/workspace/images-to-pdf/img2.jpg "https://d361swluvexzqs.cloudfront.net/chats-attachments/IMG_0063-1779712058068-d4wh71.jpg" && echo "Downloaded"
python3 -c " from PIL import Image images = [] for path in ['/home/daytona/workspace/images-to-pdf/img1.jpg', '/home/daytona/workspace/images-to-pdf/img2.jpg']: img = Image.open(path).convert('RGB') images.append(img) output_path = '/home/daytona/workspace/images-to-pdf/receipts.pdf' images[0].save(output_path, save_all=True, append_images=images[1:]) print('PDF created:', output_path) "
receipts
PDF Document · PDF