From 600aabc6924d1f1964f6f7889a9667371a1cef03 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 3 Apr 2009 07:44:09 +0000 Subject: Fixed a bug that left the PrintRenderer unconfigured even if a configuration was specified for "application/X-fop-print". git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@761554 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/render/print/PrintRenderer.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/java') diff --git a/src/java/org/apache/fop/render/print/PrintRenderer.java b/src/java/org/apache/fop/render/print/PrintRenderer.java index 2eb2b07a2..315c12cf1 100644 --- a/src/java/org/apache/fop/render/print/PrintRenderer.java +++ b/src/java/org/apache/fop/render/print/PrintRenderer.java @@ -25,6 +25,7 @@ import java.io.IOException; import java.util.Map; import org.apache.fop.apps.FOUserAgent; +import org.apache.fop.apps.MimeConstants; /** * Renderer that prints through java.awt.PrintJob. @@ -70,6 +71,11 @@ public class PrintRenderer extends PageableRenderer { printerJob.setPageable(this); } + /** {@inheritDoc} */ + public String getMimeType() { + return MimeConstants.MIME_FOP_PRINT; + } + private void initializePrinterJob() { if (this.printerJob == null) { printerJob = PrinterJob.getPrinterJob(); -- cgit v1.2.3