Re: [gentoo-user] pdf viewer

2015-01-15 Thread lee
Walter Dnes waltd...@waltdnes.org writes:

 On Sun, Jan 11, 2015 at 01:21:19PM +0100, lee wrote
 Walter Dnes waltd...@waltdnes.org writes:
 
Assuming you've already got Content Type PDF file in the list,
  click on the icon beside emacsclient in the Action column.  This
  opens a dropdown menu.  Click on Use other... and navigate to
  /usr/bin/mupdf in the file menu.
 
 That's what I thought and tried.  I don't want to use it as default
 action, though, because I sometimes save PDFs.

   Two options...

 1) In the Action column you can select Always ask, and it'll always
 ask what you want to do.  I find that to be a pain.

What I want is to have llpp as the default program to show PDFs and be
asked what I want to do, i. e. either shave or display it with the
default program.  Currently, I'm being asked what I want to do, and if I
don't want to save the PDF but display it, I have to pick the program
with which to display it.

 2) mupdf does not render straight from memory.  First it saves the pdf
 file to /tmp/ and renders it from there.  I believe the linux default is
 to always clean up /tmp/ at every reboot (but not during restore from
 hibernation).  While mupdf doesn't have a Save as option, you can
 copy/move the file from /tmp/ manually, giving you the same effect as a
 Save as.

Yes, I noticed that llpp (or mupdf) is buggy in that it doesn't clean up
after itself.  That's enough reason for me to want something better.

It's really bad behaviour to leave temporary files around and can even
be a privacy issue.  It's a hazard for the whole system because the /tmp
partition might fill up, and when it's not a separate partition, the
system may go down because the disk is full, or you'll see other issues
because the /tmp partition is full.

Having to try to figure out which file name might have been used to be
able to switch to the shell to copy that file to where I want it would
be a pita.


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] pdf viewer

2015-01-11 Thread lee
Andrew Savchenko birc...@gentoo.org writes:

 On Sat, 10 Jan 2015 19:25:54 +0100 lee wrote:
 Andrew Savchenko birc...@gentoo.org writes:
 
  On Fri, 09 Jan 2015 20:49:56 +0100 lee wrote:
  Andrew Savchenko birc...@gentoo.org writes:
  
   When I need something simple (e.g. to read pdf books) I use mupdf.
  
  How did you get mupdf to display a pdf?
 
  Just run it:
  $ mupdf file.pdf
 
  In my case mupdf is configured as follows:
  Installed versions:  1.5-r1(02:19:48 AM 12/28/2014)(X curl openssl -static 
  -static-libs -vanilla)
 
 There's only 'utool' and no 'mupdf'.

 You should enable USE=X as I wrote above.

Thanks, that creates 'mupdf'.

  2) Configure your default mime handler using xdg-mime.
 
 Hm, xdg-mime is not installed; I've never heared of it.

 x11-misc/xdg-utils
 Most WM/DE will pull this package.

Apparently fvwm doesn't.


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] pdf viewer

2015-01-11 Thread lee
Walter Dnes waltd...@waltdnes.org writes:

 On Sat, Jan 10, 2015 at 07:25:54PM +0100, lee wrote
 Andrew Savchenko birc...@gentoo.org writes:

  1) Configure your handlers in seamonkey.
 
 How?

   I've got Seamonkey 2.31.  Go to 
 Edit == Preferences == Category;Browser == Helper Aplications

   Assuming you've already got Content Type PDF file in the list,
 click on the icon beside emacsclient in the Action column.  This
 opens a dropdown menu.  Click on Use other... and navigate to
 /usr/bin/mupdf in the file menu.

That's what I thought and tried.  I don't want to use it as default
action, though, because I sometimes save PDFs.

   If you're really brave, you can try editing the mimeTypes.rdf file in
 the browser profile directly.  Remember to shut down your browser, and
 back up the file first.

Thanks, if it all doesn't help, I'll do that.


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] pdf viewer

2015-01-11 Thread Walter Dnes
On Sun, Jan 11, 2015 at 01:21:19PM +0100, lee wrote
 Walter Dnes waltd...@waltdnes.org writes:
 
Assuming you've already got Content Type PDF file in the list,
  click on the icon beside emacsclient in the Action column.  This
  opens a dropdown menu.  Click on Use other... and navigate to
  /usr/bin/mupdf in the file menu.
 
 That's what I thought and tried.  I don't want to use it as default
 action, though, because I sometimes save PDFs.

  Two options...

