op.document.addHeaderAndFooter
From PDF XChange PDF SDK
(→Sample) |
|||
Line 37: | Line 37: | ||
options["PagesRange.Type"].v = "All"; | options["PagesRange.Type"].v = "All"; | ||
options["CenterHeaderText"].v = "Central Header Text"; | options["CenterHeaderText"].v = "Central Header Text"; | ||
− | options["RightFooterText"].v = " | + | options["RightFooterText"].v = "<<1 of n>>"; |
options["Font.Size"].v = 42; | options["Font.Size"].v = 42; | ||
Op.Do(); | Op.Do(); | ||
} | } | ||
</pre> | </pre> |
Latest revision as of 23:51, 13 November 2016
Overview
The operation allows to add headers and footers to the document.
Parameters
Name | Type | Description |
---|---|---|
Input | IUnknown | IUnknown -based object containing the IPXC_Document which the headers and footers will be added to.
|
Output | IUnknown | IUnknown -based object containing the IPXC_Document with added headers and footers. Not yet implemented.
|
Options | Dictionary | Dictionary with options of the operation. |
Sample
//C# private void AddHeaderFooter(PDFXEdit.IPXV_Document Doc, PDFXEdit.IPXV_Inst Inst) { int nID = Inst.Str2ID("op.document.addHeaderAndFooter", 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 = "Central Header Text"; options["RightFooterText"].v = "<<1 of n>>"; options["Font.Size"].v = 42; Op.Do(); }