public PDFObjectRef WriteResourceList(PDFContextBase context, PDFWriter writer) { PDFObjectRef oref = writer.BeginObject(); writer.BeginDictionary(); if (this._includeProcSet) { writer.BeginDictionaryEntry("ProcSet"); writer.WriteArrayNameEntries(ProcSets); writer.EndDictionaryEntry(); } foreach (PDFResourceItemList list in this.types) { writer.BeginDictionaryEntry(list.Type); writer.BeginDictionary(); foreach (PDFResource rsrc in list) { PDFObjectRef rref = rsrc.EnsureRendered(context, writer); if (rref != null) { writer.BeginDictionaryEntry(rsrc.Name); writer.WriteObjectRef(rref); writer.EndDictionaryEntry(); } } writer.EndDictionary(); writer.EndDictionaryEntry(); } writer.EndDictionary(); writer.EndObject(); return(oref); }
protected override PDFObjectRef DoRenderToPDF(PDFContextBase context, PDFWriter writer) { writer.WriteArrayNameEntries(this.Names); return(null); }