Skip to content
docsmall
Credits left today

Contact us

For feature suggestions, usage questions, or credit and order issues, email us at the address below.

Send email
  • Image to PDF
  • JPG to PDF
  • PNG to PDF
  • PDF Layout

How to Combine JPG and PNG Images into a PDF: Page Sizes, Orientation & File Size Control Guide

Turning phone photos of IDs, receipts, contracts, or desktop screenshots into a PDF often produces mismatched page sizes, sideways portrait photos, or 40 MB files. Learn how docsmall's browser-local Image to PDF handles all 5 page presets, merge vs. separate modes, lossless JPG embedding, PNG transparency, and size control.

Author: docsmall TeamPublished

Combining eight expense receipts into one reimbursement PDF, putting front and back ID photos into a single attachment, or archiving a dozen desktop screenshots sounds simple—until the result comes out with wildly inconsistent page sizes, vertical phone photos lying sideways, or a 45 MB file that bounces back from every email inbox and upload portal.

Almost every one of those frustrations comes down to three mechanics: how page size presets scale images, how JPG and PNG bytes embed inside a PDF, and when you trim file size. Get those three right and you can produce crisp, print-ready, size-controlled PDFs locally in your browser without ever uploading personal IDs, contracts, or invoices to a server.

Based on the actual browser-local worker powering docsmall’s Image to PDF, JPG to PDF, and PNG to PDF, this guide breaks down all five page presets, One PDF vs. One PDF per image modes, raw JPG embedding and PNG transparency behavior, batching past 30 files, and 7 troubleshooting fixes.

Quick takeaway: docsmall’s Image to PDF, JPG to PDF, and PNG to PDF share one free browser-local engine: up to 30 genuine JPG/PNG files per batch (100 MB each), zero server uploads, raw JPG byte embedding with no extra quality loss, and full PNG Alpha transparency on white pages. Choose “Image size” for pure on-screen viewing or “A4 portrait / landscape” for printing and formal portals—and resize or compress source images locally before generating the PDF to keep file size small.

Supported Formats and Entry Pages: Why Only Genuine JPG & PNG Pass

Image to PDF, JPG to PDF, and PNG to PDF all run the exact same local pdf-lib Web Worker—you can drop mixed JPG and PNG batches into any of the three pages (up to 30 images, 100 MB per file). Before embedding each file, the worker inspects magic header bytes (FF D8 FF for JPEG, 89 50 4E 47 for PNG) rather than blindly trusting extensions:

Source Format Accepted Directly? Underlying PDF Behavior Preparation Tip
JPG / JPEG Yes Raw JPEG bytes embedded directly—zero lossy re-encoding Ideal for camera photos, receipts, and scans; verify EXIF orientation if taken vertically
PNG Yes Lossless embedding with Alpha channel preserved on the white PDF page Ideal for crisp screenshots, diagrams, and transparent graphics; large photo PNGs bloat PDF size
HEIC / HEIF No Rejected at validation Convert locally with HEIC to JPG first
WebP / TIFF No Rejected at validation Convert locally with WebP to JPG or Image to JPG first
Renamed fake .jpg / .png Fails header check A .webp manually renamed to .jpg fails magic-byte detection Run a true format conversion instead of renaming the extension

For details on handling HEIC, WebP, and transparent PNG background colors before building a PDF, see How to Convert HEIC, PNG, and WebP to JPG: Fixing Unopenable Files, Black Backgrounds, and Larger Sizes.

Choosing Among the 5 Page Size Presets (Image Size, A4 & A3)

Picking the wrong page size is the main reason pages jump between giant and tiny in a PDF reader. docsmall provides five presets measured in standard PDF points (1 pt = 1/72 inch):

