op.document.addBatesNumbering

From PDF XChange PDF SDK
Revision as of 23:41, 18 April 2016 by Palamar (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

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