aacid added a comment.
I don't suggest you write anything, there's aleady code that works in my patch and it's really much easier to understand what it does than this one. REPOSITORY R223 Okular REVISION DETAIL https://phabricator.kde.org/D7595 To: rkflx, #okular Cc: aacid