itext pdf help in fx20
Why wouldn't the following work?
phrase.AddAll(new ICollection<Chunk>[] { noteChunk, noteAttributeChunk });
Error 8 Cannot implicitly convert type 'iTextSharp.text.Chunk' to 'System.Collections.Generic.ICollection'.
Just curious,
r开发者_开发知识库od.
You need to a generic parameter to ICollection
such as ICollection<Chunk>
, but the problem is that ICollection
is an interface and not a class. You should probably do this instead:
phrase.AddAll(new Chunk[] { noteChunk, noteAttributeChunk });
精彩评论