attachment
attachment
attachment
attachment
attachment
attachment

Make PDF of all three images.

I'll download all three images and combine them into a single PDF right away.
Reading File
Running Command

mkdir -p /home/daytona/workspace/images-to-pdf && curl -s -o /home/daytona/workspace/images-to-pdf/IMG_0076.jpg "https://d361swluvexzqs.cloudfront.net/chats-attachments/IMG_0076-1779957204399-1u3p49.jpg" && curl -s -o /home/daytona/workspace/images-to-pdf/IMG_0077.jpg "https://d361swluvexzqs.cloudfront.net/chats-attachments/IMG_0077-1779957195401-76gn19.jpg" && curl -s -o /home/daytona/workspace/images-to-pdf/IMG_0078.jpg "https://d361swluvexzqs.cloudfront.net/chats-attachments/IMG_0078-1779957193203-9ukeb9.jpg" && echo "Downloaded all 3 images"

Running Command

python3 << 'EOF' from PIL import Image import os output_path = "/home/daytona/workspace/images-to-pdf/documents.pdf" image_dir = "/home/daytona/workspace/images-to-pdf/" # Order: IMG_0076, IMG_0077, IMG_0078 image_files = ["IMG_0076.jpg", "IMG_0077.jpg", "IMG_0078.jpg"] images = [] for fname in image_files: fpath = os.path.join(image_dir, fname) img = Image.open(fpath).convert("RGB") images.append(img) # Save as multi-page PDF images[0].save( output_path, save_all=True, append_images=images[1:], resolution=150 ) print(f"PDF created: {output_path}") print(f"Pages: {len(images)}") EOF

Done! All 3 images have been combined into a single 3-page PDF in this order:
  1. Page 1 - Certificate of Stamp Duty (Government of Gujarat)
  2. Page 2 - No Objection Letter (Arunkumar Omprakash Agrawal)
  3. Page 3 - Notarial Stamp / Notice page
Download your PDF here:

documents

PDF Document · PDF

This is a shared conversation. Sign in to Orris to start your own chat.