Page Size Preset Physical PDF Dimensions (pt / mm) Scaling & Placement Behavior Best Scenarios
Image size Exact pixel width × height of each image No scaling and no white margins; page matches image ratio 1:1 On-screen viewing, uniform slide decks, digital portfolios, long screenshots
A4 portrait 595.28 × 841.89 pt (210 × 297 mm) Oversized images shrink proportionally and center; smaller images stay at natural size centered Contracts, invoices, vertical ID scans, government/HR portals, standard printing (most common)
A4 landscape 841.89 × 595.28 pt (297 × 210 mm) Oversized images shrink proportionally and center; smaller images stay at natural size centered Wide desktop screenshots, landscape tables, certificates, slide handouts
A3 portrait 841.89 × 1190.55 pt (297 × 420 mm) Oversized images shrink proportionally and center; smaller images stay at natural size centered Tall posters, architectural sheets, high-res exhibition panels
A3 landscape 1190.55 × 841.89 pt (420 × 297 mm) Oversized images shrink proportionally and center; smaller images stay at natural size centered Wide blueprints, system diagrams, open two-page book spreads

One crucial detail in the worker logic: A4 and A3 presets only shrink images that exceed the page box—they never upscale small images. A 400 × 300 icon placed onto A4 portrait (595.28 × 841.89 pt) remains crisp at its native size in the center of the page instead of getting stretched into blurry pixels. Conversely, a 3000 × 4000 phone photo shrinks cleanly to fit within A4 margins while keeping high print density.

One PDF vs. One PDF per Image: Modes and File Naming

Alongside page size, you choose between One PDF and One PDF per image:

Output Mode Generated Artifact Auto-Download Filename Internal Naming & Ordering Best Fit
One PDF Single multi-page PDF docsmall-image-to-pdf.pdf Pages follow your exact card order in the queue Expense packets, multi-page contracts, application bundles, digital photo books
One PDF per image ZIP archive (one 1-page PDF per image) docsmall-image-to-pdf.zip Numbered 1-{name}.pdf, 2-{name}.pdf… inside ZIP; duplicate names get -2, -3 Portals requiring each certificate as a separate PDF; bulk single-page conversions

The ZIP archive uses STORE mode (no redundant deflate pass), keeping packaging near-instant while preserving your exact queue order through 1-, 2- filename prefixes.

Fixing Sideways Phone Photos and Mixed Portrait/Landscape Batches

Sometimes a vertical smartphone photo looks upright in your phone gallery yet appears rotated 90° once exported from JPG to PDF. Because raw JPEG byte embedding skips lossy re-encoding, cameras that store pixels sideways and rely on an EXIF Orientation tag pass those sideways pixels directly into the PDF.

Two clean, lossless ways to handle it:

  1. Straighten before combining (best for whole batches of vertical phone photos): Run affected photos through Rotate Image first so the actual pixel rows are upright, then import into JPG to PDF.
  2. Straighten individual pages afterward (best when only 1–2 pages are sideways): Drop the finished PDF into Rotate PDF and rotate just those pages by 90° without rebuilding your image queue or recompressing images.

If your batch mixes tall portrait pages and wide landscape certificates, placing both onto A4 portrait leaves extra top/bottom margins around landscape items. Either convert portrait and landscape groups separately (A4 portrait vs. A4 landscape) and combine them with Merge PDF, or rotate individual landscape pages afterward with Rotate PDF.

Why Image-to-PDF Files Grow Huge—and How to Shrink Them Free Locally

Because pdf-lib embeds each image’s original encoded stream verbatim, the resulting PDF size is roughly the sum of every source image. Fifteen 4 MB phone photos or Retina PNG screenshots immediately produce a 60 MB PDF—well above typical 5–10 MB portal limits.

Source Type Why the Output PDF Gets Heavy Recommended Pre-Conversion Local Workflow
12–48 MP smartphone JPGs 4000×3000+ pixels are far more than A4 printing or screen reading needs Shrink long edge to 1600–2400 px with Resize Image, run Normal in Compress JPG, then build via JPG to PDF
Retina / HiDPI PNG screenshots 2× pixel density plus lossless PNG encoding easily hits 2–8 MB per shot Run Slight/Normal in Compress PNG for sharp UI/text; convert photo-heavy PNGs via PNG to JPG first
One giant poster printed across multiple A4 sheets Putting one huge poster on one A4 shrinks detail beyond legibility Slice first with Split Image for A4 Printing, then merge tiles onto A4 portrait in Image to PDF (see How to Split an Image Across Multiple A4 Pages for Printing)
Already received a huge PDF without source images Cannot edit source pixels beforehand Finish with server-side Compress PDF (credit rules at Free credits & pricing)

