i want to apply for 4 wheeler car and bike licence what to select?
The page itself confirms this — it says "For multiple COV(s) hold Ctrl/Shift and select"
what will come in "Issued by" in
| Field | Value |
|---|---|
| Documents | Passport |
| Proofs | Passport |
| Document No | R9373557 |
| Issued by | Ministry of External Affairs |
| Issue Date | Date printed on your passport (date of issue) |
| Contact No | (leave blank or your mobile number) |
search the web and cpnfirm
Sarathi Parivahan IDP upload passport "issued by" field what to enter
Indian passport issued by authority name for government forms
Ministry of External Affairs
reduce this pdf size to under 500 kb
ls -lh /home/daytona/workspace/attachments/508a6beb-f8b6-4367-99b3-faba7f328b36/divyam-Passport.pdf
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH \ -sOutputFile=/home/daytona/workspace/divyam-Passport-compressed.pdf \ /home/daytona/workspace/attachments/508a6beb-f8b6-4367-99b3-faba7f328b36/divyam-Passport.pdf && \ ls -lh /home/daytona/workspace/divyam-Passport-compressed.pdf
python3 -c " import subprocess, os input_pdf = '/home/daytona/workspace/attachments/508a6beb-f8b6-4367-99b3-faba7f328b36/divyam-Passport.pdf' output_pdf = '/home/daytona/workspace/divyam-Passport-compressed.pdf' # Try using pypdf with image compression from pypdf import PdfReader, PdfWriter from pypdf.filters import FlateDecode import io reader = PdfReader(input_pdf) writer = PdfWriter() for page in reader.pages: writer.add_page(page) # Compress images for page in writer.pages: for img in page.images: img.replace(img.image, quality=30) writer.compress_identical_objects(remove_identicals=True, remove_orphans=True) with open(output_pdf, 'wb') as f: writer.write(f) size = os.path.getsize(output_pdf) print(f'Output size: {size/1024:.1f} KB') "
divyam Passport compressed
PDF Document · PDF
make this in one single pdf under 500 kb
mkdir -p /home/daytona/workspace/dl-pdf && \ curl -s "https://d361swluvexzqs.cloudfront.net/chats-attachments/compressed_img3-1778648268132-tvy2c9.jpeg" -o /home/daytona/workspace/dl-pdf/img1.jpeg && \ curl -s "https://d361swluvexzqs.cloudfront.net/chats-attachments/compressed_img4-1778648268137-r5lip8.jpeg" -o /home/daytona/workspace/dl-pdf/img2.jpeg && \ ls -lh /home/daytona/workspace/dl-pdf/
python3 -c " from PIL import Image from reportlab.lib.pagesizes import A4 from reportlab.pdfgen import canvas import os img_paths = [ '/home/daytona/workspace/dl-pdf/img1.jpeg', '/home/daytona/workspace/dl-pdf/img2.jpeg' ] output_pdf = '/home/daytona/workspace/dl-pdf/DrivingLicence.pdf' page_w, page_h = A4 # 595 x 842 pts c = canvas.Canvas(output_pdf, pagesize=A4) for i, img_path in enumerate(img_paths): img = Image.open(img_path) img_w, img_h = img.size # Scale image to fit page with margins margin = 20 max_w = page_w - 2 * margin max_h = page_h - 2 * margin ratio = min(max_w / img_w, max_h / img_h) draw_w = img_w * ratio draw_h = img_h * ratio x = (page_w - draw_w) / 2 y = (page_h - draw_h) / 2 c.drawImage(img_path, x, y, width=draw_w, height=draw_h) if i < len(img_paths) - 1: c.showPage() c.save() size = os.path.getsize(output_pdf) print(f'Output size: {size/1024:.1f} KB') "
DrivingLicence
PDF Document · PDF
reverse the page order
python3 -c " from PIL import Image from reportlab.lib.pagesizes import A4 from reportlab.pdfgen import canvas import os img_paths = [ '/home/daytona/workspace/dl-pdf/img2.jpeg', '/home/daytona/workspace/dl-pdf/img1.jpeg' ] output_pdf = '/home/daytona/workspace/dl-pdf/DrivingLicence.pdf' page_w, page_h = A4 c = canvas.Canvas(output_pdf, pagesize=A4) for i, img_path in enumerate(img_paths): img = Image.open(img_path) img_w, img_h = img.size margin = 20 max_w = page_w - 2 * margin max_h = page_h - 2 * margin ratio = min(max_w / img_w, max_h / img_h) draw_w = img_w * ratio draw_h = img_h * ratio x = (page_w - draw_w) / 2 y = (page_h - draw_h) / 2 c.drawImage(img_path, x, y, width=draw_w, height=draw_h) if i < len(img_paths) - 1: c.showPage() c.save() size = os.path.getsize(output_pdf) print(f'Output size: {size/1024:.1f} KB') "
DrivingLicence
PDF Document · PDF
rotate this image 90 degree to left and save it in passport pdf
curl -s "https://d361swluvexzqs.cloudfront.net/chats-attachments/Image-1778656287865-lhx34t.png" -o /home/daytona/workspace/dl-pdf/visa.png && ls -lh /home/daytona/workspace/dl-pdf/visa.png
python3 -c " from PIL import Image from reportlab.lib.pagesizes import A4 from reportlab.pdfgen import canvas from pypdf import PdfReader, PdfWriter import os, io # Rotate image 90 degrees to the left (counter-clockwise) img = Image.open('/home/daytona/workspace/dl-pdf/visa.png') rotated = img.rotate(90, expand=True) rotated_path = '/home/daytona/workspace/dl-pdf/visa_rotated.jpeg' rotated.save(rotated_path, 'JPEG', quality=60) print(f'Rotated image size: {os.path.getsize(rotated_path)/1024:.1f} KB') # Create a single-page PDF with the rotated image page_w, page_h = A4 tmp_pdf = '/home/daytona/workspace/dl-pdf/visa_page.pdf' c = canvas.Canvas(tmp_pdf, pagesize=A4) img2 = Image.open(rotated_path) img_w, img_h = img2.size margin = 20 ratio = min((page_w - 2*margin) / img_w, (page_h - 2*margin) / img_h) draw_w, draw_h = img_w * ratio, img_h * ratio x = (page_w - draw_w) / 2 y = (page_h - draw_h) / 2 c.drawImage(rotated_path, x, y, width=draw_w, height=draw_h) c.save() # Append to existing passport PDF existing = '/home/daytona/workspace/divyam-Passport-compressed.pdf' output = '/home/daytona/workspace/divyam-Passport-compressed.pdf' reader1 = PdfReader(existing) reader2 = PdfReader(tmp_pdf) writer = PdfWriter() for page in reader1.pages: writer.add_page(page) for page in reader2.pages: writer.add_page(page) with open(output, 'wb') as f: writer.write(f) size = os.path.getsize(output) print(f'Final passport PDF size: {size/1024:.1f} KB') print(f'Total pages: {len(reader1.pages) + len(reader2.pages)}') "
python3 -c " from PIL import Image from reportlab.lib.pagesizes import A4 from reportlab.pdfgen import canvas from pypdf import PdfReader, PdfWriter import os # Re-save rotated image at lower quality img = Image.open('/home/daytona/workspace/dl-pdf/visa.png') rotated = img.rotate(90, expand=True) rotated_path = '/home/daytona/workspace/dl-pdf/visa_rotated.jpeg' rotated.save(rotated_path, 'JPEG', quality=30) # Rebuild passport pages with compressed images too original_passport = '/home/daytona/workspace/attachments/508a6beb-f8b6-4367-99b3-faba7f328b36/divyam-Passport.pdf' # Re-compress passport pages from pypdf import PdfReader, PdfWriter reader = PdfReader(original_passport) writer = PdfWriter() for page in reader.pages: writer.add_page(page) for page in writer.pages: for img_obj in page.images: img_obj.replace(img_obj.image, quality=25) writer.compress_identical_objects(remove_identicals=True, remove_orphans=True) tmp_passport = '/home/daytona/workspace/dl-pdf/passport_base.pdf' with open(tmp_passport, 'wb') as f: writer.write(f) # Create visa page PDF page_w, page_h = A4 tmp_pdf = '/home/daytona/workspace/dl-pdf/visa_page.pdf' c = canvas.Canvas(tmp_pdf, pagesize=A4) img2 = Image.open(rotated_path) img_w, img_h = img2.size margin = 20 ratio = min((page_w - 2*margin) / img_w, (page_h - 2*margin) / img_h) draw_w, draw_h = img_w * ratio, img_h * ratio x = (page_w - draw_w) / 2 y = (page_h - draw_h) / 2 c.drawImage(rotated_path, x, y, width=draw_w, height=draw_h) c.save() # Merge reader1 = PdfReader(tmp_passport) reader2 = PdfReader(tmp_pdf) writer2 = PdfWriter() for page in reader1.pages: writer2.add_page(page) for page in reader2.pages: writer2.add_page(page) output = '/home/daytona/workspace/divyam-Passport-compressed.pdf' with open(output, 'wb') as f: writer2.write(f) size = os.path.getsize(output) print(f'Final size: {size/1024:.1f} KB') print(f'Total pages: {len(reader1.pages) + len(reader2.pages)}') "
divyam Passport compressed
PDF Document · PDF