summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/output-svg.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-02-10 13:26:44 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-02-14 17:56:55 +0100
commit8b2296b18b884432a4447885269482c4e111f919 (patch)
tree733eef010987e823ebb74c8d86f8d891d010a521 /include/mupdf/fitz/output-svg.h
parente513a82aa469ae96440c4f2b5197da07e36e25f2 (diff)
downloadmupdf-8b2296b18b884432a4447885269482c4e111f919.tar.xz
Make svg text output format a runtime option.
Diffstat (limited to 'include/mupdf/fitz/output-svg.h')
-rw-r--r--include/mupdf/fitz/output-svg.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/include/mupdf/fitz/output-svg.h b/include/mupdf/fitz/output-svg.h
index 348d6c7c..ebabc42a 100644
--- a/include/mupdf/fitz/output-svg.h
+++ b/include/mupdf/fitz/output-svg.h
@@ -6,16 +6,23 @@
#include "mupdf/fitz/device.h"
#include "mupdf/fitz/output.h"
+enum {
+ FZ_SVG_TEXT_AS_PATH = 0,
+ FZ_SVG_TEXT_AS_TEXT = 1,
+};
+
/*
fz_new_svg_device: Create a device that outputs (single page)
- SVG files to the given output stream.
+ SVG files to the given output stream.
+
+ output: The output stream to send the constructed SVG page to.
- output: The output stream to send the constructed SVG page
- to.
+ page_width, page_height: The page dimensions to use (in points).
- 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 <text> elements with possible layout errors and mismatching fonts.
+ FZ_SVG_TEXT_AS_PATH: As <path> elements with exact visual appearance.
*/
-fz_device *fz_new_svg_device(fz_context *ctx, fz_output *out, float page_width, float page_height);
+fz_device *fz_new_svg_device(fz_context *ctx, fz_output *out, float page_width, float page_height, int text_format);
#endif