PNG to PDF logoPNG to PDF

Make a Picture to PDF: Graphics, Logos and Transparency

By the PNG to PDF team ·

A logo on a checkerboard transparent background turning into a PDF page

To make a picture to PDF when it is a graphic, such as a logo, a drawing or a screenshot, you need to know two things first: whether the picture is raster or vector, and whether it has a transparent background. Photos are forgiving; graphics show every mistake in edges, text and transparency.

Make a picture to PDF: raster or vector

A PNG or JPG is a raster image, a grid of pixels. Placing it in a PDF does not add detail: zooming into the PDF shows the same pixels. A vector graphic such as SVG describes shapes and scales to any size. MDN’s image guide recommends SVG for diagrams, charts and icons that must render accurately at any size, and PNG for screenshots, diagrams and line art where blurring around text is very visible. If you have the vector original, keep it; if you only have a raster image, make sure it has enough pixels for the size you will print. An A4 page at 300 pixels per inch needs about 2480 by 3508 pixels.

Transparent backgrounds when you make a picture to PDF

A PNG can store transparency as an alpha channel, according to the W3C PNG specification, and JPEG has none, per MDN. A tool that turns your PNG into a JPEG has to fill the transparent area with a color. In a test on 2026-10-24, img2pdf 0.6.3 accepted an RGBA PNG, printed a message that it was computing a separate soft mask to store the transparency, and the PDF image carried a soft mask entry. Pillow 13.0.0 saved the same RGBA image as JPEG2000. PDF readers generally draw a white page behind the content, so a transparent logo usually looks white on white; place the PDF page on a colored background to see whether the transparency survived.

If you need a guaranteed result, flatten the picture onto the color you want in an image editor before converting. A flat white background is white in every viewer.

Graphics with hard edges and small text need a clean source. Lossy compression blurs text and thin lines, which is why PNG suits them better than JPG. PNG to PDF lists the methods and what each does to the pixels, and convert JPG to PDF covers the same job for photos. For the page itself, see create PDF from images. If the picture comes from a website, the format may be WebP or AVIF, which save picture as PDF explains, and the converting-from-JPG question is in from JPG to PDF.

FAQ

Does a PDF keep a picture sharp when I zoom in?

Only if the picture is vector. A raster picture stays a grid of pixels and gets blocky as you zoom in.

Will my logo keep its transparent background in the PDF?

It can, if the tool stores the alpha channel. Test with one image and check the PDF over a colored background.

PNG for a raster logo, or the vector original if you have it, because PNG is lossless and supports transparency.