op.document.insertEmptyPages

From PDF XChange PDF SDK
Revision as of 05:07, 9 January 2016 by Palamar (Talk | contribs)

Jump to: navigation, search


Overview

The operation overview...

Parameters

Name Type Description
Input Array Array of IUnknown-based objects.
Output Array Array of IUnknown-based objects.
Options Dictionary Dictionary with options of the operation.

Sample

//C#
private void InsertEmptyPages(PDFXEdit.IPXV_Document Doc, PDFXEdit.PXV_Inst Inst)
{
	int nID = Inst.Str2ID("op.document.insertEmptyPages", false);
	PDFXEdit.IOperation pOp = Inst.CreateOp(nID);
	PDFXEdit.ICabNode input = pOp.Params.Root["Input"];
	input.v = Doc;
	PDFXEdit.ICabNode options = pOp.Params.Root["Options"];
	options["PaperType"].v = 2; //Apply custom paper type 
	options["Count"].v = 4; //Create 4 new pages
	options["Width"].v = 800; //Width of new pages
	options["Height"].v = 1200; //Height of new pages
	options["Location"].v = 1; //New pages will be inserted after first page
	options["Position"].v = 0; //Page number
	pOp.Do();
}