org.xml.graphics
Class XGResult
java.lang.Object
org.xml.graphics.XGResult
- Direct Known Subclasses:
- StreamXGResult
public abstract class XGResult
- extends java.lang.Object
This class represents the output to be generated by an FO processor
implementation.
You can set output properties to customize the output. For example,
you can set document metadata (title, author etc.) or you can customize
PDF security.
Here's an example which sets document metadata:
XGResult fopres = new StreamXGResult("application/pdf", "C:/Temp/out.pdf");
DocumentMetadata metadata = new DocumentMetadata();
metadata.setTitle("My test document");
fopres.setOutputProperty(DocumentMetadata.KEY, metadata);
- Author:
- Jeremias Maerki
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XGResult
public XGResult()
setOutputProperty
public void setOutputProperty(java.lang.String key,
java.lang.Object value)
getOutputProperty
public java.lang.Object getOutputProperty(java.lang.String key,
java.lang.Class expectedClass)
getOutputProperty
public java.lang.Object getOutputProperty(java.lang.String key)
setOutputProperties
public void setOutputProperties(java.util.Properties props)
getOutputProperties
public java.util.Properties getOutputProperties()
Copyright © 2004-2005 Jeremias Märki. All rights reserved.