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

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

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

/** Sets the stroke color to an uncolored pattern.
 * @param p the pattern
 * @param color the color of the pattern
 */
public void setPatternStroke(final PdfPatternPainter p, final BaseColor color) {
  if (ExtendedColor.getType(color) == ExtendedColor.TYPE_SEPARATION)
    setPatternStroke(p, color, ((SpotColor) color).getTint());
  else
    setPatternStroke(p, color, 0);
}
origin: com.itextpdf/itextg

/** Sets the stroke color to an uncolored pattern.
 * @param p the pattern
 * @param color the color of the pattern
 */
public void setPatternStroke(final PdfPatternPainter p, final BaseColor color) {
  if (ExtendedColor.getType(color) == ExtendedColor.TYPE_SEPARATION)
    setPatternStroke(p, color, ((SpotColor) color).getTint());
  else
    setPatternStroke(p, color, 0);
}
origin: com.itextpdf/itextpdf

    cb.setPatternFill(pattern);
  else
    cb.setPatternStroke(pattern);
} catch (Exception ex) {
  if (fill)
    cb.setPatternFill(pattern);
  else
    cb.setPatternStroke(pattern);
} catch (Exception ex) {
  if (fill)
origin: com.itextpdf/itextg

/** Sets the stroke color to a pattern. The pattern can be
 * colored or uncolored.
 * @param p the pattern
 */
public void setPatternStroke(final PdfPatternPainter p) {
  if (p.isStencil()) {
    setPatternStroke(p, p.getDefaultColor());
    return;
  }
  checkWriter();
  PageResources prs = getPageResources();
  PdfName name = writer.addSimplePattern(p);
  name = prs.addPattern(name, p.getIndirectReference());
  saveColor(new PatternColor(p), false);
  content.append(PdfName.PATTERN.getBytes()).append(" CS ").append(name.getBytes()).append(" SCN").append_i(separator);
}
origin: com.itextpdf/itextpdf

/** Sets the stroke color to a pattern. The pattern can be
 * colored or uncolored.
 * @param p the pattern
 */
public void setPatternStroke(final PdfPatternPainter p) {
  if (p.isStencil()) {
    setPatternStroke(p, p.getDefaultColor());
    return;
  }
  checkWriter();
  PageResources prs = getPageResources();
  PdfName name = writer.addSimplePattern(p);
  name = prs.addPattern(name, p.getIndirectReference());
  saveColor(new PatternColor(p), false);
  content.append(PdfName.PATTERN.getBytes()).append(" CS ").append(name.getBytes()).append(" SCN").append_i(separator);
}
origin: com.itextpdf/itextpdf

setPatternStroke(pat.getPainter());
break;
origin: com.itextpdf/itextg

setPatternStroke(pat.getPainter());
break;
com.itextpdf.text.pdfPdfContentBytesetPatternStroke

Javadoc

Sets the stroke color to a pattern. The pattern can be colored or uncolored.

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

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
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