this.info.setProducer(producer);
}
+ /**
+ * set the creator of the document
+ *
+ * @param creator string indicating application creating the document
+ */
+ public void setCreator(String creator) {
+ this.info.setCreator(creator);
+ }
+
/**
* Set the filter map to use for filters in this document.
*
this.producer = producer;
}
+ /**
+ * set the creator string
+ *
+ * @param creator the document creator
+ */
+ public void setCreator(String creator) {
+ this.creator = creator;
+ }
+
public void setTitle(String t) {
this.title = t;
}
p += "/Keywords (" + this.keywords + ")\n";
}
+ if (creator != null) {
+ p += "/Creator (" + this.creator + ")\n";
+ }
+
p += "/Producer (" + this.producer + ")\n";
// creation date in form (D:YYYYMMDDHHmmSSOHH'mm')
*/
protected int containingIPPosition = 0;
+ /** @see org.apache.fop.render.Renderer */
+ public void setProducer(String producer) {
+ }
+
+ /** @see org.apache.fop.render.Renderer */
+ public void setCreator(String creator) {
+ }
/** @see org.apache.fop.render.Renderer */
public void setUserAgent(FOUserAgent agent) {
/**
* Initiates the rendering phase.
+ * This must only be called once for a rendering. If
+ * stopRenderer is called then this may be called again
+ * for a new document rendering.
*
* @param outputStream The OutputStream to use for output
* @exception IOException If an I/O error occurs
/**
* Signals the end of the rendering phase.
+ * The renderer should reset to an initial state and dispose of
+ * any resources for the completed rendering.
*
* @exception IOException If an I/O error occurs
*/
*/
void setProducer(String producer);
+ /**
+ * Set the creator of the document to be rendered. If this method
+ * isn't called the renderer uses a default.
+ * Note: Not all renderers support this feature.
+ *
+ * @param creator The name of the document creator
+ */
+ void setCreator(String creator);
+
/**
* Reports if out of order rendering is supported. <p>
*
protected HashMap pageReferences = new HashMap();
protected HashMap pvReferences = new HashMap();
- private String producer;
+ private String producer = "FOP";
+
+ private String creator = null;
/**
* The output stream to write the document to
}
+ /**
+ * set the document creator
+ *
+ * @param creator string indicating application that is creating the document
+ */
+ public void setCreator(String crea) {
+ creator = crea;
+ }
+
/**
* set the PDF document's producer
*
public void startRenderer(OutputStream stream) throws IOException {
ostream = stream;
- this.pdfDoc = new PDFDocument(Version.getVersion());
- this.pdfDoc.setProducer(producer);
+ producer = "FOP " + Version.getVersion();
+ this.pdfDoc = new PDFDocument(producer);
+ this.pdfDoc.setCreator(creator);
this.pdfDoc.setFilterMap(filterMap);
pdfDoc.outputHeader(stream);
}