public void InitPdfControl() { var pathToPdfOptimizer = Path.Combine(Environment.CurrentDirectory, "PDFOptimizer.pvp"); MInst = new PXV_Inst(); MInst.Init(); MInst.StartLoadingPlugins(); MInst.AddPluginFromFile(pathToPdfOptimizer); MInst.FinishLoadingPlugins(); MPxcInst = MInst.GetExtension("PXC") as IPXC_Inst; if (MPxcInst != null) { FsInst = (IAFS_Inst)MPxcInst.GetExtension("AFS"); } Debug.WriteLine("InitPdfControl() succesfull"); }
public Pdf() { InitializeComponent(); inst_pxc = (IPXC_Inst)axPXV_Control1.Inst.GetExtension("PXC"); // Create new IPXC instance }