op.document.rotatePages
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();
}