CAcroAVDoc.Open() is returning false.
Hi,
We are using Acrobat API to process pdf files in certain way. while the app that does this worked till 2 days back . since two days it throwing Error. A close debugging revealed that CAcroAVDoc.Open() that we use to open the pdf file is returning false.
Nothing changed in the code that worked earlier and the same code is throwing error. So, I still looked into the issue and found out that very little space is available on C drive(2 GB of 80 GB). So I am posting here to get answers to my following questions
1. Does spacing on C drive matter to execution of CAcroAVDoc.Open() method?
2. Is there any expiry date on the Acrobat license we purchased a year ago for this project that is making the project fail?
Here's a small snipped of our code.
public string processPDF(string pdfFile, string pstchip, string pstxprt) {
CAcroAVDoc avDoc = null; // logical doc
CAcroPDDoc pdDoc = null; // physical doc
object jso = null; // javascript bridge
object[] args = null;
try { // Acrobat API portion; throw any exceptions if necessary
/////////////////////
// Initializations //
/////////////////////
// get and open the logical doc
avDoc = new AcroAVDoc();
if (avDoc == null)
throw new PDFProcessingException("Acrobat API Error. Cannot initialize AcroExch.AVDoc");
if (!avDoc.Open(pdfFile, ""))
throw new PDFProcessingException("Acrobat API Error. Cannot access AVDoc.Open()"); //<---Erroring out here
// get the physical doc
pdDoc = (CAcroPDDoc)avDoc.GetPDDoc();
if (pdDoc == null)
throw new PDFProcessingException("Acrobat API Error. Cannot retrieve PDDoc");
Any suggestions would be helpful.
Thanks.
