PDFDock Logo
PDFDockFile processor
PDF Optimization8 min readUpdated Sep 3, 2026

Raster vs Vector Graphics in PDF: Resolution, DPI Scaling & Print Quality Explained

One of the most powerful aspects of the PDF format is its ability to seamlessly combine resolution-independent vector paths with pixel-based raster bitmaps. However, misunderstanding the relationship between DPI (Dots Per Inch), PPI (Pixels Per Inch), and vector geometry leads to oversized files, blurry prints, and pixelated diagrams. This technical guide explains how PDF rendering engines calculate resolution, why downsampling follows quadratic file size savings, and how to optimize documents for both digital screens and commercial print presses.

PDFDock Engineering Team
Document Systems & Graphics Specialists

Key Technical Takeaways

  • Vector elements (text, paths, geometric shapes) scale infinitely with zero pixelation and consume minimal byte storage.
  • Raster images (photos, scanned pages, bitmap logos) are fixed pixel grids that degrade when scaled beyond their native resolution.
  • The PDF coordinate space uses PostScript points (1/72 inch). DPI is calculated dynamically based on pixel dimensions divided by physical display size.
  • Downsampling image DPI reduces file size quadratically: halving DPI from 300 to 150 cuts raw pixel data by 75%.

Table of Contents

1. Vector Math vs Raster Bitmaps in PDF Streams

A PDF file stores visual information in two fundamentally distinct paradigms: ### Vector Graphics (Resolution-Independent) Vector graphics are stored as mathematical drawing instructions using cubic Bézier curves, line segments, and coordinate points (e.g. 'm' for move-to, 'l' for line-to, 'c' for curve-to). Text glyphs are also stored as vector contours. Whether you view a vector letter at 100% on a phone or zoom to 3200% on an 8K monitor, the PDF rendering engine recalculates the curves instantaneously. Vector graphics never pixelate and maintain razor-sharp edges at all zoom levels. ### Raster Images (Resolution-Dependent) Raster images (embedded via PDF XObject Image dictionaries) consist of a finite grid of color pixels (samples per line and lines per image). If you zoom in on a raster photograph or a scanned page, the individual pixels expand, revealing jagged block artifacts (pixelation). The golden rule of PDF optimization is to keep text, diagrams, graphs, and line art as native vectors, reserving raster encoding strictly for photographs and photographic scans.

Never take a screenshot of text or charts to paste into a PDF. Always export directly from Word, Excel, or Figma to retain lightweight, crisp vector paths.

2. The Math Behind DPI, PPI, and PDF Coordinate Space

In the PDF specification (ISO 32000), physical page geometry is measured in **User Units**, where 1 unit corresponds to 1 PostScript point (1/72 of an inch). A standard US Letter page (8.5 x 11 inches) measures 612 x 792 points. An A4 page (210 x 297 mm) measures 595.28 x 841.89 points. When an image is embedded into a PDF, the file does not have a fixed DPI. Instead, its effective DPI is determined dynamically: ``` Effective DPI = (Image Pixel Dimension) / (Displayed Physical Dimension in Inches) ``` For example, if you embed a 2400 x 3000 pixel image across a full 8 x 10 inch print area: - Effective DPI = 2400 / 8 = **300 DPI** (Commercial Print Standard). If you stretch that exact same 2400-pixel image across a billboard measuring 80 inches wide: - Effective DPI = 2400 / 80 = **30 DPI** (Low Resolution).

3. Resolution Targets: Screen (72-96 DPI) vs Commercial Print (300 DPI)

Choosing the correct DPI target depends entirely on your document's distribution medium:
Medium / DestinationTarget DPIVisual ResultIdeal Use Case
Web / Mobile Screen72 – 96 DPICrisp on screens; tiny file sizeEmail attachments, web downloads, portals
High-DPI Retina Displays144 – 150 DPIUltra-sharp on 4K/Retina displaysInteractive corporate presentations, portfolios
Standard Office Laser Print150 – 200 DPIClean monochrome/color text and chartsInternal reports, invoices, legal notices
Commercial Offset Print300 – 600 DPIFlawless microscopic detail on glossy paperMarketing brochures, magazines, book publishing

4. Downsampling Mathematics: Quadratic File Reduction

Why does downsampling image resolution have such a dramatic impact on PDF file size? Because image data scales **quadratically**, proportional to the square of resolution: ``` Total Pixels = (Width × DPI) × (Height × DPI) = Width × Height × (DPI)² ``` If a digital camera scan produces an image at 300 DPI with 36 million pixels (108 MB uncompressed RGB data): - Downsampling to 150 DPI reduces pixel count to **9 million pixels** (a **75% reduction** in raw pixel volume). - Downsampling to 100 DPI reduces pixel count to **4 million pixels** (an **89% reduction**). By using client-side compression tools like [Compress PDF](/tools/compress-pdf/) or [Compress Image](/tools/compress-image/), you exploit this quadratic scaling to turn unmanageable 40MB documents into 2MB files while retaining visually indistinguishable clarity.

Bicubic downsampling calculates the weighted average of surrounding pixels to avoid the jagged aliasing artifacts that occur with simple nearest-neighbor reduction.

5. Best Practices: Keeping Text Crisp While Shrinking Images

Follow these engineering rules to optimize documents: 1. **Never Rasterize Text**: Ensure your PDF creation software embeds TrueType/OpenType fonts. Never convert pages to JPEG before building a PDF. 2. **Batch Downsample Heavy Images First**: Before compiling scanned receipts or photo attachments into a PDF, use [Resize Image](/tools/resize-image/) or [Compress Image](/tools/compress-image/) to target a maximum width of 1600–2000 pixels. 3. **Use Vector Logos**: Always embed company logos as SVG or EPS vectors rather than transparent PNG bitmaps. 4. **Inspect with Local Utilities**: When assembling final documents, use [Images to PDF](/tools/images-to-pdf/) and [Merge PDF](/tools/merge-pdf/) directly in your browser without cloud upload.

Frequently Asked Questions

Why do scanned PDFs take up so much more space than digital PDFs?▼

Digital PDFs store text as compact vector character codes (a few bytes per word). Scanned PDFs store every single page as a massive full-bleed bitmap image composed of millions of color pixels.

What DPI should I use when scanning documents for email or web upload?▼

For text documents and contracts, 150 to 200 DPI in grayscale provides perfect OCR readability and crisp printing while keeping file size under 1MB per 10 pages.

Does resizing a PDF change its vector text resolution?▼

No. Vector paths and text glyphs in a PDF have no intrinsic pixel resolution. They render at the maximum physical resolution of whatever screen or printer displays them.

What is the difference between DPI and PPI?▼

PPI (Pixels Per Inch) measures digital image sensor resolution and monitor display density. DPI (Dots Per Inch) measures physical ink dot spacing on commercial printers. In digital PDF optimization, the terms are often used interchangeably to refer to pixel sampling frequency.

Recommended PDFDock Tools for This Guide

Related Guides & Analyses