faq
flatforty
contribute
subscribe
configure
search
rdf
main
|
| The Road to KDE 4: Okular and Ligature Document Viewers |
Posted by Troy Unrau on Wednesday 14/Feb/2007, @03:39
from the through-the-looking-glass dept.
Focusing again on applications this week, specifically I'll look at two of the promising document viewers for KDE 4, Okular and Ligature.
They are two of the rising stars of KDE 4, but they both have their
roots as KDE 3 applications that have grown up. Read on for more...
In the past, KDE has had a wide variety of programs designed for viewing all sorts of file formats, and using the KParts technology of KDE, these viewers were able to be embedded into other KDE applications such as Konqueror as and when they were needed. Supported formats included TIFF, PDF, PostScript, fax, DjVu files, and many more. okular and Ligature have grown up from some of these earlier designs to become much more than simple document viewers.
Historically, KDE has shipped with a program called KGhostView, which used the GhostScript backend to render PDF and PostScript files for display. KDE has even used it as the Print Preview utility. What follows is a shot of KGhostView in action for KDE 3.5.6. Please note that some of the font rendering glitches may be due to the font selection of my distribution, and are not necessarily a reflection on KGhostView's ability to render this file.

In the KDE 3 series, a new contender emerged for viewing PDF files that was much faster than KGhostView. This new program, KPDF, has since eclipsed KGhostView in many important areas, like functionality, speed, and so on. KPDF is shipped with many modern distributions as the default PDF viewer for KDE. Below is the same file as viewed with KPDF.

From personal experience, KPDF has been the subject of some of the 'oh wow!' type experiences I've had while using KDE. I've clicked on web links to PDF files that specify 'frame' as their target, and had KPDF embed quickly and seamlessly, so much so that for a moment I forgot that the frame wasn't HTML anymore.
It also has quite a few advanced features that KGhostView never really pulled off, such as text searching, copy and paste from PDF, and more. It is also many times faster at rendering, especially when loading PDF files containing a lot of vector imagery. I use a lot of maps in my work, which often ship as PDF files - using KGhostView to view these files was incredibly slow, as you could literally watch the vectors being drawn on the map. KPDF would load the same map visible instantaneously, letting me do my work instead of waiting for the computer.
KPDF recently made the decision to broaden its support and start to view files of types other than simply PDF, partially thanks to coders sponsored by Google's Summer of Code program. The main reason they decided to do this inside KPDF instead of starting new, individual applications is that KPDF already had many advanced features implemented that didn't necessarily need to be duplicated for these other file formats. To more accurately reflect its broadened scope as a viewer for many file formats, it has been rebranded as 'okular'.
Users of KDE 4 are in for a treat with both okular and Ligature, as they are both shaping up to support a wide variety of (occasionally overlapping) media formats. But since they can both be embedded into KDE applications using standard interfaces, a user should be equally happy using either one of these viewers. I'll talk about okular first, since I have more information sources for it. Huge improvements are noticeable in okular over the already very functional KPDF. So far, it looks to be one of the best applications of KDE 4.
Pino Toscano (pinotree on irc.freenode.org) is the lead developer of okular. Currently it is being developed in KDE SVN and its sources are available in
/trunk/playground/graphics/okular for anyone who is interested in trying it out. It is already quite stable in the KDE 4 environment - actually it is one of the most stable KDE 4 applications I've had the pleasure of testing so far. It is also known to be building as part of the KDE/Mac packages. Benjamin Reed submits the following screenshot showing okular in action on the Mac:

He also adds: "Holy crap, okular is fast on OS X. No more Acrobat for me! :)"
I didn't test all of these formats myself, but according to its Supported Formats list at the okular website, it already has full or partial support for the following 11 document types: PDF, PS, TIFF, CHM, DjVu, DVI, XPS, OOo, FictionBook, ComicBook and standard graphics files. Work continues on making sure that support for all of these formats is flawless, and more formats may be added down the road. The okular that is released alongside KDE 4.0 may or may not have all of these formats enabled, depending on their stability at that time, as well as choices that your distribution may make.
Below is a shot of okular viewing the ComicBook format, often used to distribute comics online. Indeed, okular may end up becoming one of the most popular ComicBook viewer applications, especially considering how many platforms it will run on courtesy of KDE 4.

