* @return The byte array containing the graphic as PostScript.
* @throws GraphicException For errors processing the graphic.
*/
public byte[] epsToPostScript(final EpsGraphic image, final int x,
final int y, final int w, final int h) throws GraphicException {
final BoundingBox bbox = image.getBoundingBox();
final float bboxw = bbox.width();
final float bboxh = bbox.height();
StringBuilder buffer = new StringBuilder();
buffer.append("%%BeginDocument: " + image.getName());
buffer.append("BeginEPSF");
buffer.append(x + " " + (y - h) + " translate");
buffer.append("0.0 rotate");
buffer.append((long) (w / bboxw) + " " + (long) (h / bboxh) + " scale");
buffer.append(-bbox.lowerLeftX() + " " + (-bbox.lowerLeftY()) + " translate");
buffer.append(bbox.lowerLeftX() + " " + bbox.lowerLeftY() + " " + bboxw + " " + bboxh
+ " rectclip");
buffer.append("newpath");
final String string1 = buffer.toString();
buffer = new StringBuilder();