op.document.movePages
From PDF XChange PDF SDK
Line 2: | Line 2: | ||
{{#customTitle:op.document.movePages}} | {{#customTitle:op.document.movePages}} | ||
{{#parentPage:PXV:Operations|op.document.movePages|operation}} | {{#parentPage:PXV:Operations|op.document.movePages|operation}} | ||
− | |||
{{ToReview}} | {{ToReview}} | ||
== Overview == | == Overview == | ||
− | The operation | + | The operation allows to move or copy pages in the same document or between documents. |
== Parameters == | == Parameters == | ||
Line 15: | Line 14: | ||
|- | |- | ||
| class="op_param_name" | Input | | class="op_param_name" | Input | ||
− | | style="text-align:center" | | + | | style="text-align:center" | IUnknown |
− | | | + | | <code>IUnknown</code>-based object containing the target [[PXV:IPXC_Document|IPXC_Document]] where the pages will be moved. |
|- | |- | ||
| class="op_param_name" | Output | | class="op_param_name" | Output | ||
− | | style="text-align:center;" | | + | | style="text-align:center;" | IUnknown |
− | | | + | | <code>IUnknown</code>-based object containing the target [[PXV:IPXC_Document|IPXC_Document]] where the pages were moved. |
|- | |- | ||
| class="op_param_name" | [[PXV:op_document_movePages_Options|Options]] | | class="op_param_name" | [[PXV:op_document_movePages_Options|Options]] |
Latest revision as of 00:19, 15 March 2016
Overview
The operation allows to move or copy pages in the same document or between documents.
Parameters
Name | Type | Description |
---|---|---|
Input | IUnknown | IUnknown -based object containing the target IPXC_Document where the pages will be moved.
|
Output | IUnknown | IUnknown -based object containing the target IPXC_Document where the pages were moved.
|
Options | Dictionary | Dictionary with options of the operation. |
Sample
//C# private void MovePages(PDFXEdit.IPXV_Document Doc, PDFXEdit.PXV_Inst Inst) { int nID = Inst.Str2ID("op.document.movePages", false); PDFXEdit.IOperation pOp = Inst.CreateOp(nID); PDFXEdit.ICabNode input = pOp.Params.Root["Input"]; input.v = Doc; PDFXEdit.ICabNode options = pOp.Params.Root["Options"]; options = pOp.Params.Root["Options"]; options["PagesRange.Type"].v = "Exact"; options["PagesRange.Text"].v = "1-3"; //Select pages range that will be moved options["MakeCopy"].v = true; //Making copy of the moving pages options["InsertBefore"].v = 2; //Inserting pages before third pOp.Do(); }