SVG Output Device

The SVG output device is used to generate SVG pages from arbitrary input.

End users will probably prefer to use the document writer interface (see DocumentWriter DocumentWriter) which wraps this class up, rather than call it directly.


\begin{lstlisting}
/*
fz_new_svg_device: Create a device that outputs (single p...
...ext *ctx, fz_output *out, float page_width, float page_height);
\end{lstlisting}

The device currently generates SVG 1.1 compliant files. SVG Fonts are NOT used due to poor client support. Instead glyphs are sent as reusable symbols. Shadings are sent as rasterised images. JPEGs will be passed through unchanged, and all other images will be converted to PNG.