1) In the Action column you can select Always ask, and it'll always
ask what you want to do.  I find that to be a pain.

2) mupdf does not render straight from memory.  First it saves the pdf
file to /tmp/ and renders it from there.  I believe the linux default is
to always clean up /tmp/ at every reboot (but not during restore from
hibernation).  While mupdf doesn't have a Save as option, you can
copy/move the file from /tmp/ manually, giving you the same effect as a
Save as.

-- 
Walter Dnes waltd...@waltdnes.org
I don't run desktop environments; I run useful applications



Re: [gentoo-user] pdf viewer

2015-01-10 Thread lee
Andrew Savchenko birc...@gentoo.org writes:

 On Fri, 09 Jan 2015 20:49:56 +0100 lee wrote:
 Andrew Savchenko birc...@gentoo.org writes:
 
  When I need something simple (e.g. to read pdf books) I use mupdf.
 
 How did you get mupdf to display a pdf?

 Just run it:
 $ mupdf file.pdf

 In my case mupdf is configured as follows:
 Installed versions:  1.5-r1(02:19:48 AM 12/28/2014)(X curl openssl -static 
 -static-libs -vanilla)

There's only 'utool' and no 'mupdf'.

 I'd have removed it if it
 wasn't required by llpp ...

 Funny thing. llpp segfaults to me to matter on what host I try it.

It works fine here :)

 How do I get seamonkey to suggest llpp as application to view PDFs?
 Sometimes it suggests emacsclient, sometimes browse ...

 I don't use seamonkey, so I can't get an exact advice, but in general
 there are two ways to do this:

 1) Configure your handlers in seamonkey.

How?

 2) Configure your default mime handler using xdg-mime.

Hm, xdg-mime is not installed; I've never heared of it.


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] pdf viewer

2015-01-10 Thread Andrew Savchenko
On Sat, 10 Jan 2015 19:25:54 +0100 lee wrote:
 Andrew Savchenko birc...@gentoo.org writes:
 
  On Fri, 09 Jan 2015 20:49:56 +0100 lee wrote:
  Andrew Savchenko birc...@gentoo.org writes:
  
   When I need something simple (e.g. to read pdf books) I use mupdf.
  
  How did you get mupdf to display a pdf?
 
  Just run it:
  $ mupdf file.pdf
 
  In my case mupdf is configured as follows:
  Installed versions:  1.5-r1(02:19:48 AM 12/28/2014)(X curl openssl -static 
  -static-libs -vanilla)
 
 There's only 'utool' and no 'mupdf'.

You should enable USE=X as I wrote above.
 
  How do I get seamonkey to suggest llpp as application to view PDFs?
  Sometimes it suggests emacsclient, sometimes browse ...
 
  I don't use seamonkey, so I can't get an exact advice, but in general
  there are two ways to do this:
 
  1) Configure your handlers in seamonkey.
 
 How?

I don't have seamonkey, read its manual.
 
  2) Configure your default mime handler using xdg-mime.
 
 Hm, xdg-mime is not installed; I've never heared of it.

x11-misc/xdg-utils
Most WM/DE will pull this package.

Best regards,
Andrew Savchenko


pgpRigLqXTToR.pgp
Description: PGP signature


Re: [gentoo-user] pdf viewer

2015-01-10 Thread Walter Dnes
On Sat, Jan 10, 2015 at 07:25:54PM +0100, lee wrote
 Andrew Savchenko birc...@gentoo.org writes:

  1) Configure your handlers in seamonkey.
 
 How?

  I've got Seamonkey 2.31.  Go to 
Edit == Preferences == Category;Browser == Helper Aplications

  Assuming you've already got Content Type PDF file in the list,
click on the icon beside emacsclient in the Action column.  This
opens a dropdown menu.  Click on Use other... and navigate to
/usr/bin/mupdf in the file menu.

  If you're really brave, you can try editing the mimeTypes.rdf file in
the browser profile directly.  Remember to shut down your browser, and
back up the file first.

  I originally got into this because of a particularly obnoxious
behaviour by Firefox.  Seamonkey shares most Firefox code, so I assume
it follows suit.  The obnoxious behaviour is that it dereferences
symlinks.  Years ago Abiword would actually install a binary like
/usr/bin/abiword-1.2.3.4 and /usr/bin/abiword was a symlink to this
file.  Let's say you selected abiword as the helper application to
launch when you get Word files as URLs.  Firefox would dereference the
symlink to /usr/bin/abiword-1.2.3.4, and store that app name as the app
to launch for Word files.  A version bump to /usr/bin/abiword-1.2.3.5
and Firefox would whine about /usr/bin/abiword-1.2.3.4 not being found.
I edited mimeTypes.rdf, changing all abiword-1.2.3.4 to abiword, and
things worked properly.

  This was even more crucial for apps like sox which have symlinks
