With the PDF file open in mupdf, you can enter this Bash command in a terminal to print the PDF:
pdfviewercommand="\/usr\/lib\/mupdf\/mupdf-x11 -r [1-9][0-9]\+" ; pdfpid=$(ps -lu $(whoami) | grep mupdf | sed 's/^[^ ]\+ \+[^ ]\+ \+[^ ]\+ \+\([0-9]\+\) .*/\1/g') ; pdffile=$(cat /proc/$pdfpid/cmdline | tr '\0' '\40' | sed "s/^$pdfviewercommand \+\(.*\)/\1/g" | sed 's/ \+$//g') ; directory=$(pwdx $pdfpid | cut -d' ' -f 2) ; lpr $directory/$pdffile Of course, you'd want to create an alias or a function for this. With a little bit more work, you could have it offer you options in the event that more than one PDF is open. Best regards, Greg Marks > Date: Wed, 19 Sep 2018 22:37:48 -0300 > From: rv riveravaldez <riveravaldezm...@gmail.com> > To: Brian <a...@cityscape.co.uk> > Cc: debian-user <debian-user@lists.debian.org> > Subject: Re: Print with mupdf? > > On Wed, Sep 19, 2018 at 4:59 PM, Brian <a...@cityscape.co.uk> wrote: > > On Wed 19 Sep 2018 at 14:41:24 -0500, Jason wrote: > > > >> On Mon, Sep 17, 2018 at 01:32:47AM -0300, Felipe Portales wrote: > >> > El domingo, 16 de septiembre de 2018 17:15:16 -03, Glenn English > >> > escribió: > >> > > Anybody know of a civilized, bug-free pdf viewer? (will display full > >> > > screen with no or thin borders, allows for manipulating size and > >> > > position) > >> > > >> > May I suggest mupdf? > >> > >> Is there any way to print from mupdf? It's very fast for viewing PDFs > >> but of limited use to me if it can't print. > > > > Using a mupdf option? No. > > Zathura > > Ctrl+P? > > R.
signature.asc
Description: PGP signature