imagetodoc
EXIF Fix · Embedded Auto-Upright HEIC → PDF · Private & Free

Why iPhone HEIC Document Photos Turn Sideways in PDFs (EXIF Fix)

Learn how Apple’s EXIF orientation tag (0x0112) tricks legacy PDF tools into flipping portrait scans sideways, and convert upright A4 PDFs locally below.

4 min read · Updated 2026-12-04 · 100% On-Device Rust WASM
Quick Answer · Bottom Line Up Front

iPhones always record camera sensor pixels in landscape orientation and store a tiny metadata flag (EXIF Orientation = 6, meaning rotate 90° clockwise) so Apple Photos displays portrait shots upright. Legacy converters ignore that EXIF tag when embedding HEIC into PDF, producing sideways pages. Decoding and baking rotation into pixels before PDF generation fixes it permanently.

Two Reasons iPhone Scans Rotate Sideways (EXIF vs. Tabletop Gyroscope)

Not all rotated scans share the same cause. Knowing which one hit your photo tells you how to prevent it:

  • Cause 1 — Stripped or ignored EXIF/irot metadata: The photo looks upright on your iPhone, but turns 90° sideways inside an online PDF converter. That means the converter read raw sensor pixels without respecting the HEIF irot or EXIF Orientation tag.
  • Cause 2 — Flat-table gyroscope lock: When you hold your iPhone completely parallel to a flat desk looking straight down, gravity acts perpendicular to the screen so the accelerometer cannot tell which edge is "bottom." If you tilted the phone slightly landscape a second earlier, iOS locks the shot 90° or 180° off.

Convert Your iPhone HEIC Photo into a Clean Upright A4 PDF Below

Embedded Tool: Auto-Upright HEIC → PDF 100% On-Device · Rust WASM

Drop a sideways iPhone .HEIC or .JPG scan to build an upright A4 PDF

Drag & drop JPG / PNG / WebP / iPhone HEIC or press Ctrl/⌘ V · Never leaves your browser
Try a real skewed sample:
Multi-Page Workbench ↗

Drop your .heic or .jpg document photo above to bake orientation permanently into upright A4 PDF pixels. If a flat-desk shot was captured upside-down by the phone’s gyroscope, click Full Workbench ↗ and tap Rotate 90° once before exporting.

Common Issues Handled

  • Portrait document photo looks upright in iPhone Photos but turns 90° horizontal in PDF
  • Flat overhead tabletop photos triggering the wrong iPhone accelerometer orientation (upside-down 180°)
  • Windows File Explorer thumbnails disagreeing with Chrome or Adobe Reader rotation
  • OCR returning pure gibberish because text lines were fed vertically instead of horizontally

How Local Processing Works

  1. Parses both HEIF transformation boxes (irot) and EXIF orientation metadata before pixel decoding completes.
  2. Bakes the physical pixel matrix upright so every downstream PDF viewer renders identical orientation regardless of EXIF support.
  3. Applies 4-point corner cropping and lighting normalization to frame the upright document cleanly on ISO A4.
  4. Allows manual 90° fine-rotation inside the Full Workbench when an overhead tabletop shot fooled the phone’s gyroscope.

Capabilities & Honest Limitations

What Works Best

  • Portrait iPhone HEIC photos turning horizontal inside Windows or online PDF tools
  • Documents needing consistent upright portrait A4 orientation for official portal submissions

Honest Limitations

  • If the iPhone gyroscope physically recorded an overhead flat shot at 180° upside down (so it even appears upside down inside Apple Photos), use the one-click Rotate button in Full Workbench

Frequently Asked Questions

Why does the photo look right-side-up on my Mac, but sideways when I email the PDF to Windows?

macOS Preview respects EXIF orientation flags while many older PDF utilities and Windows viewers expect pixels to be physically stored upright. Baking orientation directly into the pixel grid guarantees identical display everywhere.

How do I stop my iPhone from guessing the wrong angle when shooting straight down at a desk?

Before lowering your phone flat over the paper, hold it vertically upright for half a second until the camera UI icons (1×, flash) rotate to portrait, then tilt smoothly down.

Does fixing orientation reduce image sharpness?

No. 90°/180°/270° pixel transposition is completely lossless.