Bug with function bookmrk.GetByTitle. It stoped working as it should on Windows 7
function bookmrk.GetByTitle stoped working as it should. It worked properly early. We tried to reinstall then Acrobat, but it didn't help.
Windows 7. Acrobat Pro DC 2021.007.20102
Error in the following VBScript:
Set MainPartDocument = CreateObject("AcroExch.PDDoc")
MainPartDocument.Open("C:\1\1.pdf")
Set bookmrk = CreateObject("AcroExch.PDBookmark")
'on the next line function returns False, although the "bookmark" exists in the file. GetByTitle actually can't get the bookmark.
res = bookmrk.GetByTitle(MainPartDocument, "bookmark")
msgbox res
if res then
msgbox "bookmrk exists " & bookmrk.GetTitle
end if
It looks like a bug. The problem was solved by installing Acrobat Reader on the PC additionally to Acrobat Pro. We noticed, that the problem reproduced only on PC's with Pro version only.
-
Chris Hintze commented
I also have a program that relies on this functioning. It worked fine when I was using Acrobat XI for the last 12 years through Windows 10. Now that I have upgraded to Acrobat DC Pro on Windows 11, it doesn't work. Please fix ASAP so I can use the Acrobat DC Pro license I have purchased.
-
Jan Christensen commented
I have a program which have been running fine for about 7 years now is does not work because of this issue
-
Jan Christensen commented
Any new regarding this issue ?