Class PdfSpotColor

java.lang.Object
com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfSpotColor

public class PdfSpotColor extends Object
A PdfSpotColor defines a ColorSpace
See Also:
  • Field Details

    • tint

      protected float tint
    • name

      public PdfName name
      The color name
    • altcs

      public Color altcs
      The alternative color space
  • Constructor Details

    • PdfSpotColor

      public PdfSpotColor(String name, float tint, Color altcs)
      Constructs a new PdfSpotColor.
      Parameters:
      name - a String value
      tint - a tint value between 0 and 1
      altcs - a altnative colorspace value
  • Method Details

    • getTint

      public float getTint()
      Gets the tint of the SpotColor.
      Returns:
      a float
    • getAlternativeCS

      public Color getAlternativeCS()
      Gets the alternative ColorSpace.
      Returns:
      a Colot
    • getSpotObject

      protected PdfObject getSpotObject(PdfWriter writer) throws IOException
      Throws:
      IOException