GNOME Bugzilla – Bug 170458
Evince should provide a way to jump at the specified page on the command line
Last modified: 2005-05-20 05:48:05 UTC
It would be really nice if evince could jump to a specified page at opening, through the command line for example typing evince --page 32 document.pdf would open page 32 of the document, if there are at least 32 pages of course.. It would also allow, for example beagle to open a document in the exact place where a word was found. Going further, maybe also passing a find string on the command line could be useful, to highlight the word ahen the document opens..
As someone suggested on IRC, if evince could detect any change of the curent file, and reload it at the same page and position when the file changes it would be very useful. (via inotify or anything else) This can be done in combination of the command line option...
Hi, thanks for the request. I don't see much of a problem with doing this, however it will probably be low in the priority queue without working patches. Also this is very similar to one part of bug 165242 See the discussion on reload in bug 165119
Created attachment 45592 [details] [review] Patch to add a --page command-line option.
Created attachment 45594 [details] [review] Second attempt. You can now provide either page numbers or page labels (i.e. iii, Index) on the command-line.
I don't think we want to keep the initial page on reload. I think that would be a little bit weird. Other than that, patch looks good.
Patch from bug 300641 has this work included and also solves the problems with scrolling to page in continuous view
Patch commited, thanks
Thanks for that patch !
The version of this patch included with the patch from bug 300641 does not work with current CVS. Reopening the bug.
Created attachment 46620 [details] [review] Patch Sorry for being so fast to close this bug. This patch should fix the problem
Marco, it would be nice to have this patch in before the release
It would be nice if jrb could have a look in this one... I havent seen the new view code at all yet. Also, until the infinite loop is fixed I think we will have to delay the release :/
Comment on attachment 46620 [details] [review] Patch Looks sane to me even if I dont fully understand the pending_scroll logic.
Committed, thanks.