Why do PDF pages export to different image dimensions at the same DPI?

Account for each page’s physical size and rotation before trying to standardise the outputs.

  • Workspace tool
  • Updated
  • Reading time3 min (583 words)
  • Share

By Relwick · Published

A PDF can contain a small card page, a letter-sized page, and a landscape appendix. Converting all three at one resolution does not make their output dimensions identical.

This can be expected behaviour rather than an export defect. First compare page geometry, then decide whether the destination actually requires a uniform image size.

Quick answer & key takeaways

DPI sets the number of output pixels per inch, not one fixed width and height for every page. Pages with different physical dimensions therefore produce different image sizes at the same DPI, and rotation can swap width and height. Inspect the page dimensions before conversion. If a destination requires one pixel box, prepare each output separately without stretching its contents.

  • Equal DPI means equal pixel density across physical page dimensions.
  • Different page sizes and rotations can produce different width-height pairs.
  • Standardising output boxes requires a separate crop, fit, or layout decision.

Separate resolution from page dimensions

For a conventional page measured in inches, multiply each side by the selected DPI to estimate the corresponding pixel dimension. Relwick renders each page using its own geometry, so a larger page has more output pixels at the same resolution.

Mozilla’s PDF.js documentation explains that each page has a viewport with its own size and rotation, which can be scaled for rendering. The relevant starting point is that page’s dimensions, not the dimensions of the first page in the document.

Compare two page sizes at 150 DPI

Illustrative pages with the stated physical dimensions.
PageCalculationImage dimensions
5 × 7 inches5 × 150 and 7 × 150750 × 1,050 pixels
8.5 × 11 inches8.5 × 150 and 11 × 1501,275 × 1,650 pixels
The 5 × 7 page rotated 90°7 × 150 and 5 × 1501,050 × 750 pixels

Actual PDF geometry and rounding can affect the final integer dimensions. Read the dimensions reported for the generated image rather than treating a paper-size label as a guarantee about every file bearing that label.

Inspect page geometry before changing settings

In PDF to images, review the listed page dimensions and rotation, then compare the output dimensions shown beneath each converted image. A width-height swap may reflect rotation; a larger pair may reflect a larger page.

If all pages appear equally large in a viewer, remember that the viewer may fit each one to the available screen area. Visual display size is not proof of equal physical page geometry. Use the reported dimensions to explain the difference.

Choose a deliberate method if uniform pixels are required

First confirm whether the destination requires exact dimensions or simply a maximum size. For an exact box, fitting the whole page may require permitted margins; cropping may remove required content. Stretching changes proportions and is unsuitable when document geometry or legibility matters.

Process differently shaped outputs separately when they need different framing decisions. The batch grouping guide explains how to avoid applying shared settings to incompatible sources. Inspect complete page boundaries after any later resize.

Frequently asked questions

Does 150 DPI mean 150 pixels wide?

No. It expresses pixels per inch; the page’s physical width determines the resulting pixel width.

Should I use different DPI values to force equal widths?

Only if that suits the actual task. It changes density and does not resolve different aspect ratios or content requirements.

Is a rotated output necessarily wrong?

No. Compare the intended page orientation and the reported width and height before changing it.

Sources and further reading

Summary

Explain differing image sizes through page geometry first. Standardise them only when the destination requires it and the content can be preserved.

Related guides

Browse all guides →