DaemonForums  

Go Back   DaemonForums > Miscellaneous > Off-Topic

Off-Topic Everything else.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th February 2011
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Thumbs down PDF: Quality of Document Rendering on BSDs

A simple comparision of Evince (epdfview does the same) and Sumatra PDF using WINE (Sumatra PDF is open-source software, but written for Windows platform).

Evince vs. Sumatra | RENDERING


Evince vs. Sumatra | MEMORY USAGE


What is more funny, its more memory efficient to use Sumatra PDF using WINE then Evince natively ... guess whats my new PDF viewer

[1] http://projects.gnome.org/evince/
[2] http://blog.kowalczyk.info/software/sumatrapdf/free-pdf-reader.html

PS. If You are scared about lack of WINE on amd64, then I have good message for You, these screenshots are from FreeBSD 8.2 amd64 using package by Ivoras available here: http://people.freebsd.org/~ivoras/wine/
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #2   (View Single Post)  
Old 10th February 2011
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by vermaden View Post
Sumatra PDF using WINE (Sumatra PDF is open-source software, but written for Windows platform).
That is only partially true. Sumatra PDF rendering libraries are ported to Unix!
mupdf is absolutely the most minimalistic PDF viewer written in pure C which uses the Sumatra PDF rendering libraries. Most OpenBSD people I know of use mupdf, myself included.

Code:
$ uname -a
OpenBSD oko.bagdala2.net 4.8 GENERIC.MP#361 i386
$ pkg_info mupdf
Information for inst:mupdf-0.6p0
Comment:
graphic library, pdf parser, viewer and utilities

Description:
MuPDF is a lightweight PDF viewer and toolkit written in portable C.
Most FreeBSD people I know of use MAC Consequently mupdf port on FreeBSD has been broken for ages. Looks like TeXLive joke all over again. Good thing Hiroki Sato is the Core Team member so he will fix mupdf as soon as he finishes TeXLive port on which he is working since 2001

Last edited by Oko; 10th February 2011 at 05:43 PM.
Reply With Quote
  #3   (View Single Post)  
Old 10th February 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Indeed, mupdf is nice for reading the odd book.. doesn't support showing indexes though, so generally I keep epdfview around, xpdf is crap.
Reply With Quote
  #4   (View Single Post)  
Old 10th February 2011
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by BSDfan666 View Post
Indeed, mupdf is nice for reading the odd book.. doesn't support showing indexes though, so generally I keep epdfview around, xpdf is crap.
Sure neither it does support search or even a print. So somebody needs to sit down and to write more "user friendly" viewer based on Sumatra PDF libraries. But the most important thing is that those libraries are ported. So somebody already did the was the most difficult job
Reply With Quote
  #5   (View Single Post)  
Old 10th February 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

mupdf supports search, using vi-like bindings, but it's not perfect.. no such thing exists for PDF readers.
Reply With Quote
  #6   (View Single Post)  
Old 10th February 2011
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by BSDfan666 View Post
mupdf supports search, using vi-like bindings, but it's not perfect.. no such thing exists for PDF readers.
That is the new information for me. I have been using mupdf since Stuart ported it to OpenBSD. I need to read man pages again
Reply With Quote
  #7   (View Single Post)  
Old 10th February 2011
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by BSDfan666 View Post
mupdf supports search, using vi-like bindings, but it's not perfect.. no such thing exists for PDF readers.
I checked You are not right for version 0.6. Are you suggesting that mupdf version 0.7 which is in 4.9 supports search? You are wrong about the other thing. Xpdf does indeed support search (actually it is called find and it is a binocular icon on the bottom of the reader).
Reply With Quote
  #8   (View Single Post)  
Old 10th February 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Quote:
Originally Posted by Oko View Post
I checked You are not right for version 0.6. Are you suggesting that mupdf version 0.7 which is in 4.9 supports search? You are wrong about the other thing. Xpdf does indeed support search (actually it is called find and it is a binocular icon on the bottom of the reader).
I wasn't implying that only mupdf supported search, what I meant was there is no such thing as a perfect PDF reader.
Reply With Quote
  #9   (View Single Post)  
Old 10th February 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

BTW, the issue vermaden is having is a known issue.. mostly about it not antialiasing certain things.

I believe the issue is in poppler/cairo, the library used by epdfview and evince.

On OpenBSD, I don't see the visual distortions.. perhaps something about your specific configuration or the FreeBSD port, what versions do they use?
Reply With Quote
Old 10th February 2011
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

I just checked and yes indeed the version 0.7 of mupdf DOES support search with key /
That is fantastic! Unfortunately I always end up with installation of xpdf since it is required
by Xfig.
Reply With Quote
Old 10th February 2011
Alphalutra1 Alphalutra1 is offline
Port Guard
 
Join Date: Sep 2008
Posts: 29
Default

Thanks for the suggestion of mupdf. It works great.

Quote:
Originally Posted by oko
Consequently mupdf port on FreeBSD has been broken for ages.
Version 0.7 works perfectly installed straight from FreeBSD ports. So it is definitely not broken. Looking at the commit logs, it seems it was broken for less than a month in September. You must not be very old for that being ages
Reply With Quote
Old 11th February 2011
backrow backrow is offline
Real Name: Anthony J. Bentley
Shell Scout
 
