Image to PDF
A hand-written minimal PDF writer: one image per page, pages default to each image pixel size or can be unified to the first image, producing real openable PDF bytes.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Images are embedded into the PDF locally in your browser and never uploaded.
Pick JPG / PNG images and each one is listed with its size.
When checked every page uses the first image size and others scale to fit; otherwise each page follows its own image.
Result
Images: 0
What this tool does
- Bind scans together: several scanned images become a one-image-per-page PDF whose pages follow the image pixels instead of being forced to A4.
- Archive long screenshots: chat logs or full-page captures keep their native size so text stays sharp when flipping.
- Unify the paper: with "Uniform page size" checked every page takes the first image size and the rest scale to fit centred.
- Verify before delivery: the page list shows each page drawn size so a stretched image is easy to catch.
Example
Input
Two PNGs (120 × 80 and 60 × 90), uniform page size unchecked
Output
Images: 2 Pages: 2 PDF size: 1234 B Uniform page size: No (each page follows its image) Page 1 drawn at: 120 × 80 pt
Each image gets its own page and the MediaBox uses the pixel values as points; images are embedded as XObjects and the PDF structure (xref / trailer) is complete and openable.
Frequently asked questions
Why is the page a few hundred points instead of A4?
The default one-image-per-page mode uses image pixels directly as points (1 px = 1 pt), so a 120 × 80 image becomes a 120 × 80 pt page. For standard paper use the "Images to PDF" tool in the same group and pick A4.
Will images be cropped when the page size is uniform?
No cropping. Every image is scaled proportionally to fit the page and centred, so the long edge touches the inner margin and the short edge leaves whitespace.
Which input formats are supported?
Any image the browser can decode (JPG / PNG / WebP). Inputs are re-encoded as PNG before embedding so results are consistent across browsers.
Is the generated PDF a real file?
Yes. The writer emits complete PDF 1.4 structure (header, objects, xref cross-reference table, trailer) that browsers and common readers can open.
Keywords:image2pdfimage to pdfscan to pdf