Codota Logo
PageResources.addShading
Code IndexAdd Codota to your IDE (free)

How to use
addShading
method
in
com.lowagie.text.pdf.PageResources

Best Java code snippets using com.lowagie.text.pdf.PageResources.addShading (Showing top 3 results out of 315)

  • Common ways to obtain PageResources
private void myMethod () {
PageResources p =
  • Codota Iconnew PageResources()
  • Codota IconPdfDocument pdfDocument;pdfDocument.getPageResources()
  • Smart code suggestions by Codota
}
origin: es.gob.afirma/afirma-crypto-pdf-itext

/**
 * Paints using a shading object.
 * @param shading the shading object
 */
public void paintShading(PdfShading shading) {
  writer.addSimpleShading(shading);
  PageResources prs = getPageResources();
  PdfName name = prs.addShading(shading.getShadingName(), shading.getShadingReference());
  content.append(name.getBytes()).append(" sh").append_i(separator);
  ColorDetails details = shading.getColorDetails();
  if (details != null)
    prs.addColor(details.getColorName(), details.getIndirectReference());
}
origin: com.github.librepdf/openpdf

/**
 * Paints using a shading object.
 * @param shading the shading object
 */
public void paintShading(PdfShading shading) {
  writer.addSimpleShading(shading);
  PageResources prs = getPageResources();
  PdfName name = prs.addShading(shading.getShadingName(), shading.getShadingReference());
  content.append(name.getBytes()).append(" sh").append_i(separator);
  ColorDetails details = shading.getColorDetails();
  if (details != null)
    prs.addColor(details.getColorName(), details.getIndirectReference());
}
origin: fr.opensagres.xdocreport.itext-gae/itext-gae

/**
 * Paints using a shading object.
 * @param shading the shading object
 */
public void paintShading(PdfShading shading) {
  writer.addSimpleShading(shading);
  PageResources prs = getPageResources();
  PdfName name = prs.addShading(shading.getShadingName(), shading.getShadingReference());
  content.append(name.getBytes()).append(" sh").append_i(separator);
  ColorDetails details = shading.getColorDetails();
  if (details != null)
    prs.addColor(details.getColorName(), details.getIndirectReference());
}
com.lowagie.text.pdfPageResourcesaddShading

Popular methods of PageResources

  • <init>
  • addColor
  • addDefaultColor
  • addDefaultColorDiff
  • addExtGState
  • addFont
  • addPattern
  • addProperty
  • addXObject
  • getResources
  • hasResources
  • setOriginalResources
  • hasResources,
  • setOriginalResources,
  • translateName

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • putExtra (Intent)
  • Kernel (java.awt.image)
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Option (scala)
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