Join Date: Jul 2009
Location: Albuquerque, NM
Posts: 136
Default

Quote:
Originally Posted by Oko View Post
I just checked and yes indeed the version 0.7 of mupdf DOES support search with key /
Unfortunately, the search is currently only within a page, not ahead pages. Mupdf is great but not very useful for long documents yet, because of that and the lack of indexes. But this will improve with time, I suspect. I noticed they changed the keybindings several times, but I’m glad they chose vi‐style in the end.

I also found a memory leak but haven’t gotten around to reporting it yet…
__________________
Many thanks to the forum regulars who put time and effort into helping others solve their problems.

Last edited by backrow; 11th February 2011 at 03:48 PM.
Reply With Quote
Old 23rd March 2011
backrow backrow is offline
Real Name: Anthony J. Bentley
Shell Scout
 
Join Date: Jul 2009
Location: Albuquerque, NM
Posts: 136
Default

Quote:
Originally Posted by backrow View Post
Unfortunately, the search is currently only within a page, not ahead pages.
Looks like this is no longer the case:

“update mupdf … to 0.8.15. various improvements and fixes, notably now supports AESv3 encrypted PDFs and, very welcome, search now operates over all pages and is thus actually useful.” [1]

Also fixed a memory leak from the previous version. Still got a little bit to go before prime‐time, but I like what I see.
__________________
Many thanks to the forum regulars who put time and effort into helping others solve their problems.
Reply With Quote
Old 11th February 2011
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

Thanks for suggestion on mupdf, seems I may like it since I also use vi a lot, I was also suggested on FreeBSD Forums, that I may have disabled antialiasing in cairo ... do not remember doing that but who knows.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
Old 12th February 2011
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

It supports vi keystrokes, it's C, and it's small. OK, if there's a package available for Zenwalk, I think Evince is getting retirement!
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Old 12th February 2011
Oliver_H's Avatar
Oliver_H Oliver_H is offline
Real Name: Oliver Herold
UNIX lover
 
Join Date: May 2008
Location: Germany
Posts: 427
Default

Ewww, so you're on Linux now? ;-)
__________________
use UNIX or die :-)
Reply With Quote
Old 13th February 2011
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

Quote:
Originally Posted by Oliver_H View Post
Ewww, so you're on Linux now? ;-)
At least until the FreeBSD Linuxator grows more, or I have time to extend it.

It's also nice to have easy access to more tools, without having to port them. But it seems, Zenwalk doesn't have a package for mupdf :-/.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Old 13th February 2011
Oliver_H's Avatar
Oliver_H Oliver_H is offline
Real Name: Oliver Herold
UNIX lover
 
Join Date: May 2008
Location: Germany
Posts: 427
Default

Just kidding, sometimes I have to use Linux too.

Btw. building packages for Slackware or derived systems is as easy as configure, make DESTDIR ..., makepkg ..., installpkg ;-)
__________________
use UNIX or die :-)
Reply With Quote
Old 13th February 2011
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Thanks to all posters on this thread, I've installed epdfview and mupdf on both platforms and they look useful.

Quote:
Originally Posted by TerryP View Post
But it seems, Zenwalk doesn't have a package for mupdf :-/.
Is there any reason you want a package? I compiled the mupdf source on Slackware without incident. Maybe you'll have the same luck on Zenwalk?
Reply With Quote
Old 23rd March 2011
thirdm thirdm is offline
Spam Deminer
 
Join Date: May 2009
Posts: 248
Default

Quote:
Originally Posted by TerryP View Post
It supports vi keystrokes, it's C, and it's small. OK, if there's a package available for Zenwalk, I think Evince is getting retirement!
Only in 2010 do GUI programs catch up to ksh in its user interface, but where's the option for emacs bindings? Well, I see emacs 23.3 will probably arrive in OpenBSD 5.0, so I can just view my pdfs in that using their pdf viewing support. If only someone would resurrect W3.el, then I could change my last .xsession line from exec cwm to exec emacs.

But what of mg users who abhor the bloat that is emacs? No joy for them, I guess. Maybe they will want my adaptation of poppler that, in the spirit of minimalism, uses the user interface of ed. You'll be pleased to know it's written in C. Sadly, perhaps from emacs's influence on me, it's bloated with a scripting language, however. On the other hand, also in the spirit of minimalism, that scripting language is forth.
Reply With Quote
Reply

Tags
amd64, evince, pdf, sumatra, wine

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using multiple BSDs: How hav you implemented them? Mr-Biscuit Off-Topic 20 2nd June 2010 03:11 AM
Quality and Backwards Compatibility of GNU Tools ... vermaden Off-Topic 1 12th May 2009 08:25 PM
Comparison of Code Quality JMJ_coder Other BSD and UNIX/UNIX-like 13 11th April 2009 03:40 AM
direct rendering with nvidia card PatrickBaer FreeBSD General 13 2nd October 2008 07:51 AM
OpenSolaris 2008.11 Requirements Document ninjatux Solaris 4 15th August 2008 01:03 AM


All times are GMT. The time now is 09:49 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick