public void OpenFile(string fileName) { int nID = Inst.Str2ID("op.openDoc", false); PDFXEdit.IOperation Op = Inst.CreateOp(nID); PDFXEdit.IAFS_Inst fsInst = (PDFXEdit.IAFS_Inst)Inst.GetExtension("AFS"); PDFXEdit.IAFS_Name name = fsInst.DefaultFileSys.StringToName(fileName); var input = Op.Params.Root["Input"]; input.v = name; PDFXEdit.ICabNode options = Op.Params.Root["Options"]; options["NativeOnly"].v = true; Op.Do(); m_doc?.Close(); m_doc = null; m_doc = (PDFXEdit.IPXC_Document)Op.Params.Root["Output"].v; OpenFile(m_doc); }
public void OpenFile(PDFXEdit.IPXC_Document doc) { //Opening document in the given main Frame pagesPreviewCtl.Doc = doc; }