aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2009-01-12 13:34:11 +0000
committerJeremias Maerki <jeremias@apache.org>2009-01-12 13:34:11 +0000
commit216547ccfb945b408b73af703aca26973dbdc1be (patch)
tree59cbbd15e95accc1defc6b53f2d1342eacb989c0 /src/java/org
parent3ce7242995e29aed8b6281ffe8a82c56fd057802 (diff)
downloadxmlgraphics-fop-216547ccfb945b408b73af703aca26973dbdc1be.tar.gz
xmlgraphics-fop-216547ccfb945b408b73af703aca26973dbdc1be.zip
Restrict XML-formats to SVG to stream-line the image loading/conversion process.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@733745 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r--src/java/org/apache/fop/afp/svg/AFPImageElementBridge.java3
-rw-r--r--src/java/org/apache/fop/svg/PDFImageElementBridge.java5
2 files changed, 6 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/afp/svg/AFPImageElementBridge.java b/src/java/org/apache/fop/afp/svg/AFPImageElementBridge.java
index 0ff2ea71d..89b2c83dc 100644
--- a/src/java/org/apache/fop/afp/svg/AFPImageElementBridge.java
+++ b/src/java/org/apache/fop/afp/svg/AFPImageElementBridge.java
@@ -21,6 +21,7 @@ package org.apache.fop.afp.svg;
import org.apache.xmlgraphics.image.loader.ImageFlavor;
+import org.apache.fop.image.loader.batik.BatikImageFlavors;
import org.apache.fop.svg.AbstractFOPImageElementBridge;
/**
@@ -32,7 +33,7 @@ public class AFPImageElementBridge extends AbstractFOPImageElementBridge {
{//ImageFlavor.RAW_JPEG,
//ImageFlavor.RAW_CCITTFAX,
ImageFlavor.GRAPHICS2D,
- ImageFlavor.XML_DOM};
+ BatikImageFlavors.SVG_DOM};
/** {@inheritDoc} */
protected ImageFlavor[] getSupportedFlavours() {
diff --git a/src/java/org/apache/fop/svg/PDFImageElementBridge.java b/src/java/org/apache/fop/svg/PDFImageElementBridge.java
index 1a17aa410..4e5983e64 100644
--- a/src/java/org/apache/fop/svg/PDFImageElementBridge.java
+++ b/src/java/org/apache/fop/svg/PDFImageElementBridge.java
@@ -21,6 +21,8 @@ package org.apache.fop.svg;
import org.apache.xmlgraphics.image.loader.ImageFlavor;
+import org.apache.fop.image.loader.batik.BatikImageFlavors;
+
/**
* PDF Image Element Bridge class for the &lt;image> element when jpeg images.
*
@@ -37,10 +39,11 @@ public class PDFImageElementBridge extends AbstractFOPImageElementBridge {
{ImageFlavor.RAW_JPEG,
ImageFlavor.RAW_CCITTFAX,
ImageFlavor.GRAPHICS2D,
- ImageFlavor.XML_DOM};
+ BatikImageFlavors.SVG_DOM};
/** {@inheritDoc} */
protected ImageFlavor[] getSupportedFlavours() {
return supportedFlavors;
}
+
}