Reading PDF metadata: problems with PDFVersion(Acrobat 3x), any workarounds with VB6?
Posted on 2004-03-27
When Acrobat Pro 6 is installed, the following VB 6 code works well
Dim oPDF As Object
Set oPDF = CreateObject("AcroExch.PDDoc")
sFileTitle = oPDF.GetInfo("Title")
However, when this code encounters a PDF file with PDFVersion(Acrobat3.x) it hangs and eventually crashes.
Please can an expert suggest a workaround, such as a trap to detect the version before the hang/crash, or better yet, of course, a way to read the metadata of the legacy version?