RemoveAt(Int32) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Removes the page at index from the document.

public void RemoveAt(int index)

Parameters

index
Int32

The page's index.

Remarks

ISO 32000-2 §7.7.3 and §7.3.10 (PDF 1.0). The page leaves the page tree and its page object is removed from the document (RemoveObject(CosReference)), so references to it resolve to null. What only the page used (its content, resources, annotations) stays in the document until a save with RemoveUnreachableObjects drops it.

Destinations that show the page (outline items, link annotations, named destinations) are not changed: each one is reported in Diagnostics when the document is saved, as DestinationPageRemoved (§12.3.2.2).