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

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

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

/**
 * Changes the current color for filling paths (device dependent colors!).
 * <P>
 * Sets the color space to <B>DeviceCMYK</B> (or the <B>DefaultCMYK</B> color space),
 * and sets the color to use for filling paths.</P>
 * <P>
 * Following the PDF manual, each operand must be a number between 0 (no ink) and
 * 1 (maximum ink).</P>
 *
 * @param   cyan    the intensity of cyan. A value between 0 and 1
 * @param   magenta the intensity of magenta. A value between 0 and 1
 * @param   yellow  the intensity of yellow. A value between 0 and 1
 * @param   black   the intensity of black. A value between 0 and 1
 */
public void setCMYKColorFillF(final float cyan, final float magenta, final float yellow, final float black) {
  saveColor(new CMYKColor(cyan, magenta, yellow, black), true);
  HelperCMYK(cyan, magenta, yellow, black);
  content.append(" k").append_i(separator);
}
origin: com.itextpdf/itextpdf

/**
 * Changes the current color for filling paths (device dependent colors!).
 * <P>
 * Sets the color space to <B>DeviceCMYK</B> (or the <B>DefaultCMYK</B> color space),
 * and sets the color to use for filling paths.</P>
 * <P>
 * Following the PDF manual, each operand must be a number between 0 (no ink) and
 * 1 (maximum ink).</P>
 *
 * @param   cyan    the intensity of cyan. A value between 0 and 1
 * @param   magenta the intensity of magenta. A value between 0 and 1
 * @param   yellow  the intensity of yellow. A value between 0 and 1
 * @param   black   the intensity of black. A value between 0 and 1
 */
public void setCMYKColorFillF(final float cyan, final float magenta, final float yellow, final float black) {
  saveColor(new CMYKColor(cyan, magenta, yellow, black), true);
  HelperCMYK(cyan, magenta, yellow, black);
  content.append(" k").append_i(separator);
}
origin: com.itextpdf/itextpdf

/**
 * Changes the current color for stroking paths (device dependent colors!).
 * <P>
 * Sets the color space to <B>DeviceCMYK</B> (or the <B>DefaultCMYK</B> color space),
 * and sets the color to use for stroking paths.</P>
 * <P>
 * Following the PDF manual, each operand must be a number between 0 (miniumum intensity) and
 * 1 (maximum intensity).
 *
 * @param   cyan    the intensity of cyan. A value between 0 and 1
 * @param   magenta the intensity of magenta. A value between 0 and 1
 * @param   yellow  the intensity of yellow. A value between 0 and 1
 * @param   black   the intensity of black. A value between 0 and 1
 */
public void setCMYKColorStrokeF(final float cyan, final float magenta, final float yellow, final float black) {
  saveColor(new CMYKColor(cyan, magenta, yellow, black), false);
  HelperCMYK(cyan, magenta, yellow, black);
  content.append(" K").append_i(separator);
}
origin: com.itextpdf/itextg

/**
 * Changes the current color for stroking paths (device dependent colors!).
 * <P>
 * Sets the color space to <B>DeviceCMYK</B> (or the <B>DefaultCMYK</B> color space),
 * and sets the color to use for stroking paths.</P>
 * <P>
 * Following the PDF manual, each operand must be a number between 0 (miniumum intensity) and
 * 1 (maximum intensity).
 *
 * @param   cyan    the intensity of cyan. A value between 0 and 1
 * @param   magenta the intensity of magenta. A value between 0 and 1
 * @param   yellow  the intensity of yellow. A value between 0 and 1
 * @param   black   the intensity of black. A value between 0 and 1
 */
public void setCMYKColorStrokeF(final float cyan, final float magenta, final float yellow, final float black) {
  saveColor(new CMYKColor(cyan, magenta, yellow, black), false);
  HelperCMYK(cyan, magenta, yellow, black);
  content.append(" K").append_i(separator);
}
com.itextpdf.text.pdfPdfContentByteHelperCMYK

Javadoc

Helper to validate and write the CMYK color components.

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

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • putExtra (Intent)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
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