summaryrefslogtreecommitdiff
path: root/format/fo/svg
diff options
context:
space:
mode:
Diffstat (limited to 'format/fo/svg')
-rwxr-xr-xformat/fo/svg24
1 files changed, 24 insertions, 0 deletions
diff --git a/format/fo/svg b/format/fo/svg
new file mode 100755
index 0000000..ae21a0b
--- /dev/null
+++ b/format/fo/svg
@@ -0,0 +1,24 @@
+case "$USE_BACKEND" in
+DEFAULT|DBLATEX)
+ echo "Sorry, no way to convert to svg, use --with-fop option for that."
+ echo "You need to install fop package for using that option."
+ exit 3
+ ;;
+FOP)
+ EXT=$(basename "$0")
+ case "$1" in
+ stylesheet)
+ ;;
+ post-process)
+ if [ "$VERBOSE" -ge 1 ]
+ then
+ echo >&2 "Post-process XSL-FO to SVG"
+ fi
+ #we need to change dir to handle external data objects correctly
+ cd "${OUTPUT_DIR}"
+ "$FOP_PATH" ${POSTARGS} -fo "${XSLT_PROCESSED}" -"${EXT}" "$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).${EXT}"
+ cd -
+ ;;
+ esac
+ ;;
+esac