Overview
The operation allows to change the crop box of the document's pages.
Parameters
Name
|
Type
|
Description
|
Input
|
IUnknown
|
IUnknown -based object containing the IPXC_Document which pages will be cropped.
|
Output
|
IUnknown
|
IUnknown -based object containing the IPXC_Document which pages were cropped.
|
Options
|
Dictionary
|
Dictionary with options of the operation.
|
Sample
02 | private void RemoveWhiteSpaces(PDFXEdit.IPXV_Document pDoc, PDFXEdit.PXV_Inst pInst) |
06 | int nID = pInst.Str2ID( "op.document.cropPages" , false ); |
07 | PDFXEdit.IOperation Op = pInst.CreateOp(nID); |
08 | PDFXEdit.ICabNode input = Op.Params.Root[ "Input" ]; |
10 | PDFXEdit.ICabNode options = Op.Params.Root[ "Options" ]; |
11 | options[ "Flags" ].v = 1024 | 2048; |
15 | private void CropByOffsets(PDFXEdit.IPXV_Document pDoc, PDFXEdit.PXV_Inst pInst) |
19 | int nID = pInst.Str2ID( "op.document.cropPages" , false ); |
20 | PDFXEdit.IOperation Op = pInst.CreateOp(nID); |
21 | PDFXEdit.ICabNode input = Op.Params.Root[ "Input" ]; |
23 | PDFXEdit.ICabNode options = Op.Params.Root[ "Options" ]; |
24 | options[ "Flags" ].v = 2; |
26 | options[ "IsOffset" ].v = true ; |
27 | options[ "CropBox.top" ].v = 50; |
28 | options[ "CropBox.left" ].v = 50; |
29 | options[ "CropBox.right" ].v = 50; |
30 | options[ "CropBox.bottom" ].v = 50; |