SVG is the standard for vector graphics on the web. Unlike raster formats (PNG, JPEG) which store grids of pixels, SVG stores mathematical instructions (paths, polygons, text) for drawing the image.
The DOM and Styling
Because SVG is XML, it is part of the browser's Document Object Model (DOM). It can be styled with CSS and manipulated with JavaScript. This creates complex challenges for conversion engines moving SVG to static formats like PDF.
Conversion Challenges
- CSS Resolution: An engine converting SVG to PDF must calculate and apply all CSS cascades before generating the PDF vector paths.
- Filters and Blends: SVG supports complex drop-shadows and blend modes (e.g.,
multiply). Standard PDF lacks native support for some web blend modes, requiring the engine to selectively rasterize those specific bounding boxes.