/** * 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); }
for (Object obj : arrayList) { if (obj instanceof String) { showText2((String)obj); updateTx((String)obj, 0); lastWasNumber = false;
for (Object obj : arrayList) { if (obj instanceof String) { showText2((String)obj); updateTx((String)obj, 0); lastWasNumber = false;
/** * 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); }