Skip to main content
scottb64250527
Participant
April 12, 2018
Answered

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

  • April 12, 2018
  • 1 reply
  • 500 views

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!!

This topic has been closed for replies.
Correct answer Test Screen Name

In the Acrobat SDK this is PDDoc.Open.

1 reply

Test Screen NameCorrect answer
Legend
April 12, 2018

In the Acrobat SDK this is PDDoc.Open.