diff options
Diffstat (limited to 'src/java/org/apache/fop/render/afp/AFPDocumentHandler.java')
-rw-r--r-- | src/java/org/apache/fop/render/afp/AFPDocumentHandler.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/java/org/apache/fop/render/afp/AFPDocumentHandler.java b/src/java/org/apache/fop/render/afp/AFPDocumentHandler.java index b2a1b3a3b..8391422ff 100644 --- a/src/java/org/apache/fop/render/afp/AFPDocumentHandler.java +++ b/src/java/org/apache/fop/render/afp/AFPDocumentHandler.java @@ -128,14 +128,8 @@ public class AFPDocumentHandler extends AbstractBinaryWritingIFDocumentHandler /** {@inheritDoc} */ public void startDocument() throws IFException { + super.startDocument(); try { - if (getUserAgent() == null) { - throw new IllegalStateException( - "User agent must be set before starting PostScript generation"); - } - if (this.outputStream == null) { - throw new IllegalStateException("OutputStream hasn't been set through setResult()"); - } paintingState.setColor(Color.WHITE); this.dataStream = resourceManager.createDataStream(paintingState, outputStream); |