public void showTextGid(final String gids) { checkState(); if (!inText && isTagged()) { beginText(true); } if (state.fontDetails == null) throw new NullPointerException(MessageLocalization.getComposedMessage("font.and.size.must.be.set.before.writing.any.text")); Object[] objs = state.fontDetails.convertToBytesGid(gids); StringUtils.escapeString((byte[]) objs[0], content); state.tx += ((Integer)objs[2]).intValue() * 0.001f * state.size; content.append("Tj").append_i(separator); }
public void showTextGid(final String gids) { checkState(); if (!inText && isTagged()) { beginText(true); } if (state.fontDetails == null) throw new NullPointerException(MessageLocalization.getComposedMessage("font.and.size.must.be.set.before.writing.any.text")); Object[] objs = state.fontDetails.convertToBytesGid(gids); StringUtils.escapeString((byte[]) objs[0], content); state.tx += ((Integer)objs[2]).intValue() * 0.001f * state.size; content.append("Tj").append_i(separator); }
/** * Shows the <CODE>text</CODE>. * * @param text the text to write */ public void showText(final String text) { checkState(); if (!inText && isTagged()) { beginText(true); } showText2(text); updateTx(text, 0); content.append("Tj").append_i(separator); }
/** * Moves to the next line and shows <CODE>text</CODE>. * * @param text the text to write */ public void newlineShowText(final String text) { checkState(); if (!inText && isTagged()) { beginText(true); } state.yTLM -= state.leading; showText2(text); content.append("'").append_i(separator); state.tx = state.xTLM; updateTx(text, 0); }
/** * Shows the <CODE>text</CODE>. * * @param text the text to write */ public void showText(final String text) { checkState(); if (!inText && isTagged()) { beginText(true); } showText2(text); updateTx(text, 0); content.append("Tj").append_i(separator); }
/** * Moves to the next line and shows <CODE>text</CODE>. * * @param text the text to write */ public void newlineShowText(final String text) { checkState(); if (!inText && isTagged()) { beginText(true); } state.yTLM -= state.leading; showText2(text); content.append("'").append_i(separator); state.tx = state.xTLM; updateTx(text, 0); }
checkState(); if (!inText && isTagged()) { beginText(true);
checkState(); if (!inText && isTagged()) { beginText(true);
/** * Moves to the next line and shows text string, using the given values of the character and word spacing parameters. * * @param wordSpacing a parameter * @param charSpacing a parameter * @param text the text to write */ public void newlineShowText(final float wordSpacing, final float charSpacing, final String text) { checkState(); if (!inText && isTagged()) { beginText(true); } state.yTLM -= state.leading; content.append(wordSpacing).append(' ').append(charSpacing); showText2(text); content.append("\"").append_i(separator); // The " operator sets charSpace and wordSpace into graphics state // (cfr PDF reference v1.6, table 5.6) state.charSpace = charSpacing; state.wordSpace = wordSpacing; state.tx = state.xTLM; updateTx(text, 0); }
/** * Moves to the next line and shows text string, using the given values of the character and word spacing parameters. * * @param wordSpacing a parameter * @param charSpacing a parameter * @param text the text to write */ public void newlineShowText(final float wordSpacing, final float charSpacing, final String text) { checkState(); if (!inText && isTagged()) { beginText(true); } state.yTLM -= state.leading; content.append(wordSpacing).append(' ').append(charSpacing); showText2(text); content.append("\"").append_i(separator); // The " operator sets charSpace and wordSpace into graphics state // (cfr PDF reference v1.6, table 5.6) state.charSpace = charSpacing; state.wordSpace = wordSpacing; state.tx = state.xTLM; updateTx(text, 0); }