* Serializes an EPS image to an OutputStream.
* @param out OutputStream to write to
* @throws IOException in case of an I/O problem
*/
protected void outputPostScriptContents(OutputStream out) throws IOException {
EPSImage epsImage = (EPSImage) fopImage;
int[] bbox = epsImage.getBBox();
int bboxw = bbox[2] - bbox[0];
int bboxh = bbox[3] - bbox[1];
// delegate the stream work to PDFStream
//PDFStream imgStream = new PDFStream(0);
StringBuffer preamble = new StringBuffer();
preamble.append("%%BeginDocument: " + epsImage.getDocName() + "\n");
preamble.append("userdict begin % Push userdict on dict stack\n");
preamble.append("/PreEPS_state save def\n");
preamble.append("/dict_stack countdictstack def\n");
preamble.append("/ops_count count 1 sub def\n");