Hey Oris, make PDF of two images.

I'd need the two images to create a PDF from them. Could you please share the images you'd like to combine?
Reading File
Running Command

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"

Running Command

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) "

Done! Your two receipt images have been combined into a 2-page PDF:

receipts

PDF Document · PDF

  • Page 1: GIPS Psychiatric Clinic & De-addiction Center receipt
  • Page 2: GIPS Pharmacy invoice
This is a shared conversation. Sign in to Orris to start your own chat.