I tried to call it after PDFOpen() method, didn't work. Also, I tried to call it onButtonClick after PDF has opened, didn't work. Problem is always the same, document.NewRootOutline is returning false... Tried it on 3.4 and 3.5beta8 versions. Do you maybe have any other suggestions how to solve this?
P.S. PDF I'm testing on is showing TOC perfectly on iOS.