Bug 143689 Add build script to PDF plugin
PDF chart renderer plugin should havea buildXXX.xml script.
chart/org.eclipse.birt.chart.device.pdf/src/org/eclipse/birt/chart/device/pdf/PDFRendererImpl.java
/**
	 * Serializes a <code>Document</code> object to a <code>String</code> in XML format. 
	 * This is a convevience method to save the output of the SVG generator to a string.
	 * 
	 * @param generatedDocument the generated graphic
	 * @return String the XML-serialized form of the <code>Document</code>
	 * @throws SVGGeneratorException If XML serialization failed
	 */	
	protected String serializeGeneratedDocumentToString(Document generatedDocument) throws Exception {
		if (generatedDocument == null) {
			return null;
		}
		OutputStreamWriter writer = null;
		ByteArrayOutputStream stream = new ByteArrayOutputStream();
		writer = new OutputStreamWriter(stream, "UTF-8"); 
        DOMSource source = new DOMSource(generatedDocument);
        StreamResult result = new StreamResult(writer);
			
        TransformerFactory transFactory = 
	                                 TransformerFactory.newInstance();
        Transformer transformer = transFactory.newTransformer();
        transformer.transform(source, result);		
										
		return stream.toString();
		
	}        
    
}