> At 16 Dec 2015 22:12:48 +0000 (UTC) from Stefan Wollny <[email protected]>:
> Hi there!
> 
> I like mupdf for it's speed with large documents (800+ pages and more). 
> BUT: My usual workflow has it that I need to make printouts of specific 
> pages from those PDFS, sometimes even print the entire document for 
l> egal reasons.
> 
> Anyone around who knows how to achieve this with mupdf/mutool? The man 
> pages for mupdf/mutool do not provide any hints on this and 'startpage' 
> (=google-proxy) didn't come up with anything but "no printing". (I use 
> xpdf again as I do not want to open the doc a second time with xpdf only 
> for printing.)
> 
> TIA.
> 
> Best,
> STEFAN

You can write a script wich execute mupdf and send the the route of the 
directory containing the
pdf to a file in /tmp with the $pid of mupdf in the name. Then you can use your 
wm's key bindings
(or use xbindkeys) to excecute a program (or a shell script, or a Tcl/Tk 
script, or a zenity script with
gtk crap or whatever) to ask for printing options. You can get the pid and the 
file name from the title 
of the focused windows with the help of xdotool, and the directory route from 
the temp file. 
Well, it's an idea, and you can extended to other programs.

Or you can edit the source code and send a patch to the developers.

Good luck.
trebol.

Reply via email to