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

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

Best Java code snippets using com.itextpdf.text.pdf.PdfContentByte.add (Showing top 6 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/itextg

/**
 * Finishes writing the table.
 *
 * @param canvases the array returned by <CODE>beginWritingRows()</CODE>
 */
public static void endWritingRows(final PdfContentByte[] canvases) {
  PdfContentByte canvas = canvases[BASECANVAS];
  PdfArtifact artifact = new PdfArtifact();
  canvas.openMCBlock(artifact);
  canvas.saveState();
  canvas.add(canvases[BACKGROUNDCANVAS]);
  canvas.restoreState();
  canvas.saveState();
  canvas.setLineCap(2);
  canvas.resetRGBColorStroke();
  canvas.add(canvases[LINECANVAS]);
  canvas.restoreState();
  canvas.closeMCBlock(artifact);
  canvas.add(canvases[TEXTCANVAS]);
}
origin: com.itextpdf/itextpdf

/**
 * Finishes writing the table.
 *
 * @param canvases the array returned by <CODE>beginWritingRows()</CODE>
 */
public static void endWritingRows(final PdfContentByte[] canvases) {
  PdfContentByte canvas = canvases[BASECANVAS];
  PdfArtifact artifact = new PdfArtifact();
  canvas.openMCBlock(artifact);
  canvas.saveState();
  canvas.add(canvases[BACKGROUNDCANVAS]);
  canvas.restoreState();
  canvas.saveState();
  canvas.setLineCap(2);
  canvas.resetRGBColorStroke();
  canvas.add(canvases[LINECANVAS]);
  canvas.restoreState();
  canvas.closeMCBlock(artifact);
  canvas.add(canvases[TEXTCANVAS]);
}
origin: com.itextpdf/itextpdf

text.add(graphics);
origin: com.itextpdf/itextg

text.add(graphics);
origin: com.itextpdf/itextpdf

text.endText();
if (canvas != text) {
  canvas.add(text);
origin: com.itextpdf/itextg

text.endText();
if (canvas != text) {
  canvas.add(text);
com.itextpdf.text.pdfPdfContentByteadd

Javadoc

Adds the content of another PdfContentByte-object to this object.

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