[]
Inserts the elements of an ICollection at a specified position in the document.
public void InsertRange(int index, ICollection c)
Type | Name | Description |
---|---|---|
int | index | Position where the new pages will be inserted. |
ICollection | c | Collection of PdfPage objects to add to the document. |
<p>Since the <xref href="C1.Pdf.PdfPage" data-throw-if-not-resolved="false"></xref> class has no public constructors, the only
way to use this overload is to remove existing pages from the document first, then add them back into the document.
Each page can appear only once in the document. Trying to add the same page twice will throw an exception.