/* 2026-12-04 性能:提前宣告关键脚本。app.js 原先只在 body 末尾出现, 浏览器要解析完整份 HTML 才会开始下载(首屏 HTML 约 35KB)。 preload 让下载与 HTML 解析并行,而 defer 语义不变(DOM 就绪后按序执行)。 */

PDF to JPG Conversion: Choosing the Right DPI

2026-11-165 min readPDF Tools4 tools covered

Turning PDF pages into images comes down to one parameter that actually decides the result - DPI. Behind it sits a very simple division, and once you do it once you stop guessing.

Key takeaways
  • The maths is one step - DPI divided by 72 gives the scale factor, so an A4 page is 1239x1754 pixels at 150 DPI and 2479x3508 at 300
  • Raising DPI sharpens text and vectors, but bitmaps embedded in the PDF are capped by their original pixels, so enlarging only interpolates
  • JPEG has no alpha channel and a PDF page is a transparent canvas, so without painting white first most viewers show a black background
  • Every page has to be in memory before a multi-page job is archived, so a few hundred 300 DPI pages will exhaust memory on modest machines
  • A scan is already a bitmap, so converting it to JPG re-encodes once without adding detail and can even lose a little to double compression

#Do the division once

PDF pages are measured in points, and there are 72 points to the inch. So when rendering to a bitmap:

scale factor = DPI ÷ 72

An A4 page is 595x842 points, which gives the pixel sizes below. Treat the table as your reference:

ResolutionA4 pixelsTypical useFile size
96 DPI793x1122chat apps, email attachmentstens of KB
150 DPI1239x1754slides, documents, web images100-300 KB
300 DPI2479x3508printing, delivery, upload systems1-3 MB
Tip

When unsure, ask whether the image will be enlarged or printed. If not, 150 DPI is enough; if yes, go to 300. For the usual "send a preview" case, 96 DPI already exceeds what most screens can show.

#Sharper is not the same as higher DPI

A common misunderstanding: push DPI to 300 and everything gets clearer. That is only half true, because a page holds two kinds of content - and they react differently:

  • Text and vector art: no fixed pixel count, they are drawn, so higher DPI means crisper edges and the extra resolution genuinely pays off.
  • Embedded bitmaps (photos, scans): the pixel count is fixed, so raising DPI only interpolates them, turning edges into blurred gradients while the file grows several times over.

So look at what dominates the page. Reports, contracts and manuals built from text deserve 300 DPI; a photo-heavy brochure is capped by the source images, and 300 DPI just wastes space.

#Why some exports come out black

This one comes up constantly and the cause is simple: JPEG has no alpha channel.

A PDF page has no background colour of its own - it is a transparent canvas that looks white only because the reader paints white underneath. Render straight to JPEG and that transparency has nowhere to go, so viewers show black.

The fix is to fill the canvas with white before drawing. It sounds trivial, yet almost everyone writing their own PDF rendering script hits it once.

Warning

If a JPG from some other tool has a black background, the PDF is not broken - that tool simply did not paint white first. Switch tools, or export PNG and look again.

#Getting many pages back at once

A 20-page PDF produces 20 images, and clicking download twenty times is not a workflow. So with PDF to JPG a multi-page job comes back as one zip with files named page-01.jpg, page-02.jpg in page order, so unzipping restores the original sequence.

That archive uses stored mode without compression. It sounds backwards, but the JPEGs are already compressed: a second pass typically saves one or two percent and costs several times the time, while stored mode packs almost instantly.

Two practical constraints matter when the page count grows:

  • Memory: every page is generated and held in memory before the archive is built, so a few hundred pages at 300 DPI can stall or crash a modest machine.
  • Time: rendering is sequential, and a single 300 DPI page takes a fraction of a second to a second, so long documents need patience.

If the document is huge, extract the pages you need with Split PDF first and convert the subset - far faster than converting the whole file.

#Three myths about scans and screenshots

Myth one: converting a scan to JPG makes it sharper. It does not. A scan is already a full-page image inside the PDF; converting only re-encodes it in a different container and may lose a little detail to the second compression.

Myth two: the output is "the original image from the PDF". It is not. This is a re-render, not an extraction: text that was stored as font plus encoding becomes pixels, and embedded photos are resampled to the target resolution.

Myth three: screenshots and conversion are about the same. A screenshot is limited by screen resolution and captures the interface too, whereas rendering follows the real page size regardless of window size - which is why conversion beats screenshots when you need a presentable page preview.

Note

To shrink the images further, use an image compressor rather than fiddling with DPI: it only touches quality and pixel dimensions, while DPI also changes how crisp the layout looks. Going the other direction, combine images back into a single document with Image to PDF.

#Frequently asked questions

#The image looks blurry after converting. Is that the tool?

Usually the resolution is too low: an A4 page at 150 DPI is only 1239x1754 pixels, so it softens as soon as you zoom in on a 4K screen. Try 300 DPI. If it is still blurry, the PDF itself holds low-resolution images and no tool can invent detail.

#Why is my exported image black?

JPEG has no alpha channel and a PDF page is a transparent canvas, so without painting white first the result is black. This site fills white before rendering, so it does not happen here - but if you script it yourself, draw a white rectangle first.

#Can I export a transparent background?

No - the JPEG format does not support transparency, that needs PNG. Also keep in mind that inside a PDF "transparent" means there is no content there, not that the content is white; the two look different.

#How large is one converted page?

For A4: roughly tens of KB at 96 DPI, typically 100-300 KB at 150 DPI, and 1-3 MB at 300 DPI, depending on content complexity and the quality level. Text pages compress smaller than photo pages.

Tip

If what you actually need is editable text rather than an image, use PDF to Word - that is an entirely different path.

Tools used in this guide

Related guides