with different names like play that take different parameters and act
differently depending on the name you invoke them by.

-- 
Walter Dnes waltd...@waltdnes.org
I don't run desktop environments; I run useful applications



Re: [gentoo-user] pdf viewer

2015-01-09 Thread Andrew Savchenko
On Fri, 09 Jan 2015 20:49:56 +0100 lee wrote:
 Andrew Savchenko birc...@gentoo.org writes:
 
  When I need something simple (e.g. to read pdf books) I use mupdf.
 
 How did you get mupdf to display a pdf?

Just run it:
$ mupdf file.pdf

In my case mupdf is configured as follows:
Installed versions:  1.5-r1(02:19:48 AM 12/28/2014)(X curl openssl -static 
-static-libs -vanilla)

 I'd have removed it if it
 wasn't required by llpp ...

Funny thing. llpp segfaults to me to matter on what host I try it.
 
 How do I get seamonkey to suggest llpp as application to view PDFs?
 Sometimes it suggests emacsclient, sometimes browse ...

I don't use seamonkey, so I can't get an exact advice, but in general
there are two ways to do this:

1) Configure your handlers in seamonkey.
2) Configure your default mime handler using xdg-mime.

Best regards,
Andrew Savchenko


pgp2viOPgFzel.pgp
Description: PGP signature


Re: [gentoo-user] pdf viewer

2015-01-09 Thread lee
Andrew Savchenko birc...@gentoo.org writes:

 When I need something simple (e.g. to read pdf books) I use mupdf.

How did you get mupdf to display a pdf?  I'd have removed it if it
wasn't required by llpp ...

How do I get seamonkey to suggest llpp as application to view PDFs?
Sometimes it suggests emacsclient, sometimes browse ...


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] pdf viewer

2015-01-03 Thread the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 03/01/15 08:15, lee wrote:
 Hi,
 
 what do you as PDF viewer?
 
 Most of the time, I was using xpdf, and that doesn't seem to be 
 available in Gentoo.  I compiled it from source and found out that 
 it cannot display PDFs so well and gives error messages about not 
 being able to find fonts.  Pdfpc isn't a good alternative.

I was using evince, now moved to zathura. Both are as slow as hell
though, so I'm open for faster alternatives.

-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQEcBAEBCAAGBQJUp6KvAAoJEK64IL1uI2hayS4H/2odiqBO1wYC9PZchZlxEyFh
PPyXT+aOb9TJJkPyhwgAAuF5DBId6k61e8V1FQo1IyHH3pRv+MP0Q77g0igWeQT0
N2XsXnqzWisSMN6EZD8uu3qRkMkzevM52EfqN3NpJblzNPVaWCFYWdEgyVYCO9u5
ogI843CgUu7XsDBzVl6dmSkvT+jHzZhviVnN0+NFwD/5sCk0ZgCfPJrKBzPZWoKU
EpUyNH0kEcoMZepT8LwV0674fZ6wCbKVLatxpFC3wSTkueG6FPmwZs7anaDbxsOu
QfyEsZl27mkD06X1aqPDk73sFnc8ipwusrE1jy6+Az/ykBB2nTB8Hz8yKSeBEUo=
=DmYi
-END PGP SIGNATURE-



Re: [gentoo-user] pdf viewer

2015-01-03 Thread Mick
On Saturday 03 Jan 2015 08:05:04 the wrote:
 On 03/01/15 08:15, lee wrote:
  Hi,
  
  what do you as PDF viewer?
  
  Most of the time, I was using xpdf, and that doesn't seem to be
  available in Gentoo.  I compiled it from source and found out that
  it cannot display PDFs so well and gives error messages about not
  being able to find fonts.  Pdfpc isn't a good alternative.
 
 I was using evince, now moved to zathura. Both are as slow as hell
 though, so I'm open for faster alternatives.

llpp looks fast and versatile, but I hadn't heard of it until now - thanks 
Zesen.

I'm using mupdf, qpdfview and okular (in this order).

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] pdf viewer

2015-01-03 Thread lee

Thank you all for your answers! :)


Alexander Kapshuk alexander.kaps...@gmail.com writes:

 On Jan 3, 2015 7:15 AM, lee l...@yagibdah.de wrote:

 Hi,

 what do you as PDF viewer?


 mupdf.

