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. --- source/tools/mudraw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/tools') diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c index ff915f6c..3b9911c5 100644 --- a/source/tools/mudraw.c +++ b/source/tools/mudraw.c @@ -594,7 +594,7 @@ static void dodrawpage(fz_context *ctx, fz_page *page, fz_display_list *list, in fz_try(ctx) { - dev = fz_new_svg_device(ctx, out, tbounds.x1-tbounds.x0, tbounds.y1-tbounds.y0, FZ_SVG_TEXT_AS_PATH); + dev = fz_new_svg_device(ctx, out, tbounds.x1-tbounds.x0, tbounds.y1-tbounds.y0, FZ_SVG_TEXT_AS_PATH, 1); if (lowmemory) fz_enable_device_hints(ctx, dev, FZ_NO_CACHE); if (list) -- cgit v1.2.3