• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

337

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.

Votes

Translate

Translate
LEGEND ,
Apr 12, 2018 Apr 12, 2018

Copy link to clipboard

Copied

LATEST

In the Acrobat SDK this is PDDoc.Open.

Votes

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