Skip to content

PNG to PDF converter

PNG → PDF in the API produced one image-only page from each PNG, with our 96×64 alpha test becoming a 72×48 pt PDF.

  • Converted with Image engine · nothing stored
  • Free: 5 conversions a day · 5 MB each
  • Higher limits →

From real runs

What you get — and what changes

  • Raster pixels Kept

    The PNG is placed as image content in the PDF; it is not redrawn as vector paths or document text.

  • Transparency Changed

    RGBA transparency is composited before PDF writing when a background is supplied, so alpha is no longer editable.

  • Page geometry Changed

    A 96×64 px PNG became a 72×48 pt PDF page; a Letter pageSize probe did not change the measured page box.

  • Text in screenshots Changed

    Letters inside a PNG screenshot remain pixels in the PDF and cannot be selected without OCR.

  • PNG text chunks Lost

    The Comment and Source chunks in our test PNG were absent from the generated PDF record.

  • File size Changed

    The small 1,084 byte alpha PNG became a 2,888 byte PDF because the PDF container adds page structure.

Sample conversions

Transparent UI capture

Input
A 96×64 RGBA PNG with two text chunks, an sRGB ICC profile, and transparent corners.
Output
A one-page 2,888 byte PDF with a 72×48 pt page. The visible artwork rendered on a solid background, and no selectable text appeared.

Palette PNG proof

Input
A 64×48 palette PNG with a transparent palette index and red and blue shapes over empty corners.
Output
A one-page 2,305 byte PDF. The page was image-only, and transparent palette corners rendered light rather than carrying alpha.

A real PNG → PDF run

We converted our PNG sample (20 KB) with Image engine on 2026-10-20. It took 49 ms and produced a 32 KB PDF file, 1.6× larger than the input. The engine raised 1 warning, listed below.

Input · sample.png · 20 KB

1200 × 800 px, 8-bit, colour type 6

Width
1,200
Height
800
Encoding
8-bit, colour type 6

Output · sample.pdf · 32 KB

PDF 1.4, 1 page, no text layer, 1 image object

Version
1.4
Pages
1
Images
1
Text layer
no
  • Image metadata stripped from output.

Is your file a scan?

If the PNG is a scan or screenshot, zoom in and try selecting text after conversion. PNG → PDF keeps the page as pixels; Deep Read is the route that can turn those pixels into searchable or editable text.

Options and when to change them

background
Set a solid color when a transparent PNG must be readable in PDF viewers that show alpha over black or checkerboard previews.
width
Resize during conversion when the PDF page should be built from a smaller or larger raster than the source PNG.
height
Use with width for a fixed page raster; leave one dimension unset to keep the source aspect ratio.
fit
Choose contain for padding, cover for cropping into a target box, or fill when distortion is acceptable.

Do it yourself

Pillow 11

bash
from PIL import Image

im = Image.open("in.png").convert("RGBA")
bg = Image.new("RGBA", im.size, "#ffffff")
bg.alpha_composite(im)
bg.convert("RGB").save("out.pdf")

This creates an image-only PDF. Use OCR separately if the PNG is a screenshot of text.

PNG to PDF by API or MCP

The HTTP API and the MCP server run the exact engine this page uses (Image engine); the response carries the same warnings the web converter shows. Check support first with GET /api/v1/pairs?from=png&to=pdf.

curl
curl -X POST https://filetypeconverters.com/api/v1/convert \
  -H "Authorization: Bearer $FTC_API_KEY" \
  -F "file=@input.png" -F "from=png" -F "to=pdf" \
  -F 'options={"dpi":96}' \
  --output output.pdf

Options this engine accepts for PNG → PDF

KeyApplies toTypeDefault
dpiReading PNGnumber96
widthWriting PDFnumber0
heightWriting PDFnumber0
fitWriting PDFcontain · cover · fillcontain
qualityWriting PDFnumber90
backgroundWriting PDFstring#ffffff
stripMetadataWriting PDFbooleantrue
API reference

When this is the wrong conversion

  • Use PNG → JPG if the receiver wants a photo file rather than a PDF wrapper.
  • Use screenshot-to-text when the PNG contains tables, labels, or paragraphs that must become editable text.
  • Keep PNG when transparency must remain an alpha channel for compositing.

PNG to PDF questions

Does PNG → PDF make screenshot text selectable?

No. The API output had zero extracted text when opened with PyMuPDF. Run an OCR or Deep Read workflow when the words need to be copied.

Can I force Letter or A4 pages for PNG → PDF?

Not in the tested API path. A pageSize value of Letter produced the same measured page box as the default run.

What happens to transparent PNG corners?

The PDF stores a flattened image page for this route. Pick the background color before conversion if the transparent edge will sit on a known paper color.