op.document.rotatePages
From PDF XChange PDF SDK
(→Sample) |
|||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
{{#customTitle:op.document.rotatePages}} | {{#customTitle:op.document.rotatePages}} | ||
{{#parentPage:PXV:Operations|op.document.rotatePages|operation}} | {{#parentPage:PXV:Operations|op.document.rotatePages|operation}} | ||
− | |||
{{ToReview}} | {{ToReview}} | ||
== Overview == | == Overview == | ||
− | The operation allows you to rotate pages | + | The operation allows you to rotate pages of the given document. |
Line 17: | Line 16: | ||
| class="op_param_name" | Input | | class="op_param_name" | Input | ||
| style="text-align:center" | IUnknown | | style="text-align:center" | IUnknown | ||
− | | <code>IUnknown</code>-based object containing the [[PXV:IPXC_Document|IPXC_Document]] which pages will | + | | <code>IUnknown</code>-based object containing the [[PXV:IPXC_Document|IPXC_Document]] which pages will be rotated. |
|- | |- | ||
| class="op_param_name" | Output | | class="op_param_name" | Output | ||
| style="text-align:center;" | IUnknown | | style="text-align:center;" | IUnknown | ||
− | | <code>IUnknown</code>-based object containing the [[PXV:IPXC_Document|IPXC_Document]] which pages had | + | | <code>IUnknown</code>-based object containing the [[PXV:IPXC_Document|IPXC_Document]] which pages had been rotated. |
|- | |- | ||
| class="op_param_name" | [[PXV:op_document_rotatePages_Options|Options]] | | class="op_param_name" | [[PXV:op_document_rotatePages_Options|Options]] | ||
Line 33: | Line 32: | ||
{ | { | ||
int nID = Inst.Str2ID("op.document.rotatePages", false); | int nID = Inst.Str2ID("op.document.rotatePages", false); | ||
− | PDFXEdit.IOperation | + | PDFXEdit.IOperation Op = Inst.CreateOp(nID); |
− | PDFXEdit.ICabNode input = | + | PDFXEdit.ICabNode input = Op.Params.Root["Input"]; |
input.v = Doc; | input.v = Doc; | ||
− | PDFXEdit.ICabNode options = | + | PDFXEdit.ICabNode options = Op.Params.Root["Options"]; |
options["PagesRange.Type"].v = "All"; //Rotate all pages | options["PagesRange.Type"].v = "All"; //Rotate all pages | ||
options["Direction"].v = 3; //Rotate CounterClockwise | options["Direction"].v = 3; //Rotate CounterClockwise | ||
− | + | Op.Do(); | |
} | } | ||
</pre> | </pre> |
Latest revision as of 06:50, 20 April 2016
Overview
The operation allows you to rotate pages of the given document.
Parameters
Name | Type | Description |
---|---|---|
Input | IUnknown | IUnknown -based object containing the IPXC_Document which pages will be rotated.
|
Output | IUnknown | IUnknown -based object containing the IPXC_Document which pages had been rotated.
|
Options | Dictionary | Dictionary with options of the operation. |
Sample
//C# private void RotatePages(PDFXEdit.IPXV_Document Doc, PDFXEdit.PXV_Inst Inst) { int nID = Inst.Str2ID("op.document.rotatePages", 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 = "All"; //Rotate all pages options["Direction"].v = 3; //Rotate CounterClockwise Op.Do(); }