aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/tools
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-06-09 08:49:27 +0000
committerJeremias Maerki <jeremias@apache.org>2005-06-09 08:49:27 +0000
commit4aa0eca9779c3baf8ed3a21d6fd9e06fa2d71af9 (patch)
treee573b7bc321d90ea2d40719ec0e855557c56180e /src/java/org/apache/fop/tools
parentdd08f131b250a44f7b900b895deadf70981114fa (diff)
downloadxmlgraphics-fop-4aa0eca9779c3baf8ed3a21d6fd9e06fa2d71af9.tar.gz
xmlgraphics-fop-4aa0eca9779c3baf8ed3a21d6fd9e06fa2d71af9.zip
Bugzilla: #33760
Resurrected Java2D/AWT Renderer (including bitmap output to PNG and TIFF using the Batik codecs and print capability). Submitted by: Renaud Richardet <renaud.richardet.at.gmail.com> Changes on the original patch: - PageViewport: isResolved() caused a NPE which I fixed. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198725 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/tools')
-rw-r--r--src/java/org/apache/fop/tools/anttasks/Fop.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/tools/anttasks/Fop.java b/src/java/org/apache/fop/tools/anttasks/Fop.java
index c60bb9f06..a26febb40 100644
--- a/src/java/org/apache/fop/tools/anttasks/Fop.java
+++ b/src/java/org/apache/fop/tools/anttasks/Fop.java
@@ -354,6 +354,13 @@ class FOPTaskStarter {
|| format.equalsIgnoreCase("at")
|| format.equalsIgnoreCase("xml")) {
return Constants.RENDER_XML;
+ } else if (format.equalsIgnoreCase("image/tiff")
+ || format.equalsIgnoreCase("tiff")
+ || format.equalsIgnoreCase("tif")) {
+ return Constants.RENDER_TIFF;
+ } else if (format.equalsIgnoreCase("image/png")
+ || format.equalsIgnoreCase("png")) {
+ return Constants.RENDER_PNG;
} else {
String err = "Couldn't determine renderer to use: " + format;
throw new BuildException(err);
@@ -376,6 +383,10 @@ class FOPTaskStarter {
return ".txt";
case Constants.RENDER_XML:
return ".xml";
+ case Constants.RENDER_TIFF:
+ return ".tiff";
+ case Constants.RENDER_PNG:
+ return ".png";
default:
String err = "Unknown renderer: " + renderer;
throw new BuildException(err);