How Client-Side Images-to-PDF Conversion Protects Sensitive Documents
Most free online JPG-to-PDF converters operate on a remote cloud pipeline: when you select photos of signed contracts, medical reimbursement receipts, tax forms, passports, or driver's licenses, your files are transmitted over HTTP to a third-party server, queued on temporary cloud storage disks, processed via server-side Ghostscript or ImageMagick binaries, and served back via a download URL. Even when providers promise automatic deletion after an hour, uploading identity documents or confidential business records introduces unnecessary exposure to misconfigured storage buckets, TLS inspection proxies, and data retention logs.
PrivaPixTools eliminates server transit altogether. Our converter writes a genuine, ISO-compliant PDF-1.4 binary file directly inside your browser's sandboxed JavaScript memory using native HTML5 Canvas rasterization, DCTDecode JPEG byte streams, and an exact byte-offset cross-reference (xref) table. Zero bytes leave your device—meaning you can load this page once, switch your laptop or phone into Airplane Mode, and compile multi-page PDFs completely offline.
Exact PDF Coordinate Geometry, Margins & Print DPI Formulas
Every PDF page defines its physical canvas inside a /MediaBox [0 0 W H] array measured in PostScript Points (pt), where exactly 72 points = 1 inch = 25.4 millimeters. When placing raster images onto A4 or US Letter paper without stretching or cropping, the engine calculates aspect-locked scaling and centered offsets using the following equations:
A4 MediaBox = [0, 0, 595.28, 841.89] pt (210 × 297 mm)
US Letter MediaBox = [0, 0, 612.00, 792.00] pt (8.5 × 11.0 in)
Scale Factor S = min((PageWidthPt − 2 × MarginPt) / ImageWidthPx, (PageHeightPt − 2 × MarginPt) / ImageHeightPx)
Effective Print Resolution (DPI) = ImageWidthPx / (DrawnWidthPt / 72)
For example, if you photograph an A4 contract with a smartphone camera at 2480 × 3508 pixels and apply a 10 mm (28.35 pt) margin on an A4 Portrait sheet, the printable width is 538.58 pt (7.48 inches), producing a razor-sharp effective print density of 331.5 DPI—exceeding commercial laser printer standards while keeping file size compact.
Real-World Output Size & Resolution Benchmarks
Because PNG screenshots and raw phone camera JPEGs vary widely in pixel density and entropy, choosing the right compression tier lets you meet strict government, HR, or banking portal upload caps (commonly 2 MB, 5 MB, or 10 MB per PDF) without sacrificing legibility:
| Document Scenario | Source Input | Recommended Layout | Quality Setting | Typical PDF Output Size |
|---|---|---|---|---|
| Front & Back Driver's License / ID | 2× Phone JPEGs (1600 × 1010 px) | 2-on-1 ID Sheet · A4/Letter Portrait | Balanced (85%) | 165 KB – 240 KB (1 Page) |
| 5 Expense Receipts for Accounting | 5× Smartphone Scans (1800 × 2600 px) | A4 or US Letter · Small 10mm Margin | Compact (70%) | 480 KB – 790 KB (5 Pages) |
| Signed Multi-Page Lease / Contract | 8× High-Res Scans (2480 × 3508 px) | US Letter / A4 · Small 10mm Margin | High Print (95%) | 2.1 MB – 3.4 MB (8 Pages) |
| 10 Desktop UI / QA Screenshots | 10× Retina PNGs (2560 × 1600 px) | Fit Exact Image Size · 0mm Margin | Balanced (85%) | 1.4 MB – 2.2 MB (10 Pages) |
Built-In Privacy Hygiene: Automatic EXIF Scrubbing & Alpha Compositing
- Zero Residual GPS or Camera EXIF Tags: Smartphone photos routinely embed exact home or office GPS coordinates, iPhone/Android model identifiers, and timestamps inside JPEG APP1 headers. Rendering through our isolated HTML5 Canvas buffer discards all EXIF/XMP metadata blocks automatically before constructing the PDF image stream.
- Clean PNG & WebP Transparency Handling: Directly wrapping transparent PNGs into JPEG streams often turns transparent borders pitch black. Our compositor pre-fills a pure
#FFFFFFpaper layer prior to encoding so digital signatures, UI modals, and transparent icons always look clean in Adobe Reader, macOS Preview, Chrome, and mobile PDF viewers. - 2-on-1 Single-Sheet ID Verification: Banks, KYC onboarding portals, notary offices, and insurance claims frequently require both sides of an identification card inside a single 1-page PDF. Activating 2-on-1 ID Card Sheet Mode stacks both sides cleanly with balanced alignment or exact ISO/IEC 7810 ID-1 CR80 physical dimensions (
85.60 × 53.98 mm).