Whenever you hold the original images, resize and compress locally before generating the PDF. The entire workflow stays free in your browser and produces crisp, compact PDFs from the start. For format-by-format compression tuning, see How to Compress JPG, PNG, and WebP Without Losing Clarity.

4-Step Local Workflow: From Raw Photos to Submission-Ready PDF

Open Image to PDF, JPG to PDF, or PNG to PDF and complete the job in four steps:

  1. Add JPG or PNG files: Click to browse, drag and drop up to 30 images (100 MB each), or paste screenshots straight from your clipboard (Ctrl+V / Cmd+V).
  2. Arrange sequence and trim messy edges: Drag cards into your exact page order, or use move-up, move-down, and remove buttons. If camera shots of paper contracts include messy desk borders, trim them cleanly with Crop Image before importing.
  3. Select output mode and page size: Pick One PDF or One PDF per image, then choose Image size or an A4 / A3 preset. Queue card aspect ratios update immediately so you can preview how pages will frame before converting.
  4. Convert and auto-download: The local worker embeds each image in order, shows live progress, and triggers automatic download of docsmall-image-to-pdf.pdf or docsmall-image-to-pdf.zip. Want to test another page size? Switch the preset and click convert again without re-uploading.

Need to stitch the new PDF with an existing Word-exported PDF or add page numbers? Hand it straight to Merge PDF and PDF page numbers—for the complete cleanup sequence, read How to Merge, Remove, Rotate, Reorder, Split, and Number PDF Pages.

7-Point Pre-Submission Checklist

Before printing or uploading your newly created PDF, verify these seven items in your local viewer:

  • Check page order end-to-end, especially front/back IDs, numbered contract pages, and multi-part screenshots.
  • Check orientation on every page so no vertical phone photo sits sideways.
  • Confirm page sizes look uniform—if printing shows uneven page scales, switch from “Image size” to “A4 portrait” and re-export.
  • Check white or light-colored transparent PNGs against the white PDF page; if white text disappears on white paper, flatten onto a dark background with PNG to JPG first.
  • Check total file size against portal or email limits, shrinking source images locally or running Compress PDF if needed.
  • Verify total page count matches your source image count (especially when batching more than 30 images across multiple runs).
  • Rename docsmall-image-to-pdf.pdf to a clear submission filename and retain original photos as backup.

7 Common Image-to-PDF Issues and How to Fix Them

Issue Likely Cause Fix
Image rejected as unsupported or fails conversion File is HEIC, WebP, TIFF, GIF, or manually renamed to .jpg/.png Convert cleanly via HEIC to JPG, WebP to JPG, or Image to JPG
Cannot add more than 30 images at once Queue limit is capped at 30 images to protect browser memory Convert in ordered batches of ≤30 and combine locally using Merge PDF
Single file rejected over 100 MB Massive uncompressed PNG or panorama exceeds the 100 MB cap Shrink pixels with Resize Image or compress via Compress PNG first
Small image sits in the middle of A4 with huge margins Anti-blur rule prevents upscaling images smaller than the page point box Use a higher-resolution image, or switch to “Image size” for on-screen viewing
Portrait phone photo appears sideways in the PDF Raw JPG embedding preserves raw pixels without applying EXIF orientation Rotate first with Rotate Image, or rotate individual pages afterward with Rotate PDF
Output PDF is tens of megabytes and fails upload Original high-megapixel JPGs or lossless PNGs embedded verbatim Resize and compress images locally before conversion, or run Compress PDF on the finished PDF
Text inside the PDF cannot be highlighted or searched Image to PDF creates raster image pages without an OCR text layer Extract editable text/tables with Extract Text & Tables from Image or Image to Word

Privacy Boundaries and When Another Tool Fits Better