Pino has shown his willingness to work with the usability folks to help improve the ease of use of okular, and it is now part of the Season of Usability project. It will likely see a fairly-thorough overhaul of many interface elements before KDE 4.0 is released which can only make this application even better.
The other contender for your document viewing needs in KDE 4 is Ligature, recently renamed from KViewShell. It lives in the kdegraphics module, so it is currently the default viewer for the files that it supports. It could however be overridden such that okular is used by anyone who prefers using okular for a given format. The only reason I can find for Ligature to be in the kdegraphics module rather than okular is historical - KViewShell (which Ligature is based on) was part of kdegraphics in the past. However, this doesn't mean KDE is shunning okular either: for example, Amarok is one of KDE's best applications, though it doesn't reside in the official kdemultimedia package.
Ligature currently sports support for PDF, PostScript, EPS, fax, Tiff, DjVu, and TeX files based on the plugins available in SVN. I'm under the impression that 'fax' is for a sequential image type format using TIFF files. Its predecessor, KViewShell did not have support for several of these formats in the main kdegraphics branch, but a separate branch exists for these formats for KDE 3.5.x.
I tried to get a screenshots showing Ligature displaying PDF files, but it wouldn't load them. I tried a PostScript file, and it loaded it but did not display anything. So, I had to resort to a rather boring DVI file in order to show off the current state of the user interface, but this does not show off its rendering capabilities very well.

