Codota Logo
PdfContentByte.showText2
Code IndexAdd Codota to your IDE (free)

How to use
showText2
method
in
com.itextpdf.text.pdf.PdfContentByte

Best Java code snippets using com.itextpdf.text.pdf.PdfContentByte.showText2 (Showing top 8 results out of 315)

  • Common ways to obtain PdfContentByte
private void myMethod () {
PdfContentByte p =
  • Codota IconPdfWriter writer;writer.getDirectContent()
  • Codota IconPdfStamper pdfStamper;pdfStamper.getOverContent(pageNum)
  • Codota IconPdfStamper pdfStamper;pdfStamper.getUnderContent(pageNum)
  • Smart code suggestions by Codota
}
origin: com.itextpdf/itextpdf

/**
 * 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);
}
origin: com.itextpdf/itextpdf

/**
 * 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);
}
origin: com.itextpdf/itextg

/**
 * 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);
}
origin: com.itextpdf/itextg

/**
 * 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);
}
origin: com.itextpdf/itextpdf

for (Object obj : arrayList) {
  if (obj instanceof String) {
    showText2((String)obj);
    updateTx((String)obj, 0);
    lastWasNumber = false;
origin: com.itextpdf/itextg

for (Object obj : arrayList) {
  if (obj instanceof String) {
    showText2((String)obj);
    updateTx((String)obj, 0);
    lastWasNumber = false;
origin: com.itextpdf/itextpdf

/**
 * 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);
}
origin: com.itextpdf/itextg

/**
 * 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);
}
com.itextpdf.text.pdfPdfContentByteshowText2

Javadoc

A helper to insert into the content stream the text converted to bytes according to the font's encoding.

Popular methods of PdfContentByte

  • addTemplate
    adds a template with the given matrix.
  • createTemplate
  • beginText
    Starts the writing of text.
  • endText
    Ends the writing of text and makes the current font invalid.
  • lineTo
    Appends a straight line segment from the current point (x, y). The new current point is (x, y).
  • moveTo
    Move the current point (x, y), omitting any connecting line segment.
  • restoreState
    Restores the graphic state. saveState andrestoreState must be balanced.
  • saveState
    Saves the graphic state. saveState andrestoreState must be balanced.
  • setFontAndSize
    Set the font and the size for the subsequent text writing.
  • setLineWidth
    Changes the line width. The line width specifies the thickness of the line used to stroke a path and
  • stroke
    Strokes the path.
  • addImage
    Adds an Image to the page. The Image must have absolute positioning. The image can be placed inline.
  • stroke,
  • addImage,
  • setTextMatrix,
  • showText,
  • fill,
  • rectangle,
  • setColorFill,
  • setColorStroke,
  • setGState,
  • beginLayer

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • putExtra (Intent)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Path (java.nio.file)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now