Zero-Recompression HEIC-to-PDF Packaging for Portals, Receipts, and Coursework
Direct DCTDecode Stream Embedding Without Canvas Blur
Tax portals, university submission systems, visa applications, and insurance claims frequently reject raw Apple HEIC uploads and require standard PDF attachments instead. Browser tools that draw images onto an HTML canvas and rasterize screenshots into PDF wrappers often soften scanned handwriting, misapply portrait EXIF flags, or send private identity documents to remote servers.
Our local Worker decodes the designated pitm primary image with libheif-js, resolves container irot and EXIF orientation transforms exactly once in RGBA8 memory, encodes a clean 4:4:4 sRGB MozJPEG stream with all APP1 EXIF and GPS tags stripped, and wraps those exact JPEG bytes inside a PDF 1.4 /Subtype /Image XObject (/Filter /DCTDecode) with a calibrated MediaBox.
- Zero double-compression: PDF readers render the embedded MozJPEG stream natively at full pixel resolution.
- Switch Selection Scope to All Burst Stills to assemble multi-image HEIC bursts into a multi-page PDF automatically.
- Runs 100% offline inside a network-locked Web Worker after WebAssembly initialization.
Preventing Sideways Document Pages on iOS Scans
Photos snapped overhead with an iPhone often record landscape sensor buffers paired with EXIF Orientation 6 or 8. Because PDF Image XObjects ignore TIFF orientation tags, copying raw unrotated sensor streams produces sideways pages. Resolving pixel geometry before DCTDecode packaging guarantees upright pages in Adobe Acrobat, Preview, Chrome, and print queues.