From PDF XChange PDF SDK
Jump to: navigation, search


The operation allows to move or copy bookmarks from the document to the new bookmark parent.


Name Type Description
Input Array Array of IUnknown-based objects containing the IPXC_Bookmark objects that need to be moved or the IPXC_Document object when all of the bookmarks must be moved from it. Note that all of the bookmarks must belong to one document.
Output Array Array of IUnknown-based objects containing the IPXC_Document from which the bookmarks were moved.
Options Dictionary Dictionary with options of the operation.


private void MoveBookmark(PDFXEdit.IPXV_Document Doc, PDFXEdit.IPXV_Inst Inst)
	int nID = Inst.Str2ID("op.bookmarks.move", false);
	PDFXEdit.IOperation Op = Inst.CreateOp(nID);
	PDFXEdit.ICabNode input = Op.Params.Root["Input"];
	//Moving first child into the last child as copy
	input.Add().v = Doc.CoreDoc.BookmarkRoot.FirstChild;
	PDFXEdit.ICabNode options = Op.Params.Root["Options"];
	options["Parent"].v = Doc.CoreDoc.BookmarkRoot.LastChild;
	options["InsertBefore"].v = 1;
	options["MakeCopy"].v = true;