It does bear a close resemblance to okular as far as its user interface is concerned. This is mostly due to the fact that they utilise the same standard Qt and KDE libraries to draw many of the user interface elements. Since I could not get it to render any documents, I could not compare its actual usability to okular. Please keep in mind, however, that it is in a state of development at the moment, so being broken on any given day is nothing to be overly concerned about.
A note about DVI files in general: to view them you need to install some TeTeX files, which on my distribution totals 85 megabytes - a likely reason why DVI files are not a popular format for documents despite their competent rendering abilities. When Ligature finds a hyperlink in a DVI file, it underlined the text in blue to indicate that you could click on it, which while useful in some circumstances, made documents with links look quite ugly. okular on the other hand does not underline links in DVI files, but they still work as expected.
For those wondering about duplication of efforts, okular and Ligature use different internal architectures, but many of the library dependencies depend on are the same (much like how MPlayer and xine have very different internals, but can still use the same low level libraries to decode media). This means that while they cannot easily be merged into one project, any work that trickles down into the lower level libraries will be beneficial to both projects. Regarding availability, okular will be available wherever your distribution packages it, and since most distributions end up splitting packages like kdegraphics into their constituent apps anyway, Ligature will fall into the same category for most users. Of course, GNOME users can also use okular or Ligature as well, if they have the required KDE libraries installed, but of course they can also use Evince which shares many of the same backend libraries, but is better integrated into the GNOME environment.
That's all for this week folks. Hope this clears up any confusion about the nature of both okular and Ligature.
<
|
>
|
|
The Fine Print: The following comments
are owned by whomever posted them.
( Reply )
|
|
Over 40 comments listed.
Printing out index only. |
oh no...
by shamaz on Wednesday 14/Feb/2007, @04:44
|
OK since I'm making the 1st comment, I just want to tell everybody this :
Please don't start another discussion like "Ligature vs Okular", or "which viewer SHOULD be default ?". This type of discussion already happened many times (on mailing lists, commit-digest, etc.), and I don't think they helped.
Please respect the work done on both of these projects. They provide it to you for FREE, and you are FREE to use it or not.
This is what oss is about.
|
[
Reply To This | View ]
|
|
|
Editor-like Selection of Text
by Anon on Wednesday 14/Feb/2007, @04:49
|
One of the most interesting and useful features, to me, is the use of "editor-like" selection of text, as opposed to the old (and, to my mind, rather confusing and useless) "lasso" selection of text. I believe both Okular and Ligature incorporate this, which is great!
|
[
Reply To This | View ]
|
|
|
Choice is good.
by Slubs on Wednesday 14/Feb/2007, @04:54
|
Long live Ligature, long live Okular! Thanks to all their authors :)
And thanks Troy.
|
[
Reply To This | View ]
|
|
|
chm
by anonymous-from-linux.org.ru on Wednesday 14/Feb/2007, @04:59
|
okular crashes on Prentice.Hall.PTR.C++.GUI.Programming.with.Qt.4.Jun.2006.chm file
|
[
Reply To This | View ]
|
|
|
Postscript in Okular
by Sven on Wednesday 14/Feb/2007, @05:11
|
At the moment I still prefer KGhostView for Postscript Documents. PS look ugly in KPDF after the PDF transformation. Does anyone know whether this has changed with Okular ?
|
[
Reply To This | View ]
|
|
|
digg it!
by Patcito on Wednesday 14/Feb/2007, @05:40
|
http://digg.com/linux_unix/The_Road_to_KDE_4_Okular_and_Ligature_Document_Viewers
|
[
Reply To This | View ]
|
firefox-like search bar?
by anonimous on Wednesday 14/Feb/2007, @06:09
|
hi, will any of these two programs support a firefox-like search bar?
|
[
Reply To This | View ]
|
|
|
Somo points about the text
by cruzki on Wednesday 14/Feb/2007, @07:53
|
>A note about DVI files in general: to view them you need to install some TeTeX >files, which on my distribution totals 85 megabytes - a likely reason why DVI >files are not a popular format for documents despite their competent rendering >abilities. When Ligature finds a hyperlink in a DVI file, it underlined the >text in blue to indicate that you could click on it, which while useful in >some circumstances, made documents with links look quite ugly. okular on the >other hand does not underline links in DVI files, but they still work as >expected.
Hey, this can be configure and completily dissable ;) or almost in kdvi it's possible (I did this right now)
And about dvi files, this format it's a bit old. This came with the first LaTeX compiler when the pdf don't exist!!!! and is used in the "scientific world", or almost the kown that this format exist :P
|
[
Reply To This | View ]
|
Ability to fill in pdf forms?
by redbeard on Wednesday 14/Feb/2007, @08:13
|
Will either of these enable one to fill in forms on pdfs that support them?
|
[
Reply To This | View ]
|
|
|
Editing PDFs?
by Daniel on Wednesday 14/Feb/2007, @08:25
|
Viewing PDF, multi-page Tiffs and other, similar multi-page media is only half the game.
The app that allows to:
1. Mark / Type on the individual pages + export that back into PDF, and
2. Extract, move, rotate pages
Will the the only one that matters in the end. So, my money's on the group that tries to empower users, rather than chain them.
|
[
Reply To This | View ]
|
|
|
Creating PDF's Easily
by cirehawk on Wednesday 14/Feb/2007, @08:58
|
An important feature I'd like to see in either or both of these is the ability to easily create PDF's from scanned documents. With full acrobat, you can scan a document directly into a PDF. In fact, if you have multiple pages to scan it will keep prompting you for the next page until you indicate you are done. I use that feature to archive my important records. It's really about the only time I NEED windows. If this feature is added I will be a happy camper.
|
[
Reply To This | View ]
|
|
|
off topic remark
by djouallah mimoune on Wednesday 14/Feb/2007, @09:10
|
it seems the default file manager now for KDE is dolphin heeeeeeeeeeeah cool
it has moved to kdebase.
so thx really, i think after all the idea of konqueror as a super browser and file manager and file view was not a good idea
|
[
Reply To This | View ]
|
|
|
Wow wow wow!
by Darkelve on Wednesday 14/Feb/2007, @10:03
|
This looks awesome!
By the way, thus anyone here use the ComicBook format? I like anime and comics but I've never encountered a ComicBook format...
|
[
Reply To This | View ]
|
|
|
Has finally a decision been made? quote from text
by LB on Wednesday 14/Feb/2007, @11:19
|
I agree with shamaz that another discussion like "Ligature vs Okular" isn't really productive, but is seems that won't be necessary anymore.
quote from text; "Regarding availability, okular will be available wherever your distribution packages it"
It seems that Ligature will be part of the default KDE-tarballs (kdegraphics). Distributions have of course a possibility to override this.
Anyway, personally I'm happy that only one "universal viewer" is part of the default KDE-tarballs. I personally also don't care which one it is. I just think that desktop/menu clutter isn't helpful for users.
|
[
Reply To This | View ]
|
|
|
Comparing Snail to Caterpillar!
by fast_rizwaan on Wednesday 14/Feb/2007, @12:16
|
IMO, KPDF is caterpillar and KGhostview is a snail when rendering PDF files.. and I hope Okular will be a tortoise like the Acrobat.. which is a bit faster than KPDF or KGhostview.
Have you looked at foxit pdf reader.. the Rabit..?
http://www.foxitsoftware.com/pdf/desklinux/
foxit Renders too fast and has lot of features which okular may be having.. or deserve to have..
|
[
Reply To This | View ]
|
|
|
A More Intuitive UI
by Lawal Adekunle on Wednesday 14/Feb/2007, @12:48
|
I've always been a passionate user of kpdf which is now re-branded okular, but i believe it deserves a more intuitive user interface and iconification. I am particularly pleased with the transformation and i believe okular can only get better.
Keep up the good work guys, really appreciate it.
|
[
Reply To This | View ]
|
My two cents
by Artem S. Tashkinov on Wednesday 14/Feb/2007, @14:50
|
Speaking frankly, guys, I don't care much about new KDE4 applications/hacks/etc.
What do we (yes, we) need most:
1) Much faster applications start up
2) Decent stability (even in the latest KDE 3.5.6 some applications keep crashing randomly)
3) Decent, reworked KOffice with better MS .doc .xls .ppt support
4) Better distro and hardware support with possibility of setting up network interfaces, configuring X.org settings, proper package management (e.g., yum equivalent), etc.
5) More applications included in the base, like absolutely needed: Kaffeine, KNetStats, KTorrent, _maintained_ KSensors (with core and k8temp support), kxkb, GwenView, KRename, kio_burn, kio_iso, KCHM, K3B
6) Reworked KMenu and applications' shortcuts grouping with true support of drag and drop and human understandable logic
7) A single "kicker + kdesktop + kfind + kcalc" application, so that kicker finally could be made truly transparent
8) Smooth scrolling in all scrollable controls and, of course, KHTML
|
[
Reply To This | View ]
|
|
|
windowdecoration
by Marius on Wednesday 14/Feb/2007, @22:10
|
I like your windowdecoration color, what color do you use for the inactive windows?
|
[
Reply To This | View ]
|
|
|
Working application
by Bert on Friday 16/Feb/2007, @10:12
|
Other plattforms as Mac or Win will be very important in the KDE4 process as the next generation KDE applications would already run there. I think pdf viewers would be a great advertisement instrument for KDE on the MAC. And users are important to mature an application and find or close bugs. Everybody hates the slow Acrobat Reader. So okular or ligature can really become the Firefox of pdf reading.
|
[
Reply To This | View ]
|
Will okular be able to display all pdf's that i th
by kris on Saturday 17/Feb/2007, @08:25
|
row at it and also display them correctly AND allow me to edit forms? Or else i'm not interested.
i'll stick to adobe reader.
In fact, I would be happier with only adobe reader on linux instead of kpdf, evince, etc etc etc because atleast then, the users doesn't have to waste his time on trying out different pdf viewers only to discover that the only one that supports the most basic(basic - as it's the whole point of the program; to be able to view pdfs and annotate forms) functionality is in a proprriatory app.
In fact, i'd rather youd scrap both okular and ligature if it meant that the backend library would get more work and eventually support this functionality. Then i'd just use the "old" pdf viewers, only now i'd be assured that they actually WORKED.
Too hard? Then.. if you truly care about your users atleast pop up a message that tells the user that not all pdf's will work and display correctly when you open the program. In fact i'd like one for mplayer aswell and amsn telling me which formats/functionality and movies they DOESN'T support as this is more useful than being told it works "for most".
This is something users will be GRATEFUL for, it's not something they will get ANGRY for... Oh well i have a hangover so this text is a bit weirdly written but my point still stand.
|
[
Reply To This | View ]
|
|
|
amarok
by adrian on Sunday 18/Feb/2007, @02:54
|
Isnt the reason for, why amarok is not in the official kde packages, because they don't want to be?
As far as I remember they don't like kde's release cycles wich are quite unflexible. Same aplies for k3b I think.
|
[
Reply To This | View ]
|
pdf in ligature
by ligature on Wednesday 14/May/2008, @01:41
|
to open pdf files in ligature, you need to install poppler (and the devel libs) first. w/o poppler, ligature installs fine, but it won't read pdfs.
|
[
Reply To This | View ]
|
The Fine Print: The previous
comments are owned by whomever posted them.
( Reply )
|
|