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

New Here ,
Apr 12, 2018 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!!

TOPICS
Acrobat SDK and JavaScript

Views

155

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
community guidelines

correct answers 1 Correct Answer

LEGEND , Apr 12, 2018 Apr 12, 2018
In the Acrobat SDK this is PDDoc.Open.

Likes

Translate

Translate
LEGEND ,
Apr 12, 2018 Apr 12, 2018

Copy link to clipboard

Copied

LATEST

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
community guidelines