Government portals, email clients, and job boards often enforce strict 2MB or 5MB file size limits on PDF submissions. OmniTool Hub optimizes PDFs by re-encoding embedded raster images at custom DPI targets, deflating font tables, and pruning redundant structural metadata.
Key Property Parameters & Specifications
| Compression Preset | Target DPI & Quality | Typical Size Reduction |
|---|---|---|
| Extreme Compression | 72-96 DPI / 50% JPEG quality | 70% - 85% size reduction (ideal for email & web uploads) |
| Recommended Balance | 150 DPI / 75% JPEG quality | 50% - 65% size reduction (crystal-clear screen text) |
| High Quality / Print | 300 DPI / 90% JPEG quality | 25% - 40% size reduction (preserves high-res print details) |
| Lossless Metadata Prune | Strips thumbnails, revision logs, and XML tags | 5% - 15% reduction with ZERO image quality changes |
Implementation Guide & Technical Reference
In-Memory Canvas Image Downsampling
// Resample raster stream to target DPI
const canvas = document.createElement('canvas');
canvas.width = targetWidth;
canvas.height = targetHeight;
const ctx = canvas.getContext('2d');
ctx.drawImage(imgBitmap, 0, 0, targetWidth, targetHeight);
const compressedBlob = await new Promise(r => canvas.toBlob(r, 'image/jpeg', 0.72));
Browser-native raster compression.
Frequently Asked Questions (FAQ)
Will compressing a PDF make the text blurry?
No. Vector fonts and digital text remain razor sharp at any zoom level because they are mathematical vector paths. Only embedded raster images are optimized.
How does OmniTool Hub compress PDFs without uploading them?
The engine uses HTML5 Canvas and WebAssembly to downsample and re-compress embedded raster streams directly inside your browserβs memory.
Can I see the resulting file size before downloading?
Yes. The interface calculates and displays the new file size and percentage reduction immediately after processing.
Can encrypted or password-protected PDFs be compressed?
You must provide the password to decrypt the file in memory first, after which it can be optimized and re-saved.