Image to PDF, JPG to PDF, and PNG to PDF are 100% browser-local and free: decoding, page layout, and PDF generation run inside a local Web Worker, original photos never leave your device, and nothing is logged or watermarked. Sensitive ID cards, medical records, tax receipts, and personal contracts stay private on your machine—just remember to save the auto-downloaded file before closing or refreshing the tab.

Consider another tool when you need:

  • Searchable dual-layer OCR PDFs or editable Word/Excel documents from scanned pages—use Image to Word, Image to Excel, or desktop OCR software.
  • Multiple images arranged on a single A4 sheet (such as 2 invoices or 4 photos per page)—this tool places one image per page; use a layout app or your printer driver’s “Pages per sheet” option for multi-up layouts.
  • Custom numeric page margins (e.g., 20 mm binding gutter) or password-encrypted PDF output.
  • Converting a PDF back into JPG images, which is handled by PDF to JPG or PDF to Image.

Frequently asked questions

Does Image to PDF accept WebP, HEIC, or TIFF files directly?

Not directly. Image to PDF, JPG to PDF, and PNG to PDF verify actual file header bytes locally and accept only valid JPG/JPEG and PNG images. Convert iPhone HEIC files first with HEIC to JPG, or convert WebP and TIFF files with WebP to JPG or Image to JPG before building your PDF.

Should I pick 'Image size' or 'A4 portrait / A4 landscape'?

'Image size' sets each PDF page to match that image's own pixel width and height—zero white margins and zero scaling—ideal for screen reading, comics, or uniform slides. 'A4 portrait,' 'A4 landscape,' 'A3 portrait,' and 'A3 landscape' standardize every page to ISO paper dimensions, which is much better for duplex printing, binding, and formal submissions.

Why does a small screenshot look tiny with wide white margins on an A4 portrait page?

That is intentional anti-blur protection. When an image exceeds the chosen A4/A3 page point dimensions (e.g., 595.28×841.89 pt for A4 portrait), docsmall scales it down proportionally and centers it. When an image is already smaller than the page, it is drawn centered at its natural size instead of being stretched blurry. Use a higher-resolution source or enable 'Fit to page' in your print dialog if you want it to fill paper.

Why did a vertical phone photo turn sideways after converting JPG to PDF?

Some cameras store pixel rows horizontally and rely on an EXIF Orientation tag to tell gallery apps to rotate the view by 90°. To avoid lossy re-encoding, docsmall embeds raw JPEG bytes straight into the PDF without rewriting EXIF orientation. Rotate affected photos beforehand with Rotate Image, or straighten just those pages afterward with Rotate PDF.

Do transparent PNG images turn black when converted to PDF?

No. PNG to PDF embeds PNG files while keeping their Alpha transparency channel intact. Over a white PDF page, transparent areas display cleanly as white and soft shadows blend smoothly rather than turning solid black.

My image-based PDF is huge—should I compress the images first or compress the PDF afterward?

Always **shrink and compress the images locally before creating the PDF** whenever you have the originals. Resize Image, Compress JPG, and Compress PNG run free in your browser: resizing 4000 px phone photos to 1600–2000 px and applying Normal compression (or converting photo PNGs via PNG to JPG) typically cuts the final PDF size dramatically without spending server credits. Use Compress PDF only if you already have a finished PDF.

Does JPG to PDF recompress my photos or lower image quality?

No. docsmall uses `pdf-lib` raw JPEG byte embedding, writing your original JPEG data directly into the PDF without a second lossy encoding pass. Quality matches the original JPG exactly; oversized images are only scaled visually to fit within A4/A3 boundaries.

How many images can I combine into one PDF at once, and what if I have more than 30?

Each batch accepts up to 30 JPG/PNG images at up to 100 MB each. If you have 50 or 80 contract pages or receipt scans, convert them in ordered batches of 30 and join the resulting 2–3 PDFs locally with Merge PDF.

Will text inside the generated PDF be selectable or searchable?

No. Image to PDF places raster images onto PDF pages without running OCR, so the output is an image-based PDF. To turn photos of documents or tables into editable text and spreadsheets, use Extract Text & Tables from Image, Image to Word, or Image to Excel.