diff options
author | Jeremias Maerki <jeremias@apache.org> | 2009-10-01 12:56:26 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2009-10-01 12:56:26 +0000 |
commit | 5ad3308501dc6144aa4883ae4553d1d9739d05ef (patch) | |
tree | 99ef3cef3b51515788518b26958c8fa8d36a90a9 /src/sandbox/org/apache/fop/render | |
parent | 404eacbf2cdc7202bc3161829182e33776320829 (diff) | |
download | xmlgraphics-fop-5ad3308501dc6144aa4883ae4553d1d9739d05ef.tar.gz xmlgraphics-fop-5ad3308501dc6144aa4883ae4553d1d9739d05ef.zip |
Added a DocumentHandler implementation for PNG output including multi-file output support.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@820637 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/sandbox/org/apache/fop/render')
-rw-r--r-- | src/sandbox/org/apache/fop/render/svg/SVGDocumentHandler.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sandbox/org/apache/fop/render/svg/SVGDocumentHandler.java b/src/sandbox/org/apache/fop/render/svg/SVGDocumentHandler.java index 42ca17e08..ae60cf9bc 100644 --- a/src/sandbox/org/apache/fop/render/svg/SVGDocumentHandler.java +++ b/src/sandbox/org/apache/fop/render/svg/SVGDocumentHandler.java @@ -45,6 +45,7 @@ import org.xml.sax.helpers.AttributesImpl; import org.apache.commons.io.IOUtils; +import org.apache.fop.render.bitmap.BitmapRendererEventProducer; import org.apache.fop.render.bitmap.MultiFileRenderingUtil; import org.apache.fop.render.intermediate.DelegatingFragmentContentHandler; import org.apache.fop.render.intermediate.IFException; @@ -209,9 +210,10 @@ public class SVGDocumentHandler extends AbstractSVGDocumentHandler { } else { out = this.multiFileUtil.createOutputStream(index); if (out == null) { - //TODO Convert to event - throw new IFException( - "No filename information available. Stopping after first page.", null); + BitmapRendererEventProducer eventProducer + = BitmapRendererEventProducer.Provider.get( + getUserAgent().getEventBroadcaster()); + eventProducer.stoppingAfterFirstPageNoFilename(this); } } } catch (IOException ioe) { |