op.document.deletePages
From PDF XChange PDF SDK
(→Sample) |
|||
Line 14: | Line 14: | ||
|- | |- | ||
| class="op_param_name" | Input | | class="op_param_name" | Input | ||
− | | style="text-align:center" | | + | | style="text-align:center" | IUnknown |
− | | | + | | Specifies an [[PXV:IPXC_Document|IPXC_Document]] that will have it's pages deleted. |
|- | |- | ||
| class="op_param_name" | Output | | class="op_param_name" | Output |
Revision as of 23:04, 4 July 2018
Overview
The operation allows to delete pages.
Parameters
Name | Type | Description |
---|---|---|
Input | IUnknown | Specifies an IPXC_Document that will have it's pages deleted. |
Output | Array | Array of IUnknown -based objects containing the IPXC_Document which pages were deleted.
|
Options | Dictionary | Dictionary with options of the operation. |
Sample
//C# private void DeletePages(PDFXEdit.IPXV_Document Doc, PDFXEdit.PXV_Inst Inst) { int nID = Inst.Str2ID("op.document.deletePages", false); PDFXEdit.IOperation Op = Inst.CreateOp(nID); PDFXEdit.ICabNode input = Op.Params.Root["Input"]; input.v = Doc; PDFXEdit.ICabNode options = Op.Params.Root["Options"]; options["PagesRange.Type"].v = "Exact"; options["PagesRange.Text"].v = "1-3"; //Select pages range that will be deleted from the document Op.Do(); }