op.document.rotatePages

From Tracker Software PDF SDK
Jump to: navigation, search
Line 6: Line 6:
  
 
== Overview ==
 
== Overview ==
The operation overview...
+
The operation allows you to rotate pages with more control than the simple toolbar controls.
 +
 
  
 
== Parameters ==
 
== Parameters ==
Line 15: Line 16:
 
|-
 
|-
 
| class="op_param_name" | Input
 
| class="op_param_name" | Input
| style="text-align:center" | Array
+
| style="text-align:center" | IUnknown
| Array of <code>IUnknown</code>-based objects.
+
| <code>IUnknown</code>-based object containing the [[PXV:IPXC_Document|IPXC_Document]] which pages will have their rotate changed.
 
|-
 
|-
 
| class="op_param_name" | Output
 
| class="op_param_name" | Output
| style="text-align:center;" | Array
+
| style="text-align:center;" | IUnknown
| Array of <code>IUnknown</code>-based objects.
+
| <code>IUnknown</code>-based object containing the [[PXV:IPXC_Document|IPXC_Document]] which pages had their rotate changed.
 
|-
 
|-
 
| class="op_param_name" | [[PXV:op_document_rotatePages_Options|Options]]
 
| class="op_param_name" | [[PXV:op_document_rotatePages_Options|Options]]

Revision as of 04:44, 11 January 2016


Overview

The operation allows you to rotate pages with more control than the simple toolbar controls.


Parameters

Name Type Description
Input IUnknown IUnknown-based object containing the IPXC_Document which pages will have their rotate changed.
Output IUnknown IUnknown-based object containing the IPXC_Document which pages had their rotate changed.
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 pOp = Inst.CreateOp(nID);
	PDFXEdit.ICabNode input = pOp.Params.Root["Input"];
	input.v = Doc;
	PDFXEdit.ICabNode options = pOp.Params.Root["Options"];
	options["PagesRange.Type"].v = "All"; //Rotate all pages
	options["Direction"].v = 3; //Rotate CounterClockwise
	pOp.Do();
}