op.document.changePagesProps
From PDF XChange PDF SDK
Line 25: | Line 25: | ||
| Dictionary with options of the operation. | | Dictionary with options of the operation. | ||
|} | |} | ||
+ | |||
+ | == Sample == | ||
+ | <pre class="brush:c#">//C# | ||
+ | private void ChangePagesProps(PDFXEdit.IPXV_Document Doc, PDFXEdit.IPXV_Inst Inst) | ||
+ | { | ||
+ | int nID = Inst.Str2ID("op.document.changePagesProps", false); | ||
+ | PDFXEdit.IOperation Op = Inst.CreateOp(nID); | ||
+ | var input = Op.Params.Root["Input"]; | ||
+ | input.Add().v = Doc.CoreDoc; | ||
+ | PDFXEdit.ICabNode options = Op.Params.Root["Options"]; | ||
+ | options["PagesRange.Type"].v = "All"; | ||
+ | options["Mask"].v = 1; //Rotation; | ||
+ | options["Rotation"].v = 90; | ||
+ | Op.Do(); | ||
+ | } | ||
+ | </pre> |
Latest revision as of 00:07, 19 April 2016
Overview
The operation allows to change properties of the selected pages.
Parameters
Name | Type | Description |
---|---|---|
Input | Array | Array of IUnknown -based objects containing the source IPXC_Document that will have it's pages' properties changed.
|
Output | Array | Array of IUnknown -based objects containing the source IPXC_Document that had it's pages' properties changed.
|
Options | Dictionary | Dictionary with options of the operation. |
Sample
//C# private void ChangePagesProps(PDFXEdit.IPXV_Document Doc, PDFXEdit.IPXV_Inst Inst) { int nID = Inst.Str2ID("op.document.changePagesProps", false); PDFXEdit.IOperation Op = Inst.CreateOp(nID); var input = Op.Params.Root["Input"]; input.Add().v = Doc.CoreDoc; PDFXEdit.ICabNode options = Op.Params.Root["Options"]; options["PagesRange.Type"].v = "All"; options["Mask"].v = 1; //Rotation; options["Rotation"].v = 90; Op.Do(); }