PDF to PNG Transparent Background: Why Pages Come Out White

Last updated

PDF to PNG gives every page an opaque background rather than a transparent one: it renders with Ghostscript's png16m device, which writes 24-bit RGB with no alpha channel.

Ghostscript offers transparency through two other PNG devices: its documentation describes png16malpha and pngalpha as 32-bit RGBA output with transparency. Details of Ghostscript Output Devices (Ghostscript documentation)

PDF To PNG

Why PDF to PNG Has No Transparent Background

The PNG format itself allows transparency, since the W3C specification lists an optional alpha channel alongside indexed-colour, greyscale and truecolour images. Portable Network Graphics (PNG) Specification, Third Edition (W3C)

Ghostscript's documentation recommends png16m for normal use with 24-bit RGB colour, a layout with no place for transparency. Details of Ghostscript Output Devices (Ghostscript documentation)

It's the same png16m setting whether you convert all pages or only the ones you select.

How to Get a PNG With a Transparent Background From a PDF

With the alpha devices, Ghostscript leaves the background transparent unless the page has been explicitly filled. Details of Ghostscript Output Devices (Ghostscript documentation)

Ghostscript also warns that PDF 1.4 files using transparency do not get a transparent background from that device. Details of Ghostscript Output Devices (Ghostscript documentation)

Install Ghostscript on your own computer if you need PNG pages with an alpha channel.

Run gs -sDEVICE=pngalpha -r300 -o page-%d.png input.pdf to render each page with a transparent background.

Remove the white background in an image editor such as GIMP if you only need one image.

What pngalpha Did With a Logo PDF in Our Test

We made logo.pdf, a 200-point page with one blue circle and no background. In October 2026 the PNG from our tool came back with three color channels and pure white corners.

Run through gs -sDEVICE=pngalpha -r300, the same file gave a four-channel PNG with fully transparent corners, 10,662 bytes against 11,085 for our tool's PNG.

Then we drew the circle at 50% opacity. pngalpha kept its blue at half transparency (alpha 128), while our tool blended it with white into a light blue.

That opacity is a PDF 1.4 transparency feature, and Ghostscript 10.07.1 still gave the page a transparent background. So the warning above didn't apply to this file.

Use pngalpha for logos with see-through parts, and skip erasing the white background afterwards.

Why Some PDFs Stay White Even With pngalpha

Whether the page is filled comes down to the app that made the PDF. In October 2026 a logo exported to PDF by LibreOffice Draw, and a slide exported by LibreOffice Impress, came out of pngalpha without a single transparent pixel, because both apps paint an opaque white page.

A page exported by LibreOffice Writer kept transparent corners, and so did the same logo run through our PNG to PDF tool and a PDF made with pdf-lib.

Export the logo from a program that leaves the page unfilled, or remove the page background in the source file first.

Check the Background of Your PNG Pages

Open a downloaded PNG in an image editor that shows transparency as a checkerboard.

Look at the area around the content: solid white there marks an opaque PNG.

You get a ZIP with one PNG per page, named Page-1.png, Page-2.png and so on.

PDF to PNG results screen with the Download button, after converting pages without a transparent background
The download screen once the PNG pages are ready.

Continue with Why PDF to PNG Files Are So Large and How to Keep Them Small or PDF to JPG Blurry Text: Causes and Fixes.

Frequently Asked Questions about PDF to PNG Transparent Background: Why Pages Come Out White

Can I turn on transparency in PDF to PNG?

No. The Ghostscript command is fixed, and the page gives you only two choices: convert all pages or convert selected pages.

Why is my logo's background white after conversion?

Ghostscript's png16m device paints every pixel of the page, so anything the PDF leaves empty comes out white in the PNG.

Do I get one file or many?

Many, packed in a ZIP. Even a single page comes back inside one, because the PNG route never asks for the one-file download.

Which pages can I convert?

Choose Convert Selected Pages and click the thumbnails you want before starting the extraction.