pub unsafe extern "C" fn fz_new_svg_device_with_id(
    ctx: *mut fz_context,
    out: *mut fz_output,
    page_width: f32,
    page_height: f32,
    text_format: c_int,
    reuse_images: c_int,
    id: *mut c_int
) -> *mut fz_device
Expand description

Create a device that outputs (single page) SVG files to the given output stream.

output: The output stream to send the constructed SVG page to.

page_width, page_height: The page dimensions to use (in points).

text_format: How to emit text. One of the following values: FZ_SVG_TEXT_AS_TEXT: As elements with possible layout errors and mismatching fonts. FZ_SVG_TEXT_AS_PATH: As elements with exact visual appearance.

reuse_images: Share image resources using definitions.

id: ID parameter to keep generated IDs unique across SVG files.