op.document.addBatesNumbering

From PDF XChange PDF SDK
Jump to: navigation, search


Overview

The operation allows to add Bates Numbering to the document.

Parameters

Name Type Description
Input IUnknown IUnknown-based object containing the IPXC_Document which the Bates Numbering will be added to.
Output IUnknown IUnknown-based object containing the IPXC_Document with added Bates Numbering. Not yet implemented.
Options Dictionary Dictionary with options of the operation.

Sample

01//C#
02private void AddBatesNumbering(PDFXEdit.IPXV_Document Doc, PDFXEdit.IPXV_Inst Inst)
03{
04    int nID = Inst.Str2ID("op.document.addBatesNumbering", false);
05    PDFXEdit.IOperation Op = Inst.CreateOp(nID);
06    var input = Op.Params.Root["Input"];
07    input.v = Doc.CoreDoc;
08    PDFXEdit.ICabNode options = Op.Params.Root["Options"];
09    options["PagesRange.Type"].v = "All";
10    options["CenterHeaderText"].v = "<<Bates Number#3#1#A#B>>";
11    options["Font.Size"].v = 36;
12    Op.Do();
13}