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.
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
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
3. Resolution Targets: Screen (72-96 DPI) vs Commercial Print (300 DPI)
| Medium / Destination | Target DPI | Visual Result | Ideal Use Case |
|---|---|---|---|
| Web / Mobile Screen | 72 – 96 DPI | Crisp on screens; tiny file size | Email attachments, web downloads, portals |
| High-DPI Retina Displays | 144 – 150 DPI | Ultra-sharp on 4K/Retina displays | Interactive corporate presentations, portfolios |
| Standard Office Laser Print | 150 – 200 DPI | Clean monochrome/color text and charts | Internal reports, invoices, legal notices |
| Commercial Offset Print | 300 – 600 DPI | Flawless microscopic detail on glossy paper | Marketing brochures, magazines, book publishing |
4. Downsampling Mathematics: Quadratic File Reduction
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
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
Reduce PDF file size by downsampling embedded images without losing layout.
Convert PNG, JPG, or WebP images into a perfectly formatted PDF document.
Shrink JPG, PNG, or WebP files using smart compression. Compare before/after sizes.
Change the width and height dimensions or scale by percentage. Toggle lock ratio.