Exemplo n.º 1
0
 /** Each spot color used in a document has an instance of this class.
  * @param colorName the color name
  * @param indirectReference the indirect reference to the font
  * @param scolor the <CODE>PDfSpotColor</CODE>
  */
 internal ColorDetails(PdfName colorName, PdfIndirectReference indirectReference, ICachedColorSpace scolor) {
     this.colorSpaceName = colorName;
     this.indirectReference = indirectReference;
     this.colorSpace = scolor;
 }
Exemplo n.º 2
0
 /** Each spot color used in a document has an instance of this class.
  * @param colorName the color name
  * @param indirectReference the indirect reference to the font
  * @param scolor the <CODE>PDfSpotColor</CODE>
  */
 internal ColorDetails(PdfName colorName, PdfIndirectReference indirectReference, ICachedColorSpace scolor)
 {
     this.colorSpaceName    = colorName;
     this.indirectReference = indirectReference;
     this.colorSpace        = scolor;
 }
Exemplo n.º 3
0
 /**
 * Adds a <CODE>SpotColor</CODE> to the document but not to the page resources.
 * @param spc the <CODE>SpotColor</CODE> to add
 * @return an <CODE>Object[]</CODE> where position 0 is a <CODE>PdfName</CODE>
 * and position 1 is an <CODE>PdfIndirectReference</CODE>
 */
 internal virtual ColorDetails AddSimple(ICachedColorSpace spc) {
     ColorDetails ret;
     documentColors.TryGetValue(spc, out ret);
     if (ret == null) {
         ret = new ColorDetails(GetColorspaceName(), body.PdfIndirectReference, spc);
         if (spc is IPdfSpecialColorSpace) {
             ((IPdfSpecialColorSpace)spc).GetColorantDetails(this);
         }
         documentColors[spc] = ret;
     }
     return ret;
 }