https://bugs.kde.org/show_bug.cgi?id=443390
--- Comment #2 from David Hurka <david.hu...@mailbox.org> --- (In reply to shenlebantongying from comment #0) > Okular can remember the lasted opened position (i think?), Yes, not only the last position. Okular stores the viewport history in XML files, usually under ~/.local/share/okular/docdata/. It should be possible to parse these, although not very convenient. > Scripting a GUI application! > > I might be the only want this :/ No, this is one use case for D-Bus. You can try the application d-feet to look which D-Bus methods are available in Okular. For example, you can query the currentPage() method. Of course, you need to query it before Okular is closed. > Does Okualr can be used as a KPart? Yes, the okularpart component, which is used by the “Okular” desktop application, is actually a KPart in a shared library. It provides the same currentPage() method. -- You are receiving this mail because: You are watching all bug changes.