Chanjify.

Practical guide

How PDF Resolution Affects JPG and PNG Output

Published Sep 19, 20267 min readPDF resolution

A PDF page does not usually have one fixed image resolution in the same way a JPG or PNG does. A digitally created PDF can contain vector text, vector shapes, and raster images together. When you export that page to JPG or PNG, a renderer turns the complete page into a fixed pixel grid. The resolution of that grid determines how much detail the resulting image can show.

This is why a PDF can look razor sharp when you zoom in inside a viewer but produce a soft JPG when exported at a small size. The original text may be vector based, but the exported image is raster. To get a sharper image, render more pixels. After that, the output format and compression settings determine how those pixels are stored.

PDF Pages Use Physical Style Coordinates, Not One Pixel Grid

PDF pages have dimensions in document coordinates. A common page can be described in points, with 72 points traditionally corresponding to one inch in PDF user space.

That does not mean the page is permanently limited to 72 pixels per inch. A renderer can map the page to a larger or smaller pixel grid.

For example, a page that is 612 by 792 points can be rendered at scale 1 into roughly 612 by 792 CSS pixel units in a straightforward PDF.js workflow. Rendering at scale 2 roughly doubles each dimension, producing four times as many pixels overall.

The content is redrawn at the selected scale. Vector elements can remain crisp during that rasterization, while embedded raster images are limited by their own source detail.

Render Scale Determines Output Pixel Dimensions

When a PDF library creates a page viewport, the selected scale determines the raster size.

A higher scale means more pixels across the same page. Small text gets more pixel samples, thin lines become easier to represent, and the image can tolerate more zoom before appearing soft.

The cost is memory, processing time, and file size. Doubling width and height produces four times the number of pixels. A large multi page document can therefore consume significant browser memory if every page is rendered at a very high scale simultaneously.

A good converter should select practical defaults and process pages efficiently rather than assuming maximum resolution is always best.

What People Mean by PDF DPI

Users often ask for a 150 DPI or 300 DPI PDF export. In practice, they usually mean they want the page rasterized at a pixel density equivalent to a certain number of pixels per physical inch.

For an 8.5 by 11 inch page at 150 pixels per inch, the output would be about 1275 by 1650 pixels. At 300 pixels per inch, it would be about 2550 by 3300 pixels.

Those calculations help when the output is intended for printing or a workflow that specifies physical resolution.

For website thumbnails, a target pixel width is often easier to reason about than DPI. If the image will display at 800 pixels wide, generate a source suitable for that usage and the screen densities you need to support.

Vector Text Benefits Most From Higher Rendering Resolution

Text generated digitally inside a PDF can often scale smoothly in the PDF viewer because its glyph outlines remain vector based.

During export, those outlines are rasterized. At a low output resolution, small characters may have only a few pixels to describe their strokes. At a higher output resolution, the renderer has more pixels available and can produce smoother, more readable text.

This does not mean every export should be huge. If the final image will be displayed as a 300 pixel thumbnail, rendering a 5000 pixel page may provide no visible benefit.

Match the rasterization size to the final presentation.

Embedded Photos Have Their Own Resolution Ceiling

A PDF page may contain a photo that was only 800 by 600 pixels before being placed into the document.

Rendering the whole page at 4000 pixels wide does not turn that photo into a native 4000 pixel source. The page's vector text may become extremely sharp, while the photograph simply gets interpolated.

This explains why some PDF exports contain crisp text next to a blurry image. The page is mixing content types with different source quality.

If your goal is to recover the original embedded photograph, extracting the image object may be more appropriate than rasterizing the entire page.

JPG Adds a Second Quality Decision

After rasterization, JPG applies lossy compression.

Even if the page was rendered at a high resolution, a low JPEG quality setting can create artifacts around text, lines, and edges.

For photograph heavy pages, JPG can still be an excellent output because it keeps files compact. For text heavy pages, use a higher quality setting or choose PNG.

Do not try to solve a low rendering resolution by increasing JPEG quality. More faithful compression cannot invent pixels that were never rendered.

The correct order is: choose output dimensions first, then choose compression.

PNG Preserves the Rendered Pixels but Can Be Large

PNG uses lossless compression, so it is well suited to page exports containing text, forms, line drawings, or screenshots.

If the page is rendered at 2500 by 3500 pixels, PNG preserves that raster representation without conventional lossy compression artifacts.

The drawback is size. Photograph heavy pages can produce large PNG files because complex continuous tone data does not always compress efficiently losslessly.

If a document contains mostly photos, JPG or WebP may be more practical. If it contains small text and precise graphics, PNG often justifies the extra bytes.

High Density Screens and Canvas Rendering

Browser rendering introduces another concept: device pixel ratio.

A canvas displayed at 800 CSS pixels wide may be backed by 1600 physical pixels on a device with a pixel ratio of 2. If the canvas backing store is only 800 pixels, the page can appear softer on that high density display.

PDF.js examples commonly account for output scaling when rendering to canvas.

For downloadable images, however, the output pixel dimensions should be chosen intentionally rather than simply copying the user's device pixel ratio. A download needs to work beyond the current screen.

How to Choose an Export Resolution

For small web thumbnails, render close to the largest pixel size the thumbnail actually needs, with allowance for high density displays if relevant.

For readable document previews, use enough width that ordinary body text remains clear without excessive zoom.

For presentation slides or detailed review, choose larger dimensions.

For printing, work from the intended physical page size and the required pixel density.

If the PDF is important as a source document, keep it. A raster export is a derivative optimized for another task.

Common Mistakes

One mistake is assuming the PDF has a fixed 72 DPI limit. Vector content can be rendered at many resolutions.

Another is exporting at enormous dimensions and then compressing the JPG so aggressively that text quality is lost anyway.

A third is treating a high resolution page render as proof that low resolution embedded images have been improved.

Finally, users sometimes change a DPI metadata tag on an already created PNG without changing its pixels and expect more detail. The pixel grid remains the same unless the page is rendered again at a larger size.

?

Frequently Asked Questions

Choose pixel dimensions based on the largest size the page image will actually be displayed. If users need to zoom into small text, create a larger version or multiple sizes. Avoid one oversized image for every visitor when responsive delivery can provide smaller alternatives.

Conclusion

PDF export quality is controlled first by rasterization resolution. The page can contain scalable vector content, but JPG and PNG outputs cannot. Render enough pixels for the intended use, recognize that embedded raster images have their own limits, and then choose PNG or JPG based on the page content and file size requirements. Higher resolution is useful only when those extra pixels serve a real purpose.

Put the guide into practice

Browse all file tools

Chanjify Guides

Continue exploring practical explanations for formats, conversions, and file workflows.

All guides