summaryrefslogtreecommitdiff
path: root/format/fo/pcl
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-06 21:13:37 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-06 21:13:37 -0800
commit406716225c95ba3ba5ab14b2ce93667225f0ad80 (patch)
treed9181981542907ab562103e6f71eaf6914e1fd41 /format/fo/pcl
downloadxmlto-406716225c95ba3ba5ab14b2ce93667225f0ad80.tar.gz
xmlto-406716225c95ba3ba5ab14b2ce93667225f0ad80.tar.bz2
xmlto-406716225c95ba3ba5ab14b2ce93667225f0ad80.zip
Imported Upstream version 0.0.25upstream/0.0.25
Diffstat (limited to 'format/fo/pcl')
-rwxr-xr-xformat/fo/pcl24
1 files changed, 24 insertions, 0 deletions
diff --git a/format/fo/pcl b/format/fo/pcl
new file mode 100755
index 0000000..196413f
--- /dev/null
+++ b/format/fo/pcl
@@ -0,0 +1,24 @@
+case "$USE_BACKEND" in
+DEFAULT|DBLATEX)
+ echo "Sorry, no way to convert to pcl, 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 PCL"
+ 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