Open the document first as a PDDoc, then convert to an AVDoc. Use an error
handler to catch the error that gets thrown by the Open call when the file
cannot be opened.
pdDoc.Open("c:\test\dummy.pdf")
pdDoc.OpenAVDoc ("")
Karl Heinz Kremer
PDF Acrobatics Without a Net
PDF Software Development, Training and More...