internal static CAcroAVDoc GetAcroAVDoc() { CAcroApp app = GetAcroApp(); CAcroAVDoc avDoc = app.GetAVDoc(0); return(avDoc); }
private CAcroPDDoc GetPDDocFromFile(string tempFilePath) { _avDoc = _pdfProvider.GetAcroAVDoc(); if (Convert.ToBoolean(_avDoc.Open(tempFilePath, Headers.GetTemporaryPDF()))) { return((CAcroPDDoc)_avDoc.GetPDDoc()); } else { return(null); } }
internal static CAcroPDDoc GetAcroPDDoc(string pdfSource) { CAcroAVDoc aVDoc = GetAcroAVDoc(); if (aVDoc.Open(pdfSource, "autoTemp")) { return(aVDoc.GetPDDoc()); } else { return(null); } }
private void CreateFile(int startPageNum, int lenPages, CAcroPDDoc fromDoc, string saveToDirectory, string so) { CAcroAVDoc newAVDoc = _pdfProvider.GetAcroAVDoc(); CAcroPDDoc newPDDoc = (CAcroPDDoc)newAVDoc.GetPDDoc(); try { newPDDoc.Create(); newPDDoc.InsertPages(-1, fromDoc, startPageNum - 1, lenPages, 0); OnFileCreated(saveToDirectory); } catch { } finally { newPDDoc?.Close(); newAVDoc?.Close(-1); } }