diff -Naur asciidoc-8.2.6.orig/a2x asciidoc-8.2.6/a2x --- asciidoc-8.2.6.orig/a2x 2007-11-25 23:59:55.000000000 +0100 +++ asciidoc-8.2.6/a2x 2008-05-05 02:27:11.000000000 +0200 @@ -37,6 +37,7 @@ VERBOSE_2=no VERBOSE=no XSLTPROC_OPTS= +FOP_OPTS= #-------------------------------------------------------------------- # General purpose functions @@ -195,6 +196,7 @@ --version print program version to stdout -v, --verbose print operational details to stderr --xsltproc-opts=XSLTPROC_OPTS xsltproc(1) options + --fop-opts=FOP_OPTS fop options EOF } @@ -281,6 +283,9 @@ --xsltproc-opts) XSLTPROC_OPTS="$XSLTPROC_OPTS $2" shift 2 ;; + --fop-opts) + FOP_OPTS="$FOP_OPTS $2" + shift 2 ;; --) shift; break ;; *) @@ -514,7 +519,7 @@ to_docbook execute_command_2 "xsltproc $XSLTPROC_OPTS --nonet \ \"$xsl\" \"$xml\" >\"$fo\"" - execute_command_2 "fop.sh \"$fo\" \"$pdf\"" + execute_command_2 "fop.sh $FOP_OPTS -fo \"$fo\" -pdf \"$pdf\"" } function to_odt() diff -Naur asciidoc-8.2.6.orig/doc/a2x.1.txt asciidoc-8.2.6/doc/a2x.1.txt --- asciidoc-8.2.6.orig/doc/a2x.1.txt 2008-04-04 01:13:15.000000000 +0200 +++ asciidoc-8.2.6/doc/a2x.1.txt 2008-05-05 02:28:54.000000000 +0200 @@ -89,6 +89,9 @@ Additional xsltproc(1) options. This option may be specified more than once. +*--fop-opts*='FOP_OPTS':: + Additional fop options. This option may be specified more than once. + OUTPUT FILES ------------