StringBuffer sb = new StringBuffer(); sb.append("BT\n"); sb.append("/F1 10 Tf\n"); sb.append(x); sb.append(' '); sb.append(y); sb.append(" Td ("); sb.append(text); sb.append(") Tj\n"); sb.append("ET\n"); master.addXref(); startObj(); master.println("<< /Length " + sb.length() + " >>"); master.println("stream"); master.print(sb); master.println("endstream"); endObj();
throw new IllegalStateException("print() called on a PDFText obj");
	public void print() {		StringBuffer sb = new StringBuffer();		sb.append("BT\n");		sb.append("/F1 10 Tf\n");		sb.append(x);		sb.append(' ');		sb.append(y);		sb.append(" Td (");		sb.append(text);	// TODO must substitute escaped characters		sb.append(") Tj\n");		sb.append("ET\n");		master.addXref();		startObj();		master.println("<< /Length " + sb.length() + " >>");		master.println("stream");		master.print(sb);		master.println("endstream");		endObj();	}