>> You can write a script wich execute mudipdf 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. 
> 
> ... and then archive it in a ZIP file, make that an attachment
> to the A1 cell in a spread sheet, and mail that to yourself.

 Ohh, I'm so sorry. Look, I know its complicated, but I'm going to explaining 
to you. I'm going to left the PID
out, because it's very complicated (and because some wm may have problems, oh 
fuck! I'm complicating
all again!). Don't worry, please... where are my puppets? Any way... This is 
the script for call mupdf:
 I'll call it pmupdf, oh! I'm sorry, it's a complicated name. I'll explain to 
you.
 
                                        /*********************/
                                        /*      P IS FOR PRINT.  */
                                        /*********************/
                                        
-----------------------------------------------
#!/bin/sh

FNAME=$(echo $1 | sed -r 's;.*/([^/]+);\1;')
RFNAME=$(readlink -f $1)

mupdf $1 &
echo $RFNAME > /tmp/${FNAME}_pmupdf
-----------------------------------------------

Whoa! It's Enormous, and that sed... don't be afraid, here you'll find help:

                                http://askubuntu.com/
                                
And now, the print dialog script: pdialog. Yes!! The p is for print!! You are 
such
a big boy.

-----------------------------------------------
#!/bin/sh

FWIN=$(xdotool getwindowfocus)
FNAME=$(echo $(xdotool getwindowname $FWIN) | sed -r 's/pdf.*/pdf/')
export RFNAME=$(cat /tmp/${FNAME}_pmupdf)

# CUPS's lp
xterm -e sh -c 'echo Range of pages?; read PAGES; lp -P $PAGES $RFNAME'
-----------------------------------------------

Yes, is horrible, tomorrow I'll send another one to you in javascript.

You can now put a key binding, for example with xbindkeys

"pdialog"
Mod4 + p

And now, when you are reading a document, you press the windows key and the p
key, listen, at the same time, eh?, and you can select the pages you want to
print!

And now, archive it in a ZIP file, make that an attachment to the A1 cell in a
spread sheet, and push it up your ass.

And now for something completely different:

https://xkcd.com/1172/

You are amazing [email protected], you not only have wasted your time 
replying a stupid mail, 
you even have looked for a nerd comic to show to the world who you are.

Impressing.


> On 2015-12-16, Stefan Wollny <[email protected]> wrote:
>> 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 
>> legal reasons.
>>
>> Anyone around who knows how to achieve this with mupdf/mutool?
> 
> Only by rendering to images with 'mutool draw' and printing them.
> 
> It might be worth trying zathura which can use mupdf as a backend
> and I believe does have a print command.

zathura is very slow with big documents, with mupdf and also with poppler. The 
only thing
I really miss in mupdf is the double page feature that sometimes I need.

trebol.

Reply via email to