|
|
Line 2: |
Line 2: |
| {{#customTitle:op.document.insertPages}} | | {{#customTitle:op.document.insertPages}} |
| {{#parentPage:PXV:Operations|op.document.insertPages|operation}} | | {{#parentPage:PXV:Operations|op.document.insertPages|operation}} |
− | {{ToWrite}}
| |
| {{ToReview}} | | {{ToReview}} |
| | | |
| == Overview == | | == Overview == |
− | The operation overview allows you to insert pages from another PDF into the current document. | + | The operation overview allows you to insert pages into the current document from another PDF document. |
| | | |
| == Parameters == | | == Parameters == |
Revision as of 02:20, 1 March 2016
Overview
The operation overview allows you to insert pages into the current document from another PDF document.
Parameters
Name
|
Type
|
Description
|
Input
|
IUnknown
|
IUnknown -based object containing the IPXC_Document that will have it's pages changed.
|
Output
|
IUnknown
|
IUnknown -based object containing the IPXC_Document that had it's pages changed.
|
Options
|
Dictionary
|
Dictionary with options of the operation.
|
Sample
02 | private void InsertPages(PDFXEdit.IPXV_Document Doc, PDFXEdit.PXV_Inst Inst) |
04 | int nID = Inst.Str2ID( "op.document.insertPages" , false ); |
05 | PDFXEdit.IOperation pOp = Inst.CreateOp(nID); |
06 | PDFXEdit.ICabNode input = pOp.Params.Root[ "Input" ]; |
08 | PDFXEdit.ICabNode options = pOp.Params.Root[ "Options" ]; |
10 | PDFXEdit.IAFS_Inst fsInst = (PDFXEdit.IAFS_Inst)Inst.GetExtension( "AFS" ); |
11 | PDFXEdit.IAFS_Name destPath = fsInst.DefaultFileSys.StringToName( "D:\\TestFile.pdf" ); |
12 | options[ "Position" ].v = 0; |
13 | options[ "Location" ].v = "Before" ; |
14 | options[ "CommentsAction" ].v = "Copy" ; |
15 | options[ "FieldsAction" ].v = "Copy" ; |
16 | options[ "BookmarksAction" ].v = "CopyRelated" ; |
17 | options[ "Src" ].v = destPath; |
18 | options[ "PagesRange.Type" ].v = "Exact" ; |
19 | options[ "PagesRange.Text" ].v = "1-3" ; |