What is the "meaning" of the returned int from CAcroPDDoc.Open(string s) ???

New Here ,
Apr 12, 2018

Copy link to clipboard

Copied

I am updating to a newer version of Acrobat, and I have the following C# code which is giving me an error saying "cannot implicitly convert from int to boolean":

var pdfDoc = (CAcroPDDoc)Microsoft.VisualBasic.Interaction.CreateObject("AcroExch.PDDoc", "");

if (!pdfDoc.Open(SourceFilePath)) // <-- red squiggly under "Open()"

{

    throw new FileNotFoundException();

}

Obviously, in a previous version the Open() method returned a boolean value - now it returns an int.  Can someone please provide me a reference to this method so I can determine the "meaning" of the returned int values?  I cannot find any reference to this method.  Help!!

Most Valuable Participant
Correct answer by Test Screen Name | Most Valuable Participant

In the Acrobat SDK this is PDDoc.Open.

TOPICS
Acrobat SDK and JavaScript

Views

149

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

What is the "meaning" of the returned int from CAcroPDDoc.Open(string s) ???

New Here ,
Apr 12, 2018

Copy link to clipboard

Copied

I am updating to a newer version of Acrobat, and I have the following C# code which is giving me an error saying "cannot implicitly convert from int to boolean":

var pdfDoc = (CAcroPDDoc)Microsoft.VisualBasic.Interaction.CreateObject("AcroExch.PDDoc", "");

if (!pdfDoc.Open(SourceFilePath)) // <-- red squiggly under "Open()"

{

    throw new FileNotFoundException();

}

Obviously, in a previous version the Open() method returned a boolean value - now it returns an int.  Can someone please provide me a reference to this method so I can determine the "meaning" of the returned int values?  I cannot find any reference to this method.  Help!!

Most Valuable Participant
Correct answer by Test Screen Name | Most Valuable Participant

In the Acrobat SDK this is PDDoc.Open.

TOPICS
Acrobat SDK and JavaScript

Views

150

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 12, 2018 0
Most Valuable Participant ,
Apr 12, 2018

Copy link to clipboard

Copied

In the Acrobat SDK this is PDDoc.Open.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 12, 2018 0