op.annots.addNew
From PDF XChange PDF SDK
Overview
The operation overview...
Parameters
Name | Type | Description |
---|---|---|
Input | Array | Array of IUnknown -based objects.
|
Output | Array | Array of IUnknown -based objects.
|
Sample
private void ResizePageToA2(PDFXEdit.IPXV_Document pDoc, PDFXEdit.PXV_Inst pInst) { if (pDoc == null) return; int nID = pInst.Str2ID("op.document.resizePages", false); PDFXEdit.IOperation pOp = pInst.CreateOp(nID); PDFXEdit.ICabNode input = pOp.Params.Root["Input"]; input.v = pDoc; PDFXEdit.ICabNode options = pOp.Params.Root["Options"]; options["PaperType"].v = 1; //Standard values table options["StdPaperIndex"].v = 2; //A2 pOp.Do(); }