When you need a JPG or PNG as a PDF
Most cases come down to one of three things: you need to upload a "PDF" to a system that doesn't take images; you want to combine an image with metadata like a header; or you want the image to be the right paper size for printing.
What this page does
You drop in an image. The image is embedded as a centered, page-width <img> in an HTML document, then rendered to PDF with the chosen paper size. The original image quality is preserved — no re-encoding.
What this page doesn't do (yet)
- Multiple images per PDF. v1 is one image, one PDF. If you need a combined PDF from many images, that's high on the v2 list.
- OCR. The image is treated as an image, not as text. If you want the text inside the image extracted, that's a job for our sister site t0md.com.
- HEIC / WebP / AVIF. v1 sticks to JPG and PNG, which together cover the vast majority of use cases. Convert to PNG first if you have something exotic.
From the command line
curl -X POST https://a2pdf.com/convert \ -F "[email protected]" \ -F "paper_size=a4" \ -o photo.pdf
FAQ
No. We embed the original image bytes as a base64 data URL inside HTML and print to PDF. Whatever resolution and quality the input had is what the PDF gets.
It's scaled to fit the page width with proportional height. If the resulting height is taller than the page, Chromium will spill the bottom onto a second page.