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

PDF to JPG

Render every PDF page to a JPG image at 96, 150 or 300 DPI with three quality levels; multi-page jobs download as one zip.

FAQ

The JPG looks blurry after converting. What can I do?

First check whether the resolution is too low: an A4 page at 150 DPI is only about 1240x1754 pixels, so it softens as soon as you zoom in - pick 300 DPI when sharpness matters. If the images inside the PDF were low-resolution screenshots to begin with, a higher DPI only interpolates and cannot add detail; the original pixels are the ceiling.

Why do some converters produce a black background?

Because JPEG has no alpha channel while a PDF page is a transparent canvas by default - without painting white first, most viewers show black. This tool fills white before rendering, so it does not happen here; if you render with your own script, fillRect white first.

Can a multi-page PDF be exported as several images at once?

Yes. Two or more pages are packed into one zip with files named page-01.jpg, page-02.jpg in order; a single page downloads as one .jpg. The archive uses stored mode without compression, since the JPEGs are already compressed and a second pass only costs time.

Can I get a transparent background?

No - the JPEG format itself has no transparency, so that would require PNG. Note that in a PDF a transparent area means no content there rather than white content, so decide which effect you actually need before exporting.

Is the file uploaded, and does a long document take long?

Nothing is uploaded; rendering happens locally in your browser and works offline. Speed depends on page count and resolution, and every page has to be in memory before the archive is built - a few hundred 300 DPI pages consume a lot, so lower the resolution or work in batches.

About this tool

Renders every page of a PDF into a JPG image. Note that this is a re-render, not an extraction of images embedded in the file: text, vector art and fonts are rasterised again at the resolution you choose, so the output is a bitmap generated at the exact page size.

Resolution sets the ceiling on sharpness. The maths is simple - the scale factor is the DPI divided by 72. An A4 page is about 1240x1754 pixels at 150 DPI and about 2480x3508 at 300 DPI, which already exceeds most phone screens and is enough for print. Conversely, images embedded in the PDF do not become sharper at 300 DPI: their original pixels are the ceiling and enlarging only interpolates.

  • 96 DPI: chat apps, email attachments, the smallest files.
  • 150 DPI (default): slides, documents and web images, the balance point between clarity and size.
  • 300 DPI: printing, or any system that only accepts high-resolution images - and the largest files.

Why the background is always white. A PDF page has no background colour of its own; it is a transparent canvas. JPEG has no alpha channel, so without painting white first the exported image shows a black background in most viewers. This tool fills white before rendering, whatever the source page looks like.

What the three quality levels actually change. Small maps to JPEG quality 70, Standard to 82 and High to 92. On the same 150 DPI A4 page the file size can differ by more than double; use High for text-dense pages with fine type, and Standard for photos or large flat areas.

Multiple pages are bundled automatically. A single page downloads as one .jpg; two or more pages are packed into a zip with files named page-01.jpg, page-02.jpg and so on. The archive uses stored mode without compression - the JPEGs are already compressed, so a second pass would cost time and save nothing.

A few limits worth knowing up front:

  • Oversized pages get downsampled: the browser canvas has hard limits (roughly 16k pixels per side and 268 million pixels in total). Beyond that the resolution is scaled down proportionally - the job still finishes, but the status bar says it happened.
  • Password-protected PDFs must be unlocked first: content streams stay encrypted and rendering fails outright.
  • Converting a scan does not make it sharper: it was an image already, so converting re-encodes it once and can even lose a little quality to double compression.
  • Many pages means memory pressure: every page has to be in memory before the archive is built, so a few hundred 300 DPI pages consume a lot - lower the resolution or work in batches.

One difference from taking screenshots is worth stating: a screenshot is limited by your screen resolution and captures the interface too, whereas this renders at the real page size regardless of window size, so the output is directly usable for printing or upload.