Images to PDF
jsPDF A4 portrait, one image per page. addImage always uses JPEG. Not a merger, collage, or OCR.
Docify's Images to PDF tool combines locally chosen files into one A4 portrait PDF in the browser with jsPDF. Each image is read with FileReader.readAsDataURL, placed on its own page, scaled to fit inside the page minus 20 mm, and centered. Embed always calls addImage with the JPEG format argument. It is not a collage, PDF merger, or OCR tool. Nothing is uploaded.
Upload JPG, PNG, GIF, or other image files to get started.
No images uploaded
How it works
- Choose one or more files in the
image/*picker. Non-image MIME types are dropped. Each remaining file is read withFileReader.readAsDataURLand shown in a preview<img>. Nothing is sent to a server. - Use Up / Down to swap adjacent items, or Remove to drop one. Generate PDF walks the current list in that order.
- Export constructs
new jsPDF()(A4 portrait, millimetre units). The first image uses the default page; later images calladdPage(). Pixel size comes from an HTMLImageload of the same data URL. - Each bitmap is scaled to fit inside the page minus 20 mm on the constraining axis, then centered. Embed always calls
addImagewith format'JPEG'on the original data URL. Download isimages.pdf. This page does not merge PDFs, place several photos on one page, rotate the page to landscape, or run OCR. Generate errors surface withalert().
FAQ
- Does this tool upload my images?
- No. File read, preview, reorder, and PDF generation run in your browser. The page does not send the images or the PDF to a server.
- How is each image placed on the PDF?
- jsPDF starts as A4 portrait (millimetres). Each image gets its own page. Pixel size comes from an HTML Image load of the data URL; the bitmap is scaled to fit inside the page minus 20 mm, then centered. Landscape photos stay on a portrait page with extra side margins. The page itself is never rotated.
- What image types does Generate PDF accept?
- The picker allows any image/* file and FileReader.readAsDataURL stores that file. Preview uses a normal img tag. Embed always calls addImage with the JPEG format argument on that same data URL. Types the browser or jsPDF cannot decode (for example many SVG or HEIC files) fail at generate time with an alert. This is not an OCR, collage, or PDF-merger tool.
- Can I merge existing PDFs or put several photos on one page?
- No. Generate PDF writes one image per A4 page, addImage always passed as JPEG, and saves images.pdf. There is no PDF upload, no multi-image collage, and no text recognition.