1. Structural Vector PDF Operations vs. Rasterization
Merging, splitting, rotating (/Rotate dictionary entries), and removing pages with pdf-lib operates directly on PDF object streams and page trees. Because glyphs, vector paths, and hyperlinks are copied structurally, text stays crisp at 800% zoom and searchable without inflating file size.
Conversely, converting scanned receipts to JPG, stamping a transparent canvas signature, or stripping heavy high-DPI bitmaps through compressed PDF export touches pixel streams locally in browser RAM—so tax forms, leases, and ID scans never touch a remote disk.
- Merge / Split / Rotate / Delete: Lossless PDF catalog & page dictionary operations
- Password Lock / Unlock: Protects or strips user/owner encryption flags on-device when permitted
- Visual Sign & Watermark: Embeds clean vector text or PNG alpha stamps on target coordinates
2. Choosing Between WebP, AVIF, PNG & Multi-Size Favicons
Modern websites ship WebP or AVIF instead of oversized JPEGs and 24-bit PNGs. WebP delivers broad compatibility with full alpha transparency at ~25%–35% smaller sizes than PNG/JPEG, while AVIF achieves even tighter bitrates on smooth gradients and product photography.
For branding assets, keep an crisp SVG/PNG master icon, remove noisy backdrops cleanly, inspect exact HEX/RGB swatches, and export standard 16×16, 32×32, and 180×180 Apple Touch favicons alongside blurred/redacted screenshots before publishing documentation.
Technical References & Standards Basis
- ISO 32000-1 / 32000-2 PDF Page Tree & Encryption Dictionary Specifications
- WebP & AV1 Image File Format (AVIF) Codec Specifications
