From f4defeee497d21a211f83e7a8d2d6c2dcadca607 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 17 Feb 2017 15:09:20 +0100 Subject: Add no-reuse-images option to SVG device. Also add explicit viewBox and width/height to image symbol and use elements, to work around a strange clipping/image scaling issue with firefox. --- include/mupdf/fitz/output-svg.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mupdf/fitz/output-svg.h b/include/mupdf/fitz/output-svg.h index ebabc42a..16e2102b 100644 --- a/include/mupdf/fitz/output-svg.h +++ b/include/mupdf/fitz/output-svg.h @@ -22,7 +22,9 @@ enum { 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. */ -fz_device *fz_new_svg_device(fz_context *ctx, fz_output *out, float page_width, float page_height, int text_format); +fz_device *fz_new_svg_device(fz_context *ctx, fz_output *out, float page_width, float page_height, int text_format, int reuse_images); #endif -- cgit v1.2.3