mupdf seems to display text only?

llpp seems to work great and really fast, I'll use that for now.

How did you find all these packages?  I used 'emerge --search' and it
didn't show many results for pdf.


-- 
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.



Re: [gentoo-user] pdf viewer

2015-01-03 Thread Philip Webb
150103 lee wrote:
 what do you as PDF viewer?
 Most of the time I was using xpdf, which isn't available in Gentoo.

No, it was dropped due to security + other concerns.

I use Mupdf for quick reads from CLI, Firefox viewer for dox on-line
 Okular for serious reading of lengthy dox.  All are satisfactory.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] pdf viewer

2015-01-03 Thread Andrew Savchenko
On Sat, 03 Jan 2015 06:15:05 +0100 lee wrote:
 Hi,
 
 what do you as PDF viewer?
 
 Most of the time, I was using xpdf, and that doesn't seem to be
 available in Gentoo.  I compiled it from source and found out that it
 cannot display PDFs so well and gives error messages about not being
 able to find fonts.  Pdfpc isn't a good alternative.
 
For advanced actions (e.g. pdf notes editing, pdf fields editing,
work with pdf indexes and so on) I use evince.

When I need something simple (e.g. to read pdf books) I use mupdf.
Another bonus of mupdf is unlimited scale of pdf pages (limited
only by available memory). This is really handy when handling huge
pdf pages (e.g. some schemes, graphs) with very small fonts, so
large zoom is required to made them readable; evince can't handle
such issues.

Best regards,
Andrew Savchenko


pgpkt9XrfqNla.pgp
Description: PGP signature


Re: [gentoo-user] pdf viewer

2015-01-03 Thread Andrew Savchenko
On Sat, 03 Jan 2015 16:00:02 +0100 lee wrote:
 mupdf seems to display text only?

No: images, internal references and hyperlinks are also OK.
 
 How did you find all these packages?  I used 'emerge --search' and it
 didn't show many results for pdf.

$ eix -c -C app-text -S pdf|viewer

Best regards,
Andrew Savchenko


pgpJxLhd51IC7.pgp
Description: PGP signature


Re: [gentoo-user] pdf viewer

2015-01-03 Thread Alexander Kapshuk
On Sat, Jan 3, 2015 at 5:00 PM, lee l...@yagibdah.de wrote:


 Thank you all for your answers! :)




 mupdf seems to display text only?

 llpp seems to work great and really fast, I'll use that for now.

 How did you find all these packages?  I used 'emerge --search' and it
 didn't show many results for pdf.


 One way of doing this is:

 qsearch pdf
 equery -q b /usr/bin/qsearch
 app-portage/portage-utils-0.53



Re: [gentoo-user] pdf viewer

2015-01-02 Thread Zesen Qian
lee l...@yagibdah.de writes:

 Hi,

 what do you as PDF viewer?

 Most of the time, I was using xpdf, and that doesn't seem to be
 available in Gentoo.  I compiled it from source and found out that it
 cannot display PDFs so well and gives error messages about not being
 able to find fonts.  Pdfpc isn't a good alternative.

Most of the time I use app-test/zathura, whose default key-binding is
vim-style.
But recently I found app-test/llpp a better choice, at least the speed
of fulltext search is very-very-very fast. But I 'm still wondering if
there 's some better one.

-- 
Zesen Qian (钱泽森)



Re: [gentoo-user] pdf viewer

2015-01-02 Thread wabenbau
Am Samstag, 03.01.2015 um 06:15
schrieb lee l...@yagibdah.de:

 Hi,
 
 what do you as PDF viewer?
 
 Most of the time, I was using xpdf, and that doesn't seem to be
 available in Gentoo.  I compiled it from source and found out that it
 cannot display PDFs so well and gives error messages about not being
 able to find fonts.  Pdfpc isn't a good alternative.

I use app-text/atril. Works well for me.

Regards
wabe




Re: [gentoo-user] pdf viewer

2015-01-02 Thread Michael Orlitzky
On 01/03/2015 01:18 AM, waben...@gmail.com wrote:
 
 I use app-text/atril. Works well for me.
 

This, it's like evince before they fucked everything up.




Re: [gentoo-user] pdf viewer

2015-01-02 Thread Alexander Kapshuk
On Jan 3, 2015 7:15 AM, lee l...@yagibdah.de wrote:

 Hi,

 what do you as PDF viewer?


mupdf.