public void drawText(int x, int y, int letterSpacing, int wordSpacing, int[] dx,
String text)
throws IFException {
if (accessEnabled) {
String ptr = getContext().getStructurePointer();
MarkedContentInfo mci = logicalStructureHandler.addTextContentItem(ptr);
if (generator.getTextUtil().isInTextObject()) {
generator.separateTextElements(mci.tag, mci.mcid);
}
generator.updateColor(state.getTextColor(), true, null);
generator.beginTextObject(mci.tag, mci.mcid);