michaelweghorn created this revision. michaelweghorn added a reviewer: Okular. Herald added a project: Okular. Herald added a subscriber: okular-devel. michaelweghorn requested review of this revision.
REVISION SUMMARY Support the '#page=<pagenum>' fragment to specify which page to open the document at, in addition to the existing '#<pagenum>' syntax. For PDF, the '#page=<pagenum>' fragment is specified in RFC 8118, section 3. BUG: 406831 TEST PLAN 1. Put a test file that has multiple pages at '/tmp/testfile.pdf' 2. Check that all of the following commands open the test file on page 2: okular /tmp/testfile.pdf#2 okular /tmp/testfile.pdf#page=2 okular file:///tmp/testfile.pdf#2 okular file:///tmp/testfile.pdf#page=2 REPOSITORY R223 Okular BRANCH michaelweghorn/kdebug406831_support_rfc_compliant_way_to_open_at_page REVISION DETAIL https://phabricator.kde.org/D20868 AFFECTED FILES part.cpp To: michaelweghorn, #okular Cc: okular-devel, joaonetto, tfella, ngraham, darcyshen, aacid