internal void AddDefaultColor(PdfName name, PdfObject obj) { if (obj == null || obj.IsNull()) colorDictionary.Remove(name); else colorDictionary.Put(name, obj); }
/** * Creates new PdfTemplate * * @param wr the <CODE>PdfWriter</CODE> */ internal PdfTemplate(PdfWriter wr) : base(wr) { type = TYPE_TEMPLATE; pageResources = new PageResources(); pageResources.AddDefaultColor(wr.DefaultColorspace); thisReference = writer.PdfIndirectReference; }