Overview
The operation allows to set properties of the required content items.
Parameters
Name
|
Type
|
Description
|
Input
|
Array
|
Array of IUnknown -based objects containing the IPXC_Document which content items will be modified.
|
Output
|
Array
|
Array of IUnknown -based objects containing the IPXC_Document that had it's content items modified.
|
Options
|
Dictionary
|
Dictionary with options of the operation.
|
Sample
02 | private void SetContentColor(PDFXEdit.IPXV_Document Doc, PDFXEdit.PXV_Inst Inst) |
07 | int nID = Inst.Str2ID( "op.contentItems.setProps" , false ); |
08 | PDFXEdit.IOperation Op = Inst.CreateOp(nID); |
09 | var input = Op.Params.Root[ "Input" ]; |
10 | input.Add().v = Doc.CoreDoc; |
11 | PDFXEdit.ICabNode options = Op.Params.Root[ "Options" ]; |
12 | int nSelID = Inst.Str2ID( "selection.contentItems" , false ); |
15 | PDFXEdit.IPXV_ContentItemsSelection itSel = (PDFXEdit.IPXV_ContentItemsSelection)Doc.CreateStdSel(( uint )nSelID); |
17 | PDFXEdit.IPXV_ContentItemEntry itEntry = itSel.GetSel(nPage, true ); |
19 | var content = Doc.CoreDoc.Pages[nPage].GetContent(PDFXEdit.PXC_ContentAccessMode.CAccessMode_WeakClone); |
20 | for ( uint i = 0; i < content.Items.Count; i++) |
23 | if (content.Items[i].Type == PDFXEdit.PXC_CIType.CIT_Text) |
27 | options[ "Entries" ].Add(PDFXEdit.CabDataTypeID.dt_IUnknown).v = itEntry; |
29 | options[ "FColor" ].v = "#AC3312" ; |
31 | options[ "Mask" ].v = 2; |