Opening PDFs with revBrowser
Posted: Tue Apr 12, 2016 4:11 am
My application is essentially an interface whereby users can search for, find, and open any one of thousands of PDFs into the revBrowser, so the revBrowser functionality is central to my program. Of late I have encountered a behavior that I have not seen before. My script will open some PDFs but not others. I have checked the script time and again for any errors and cannot find one. It is as though something is different about some PDFs that the prevents the browser from opening them. The native PDF reader (Adobe Acrobat Pro XI, in my case) opens them normally.
Here is example of a script that opens some but not all PDFs:
Has anyone seen this behavior? Thanks for your replies.
Monty
Here is example of a script that opens some but not all PDFs:
Code: Select all
global gBrowserID
on opencard
resetCard
put the short name of this cd into tEO
put revBrowserOpenCEF(the WindowID of this stack) into gBrowserID
revBrowserSet gBrowserID, "rect", the rect of grc "rectRevBrowser"
revBrowserSet gBrowserID, "url", "file:///eo/"&tEO&".pdf"
end opencard
on resetCard
repeat for each item gBrowserID in revBrowserInstances()
revBrowserClose gBrowserID
end repeat
end resetCard
Monty