Clioos › Guides › PNG to PDF

How to Convert PNG to PDF

By Clioos 团队

The free offline way is Pillow: each PNG becomes one PDF page, no upload, no account. Tested 2 November 2026 with Pillow 13.0.0 — two sample PNGs (1240x1754 at 12,179 bytes and 800x1000 at 6,571 bytes) became a 2-page PDF of 100,751 bytes. Clioos does not offer a PNG-to-PDF tool — this guide teaches the method.

At a glance

Steps

  1. Install Pillow: pip install pillow (Pillow 13.0.0 in the test).
  2. Run: Image.open(first).save("out.pdf", "PDF", save_all=True, append_images=rest, resolution=150.0).
  3. Verify: open the PDF and count the pages (2 in the test), then compare sizes — input 18,750 bytes, output 100,751 bytes.
  4. If a page looks wrong, re-run from the original PNGs — never re-convert the PDF.

Worked example (tested 2 November 2026)

Test files: two generated sample PNGs (flat graphics with line patterns). Method: Pillow 13.0.0, one image per page, 150 DPI.

FileDimensionsSize
shot1.png1240x175412,179 bytes
shot2.png800x10006,571 bytes
shots.pdf (output)2 pages, A4100,751 bytes

Total PNG input was 18,750 bytes; the PDF came out larger (100,751 bytes) because the images were re-encoded. Page count matched the image count exactly: 2 in, 2 out.

Which method to pick

What it can't do

Frequently asked questions

Is it free to convert PNG to PDF?

Yes, with Pillow — free and open source, no per-file charge. Browser tools are free up to a daily limit.

Will the PDF be smaller than the PNGs?

Not necessarily. In this test it was larger (100,751 vs 18,750 bytes) because flat PNG graphics compress extremely well and the PDF re-encodes them. Check the output size.

Can I control the page size?

Yes: page size follows the image dimensions at the resolution you set (150 DPI in the test). Larger images make larger pages.

Does the PDF text become searchable?

No. The pages are pictures of the PNGs. Searchable text needs OCR as a separate step, and OCR quality depends on the image.


Related guides: How to convert JPG to PDF · How to convert PDF to PNG · How to merge PDF files · All guides · Tool: PDF Probe