Created
February 14, 2018 12:51
-
-
Save Polaringu/e66631e883d5b72479d7ba6b7da64169 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void AddBatesNumberingToDoc(PDFXEdit.IOperation Op, PDFXEdit.IPXC_Document Doc, PDFXEdit.IPXV_Inst Inst) | |
{ | |
var input = Op.Params.Root["Input"]; | |
input.v = Doc; | |
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(); | |
} | |
private void addBatesNumberingToMultipleDocumentsToolStripMenuItem_Click(object sender, EventArgs e) | |
{ | |
int nID = pdfCtl.Inst.Str2ID("op.document.addBatesNumbering", false); | |
PDFXEdit.IOperation Op = pdfCtl.Inst.CreateOp(nID); | |
PXC_Rect rc; | |
for (uint i = 1; i < 4; i++) | |
{ | |
IPXC_Document Doc = CreateNewDocument(out rc, i * 3); | |
AddBatesNumberingToDoc(Op, Doc, pdfCtl.Inst); | |
pdfCtl.OpenDocFrom(Doc); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment