Application of the Month: KPDF

It might be late but that is because April's application of the month covers one of the finest additions to KDE 3.4: KPDF. The application overview takes us through the powerful features in KPDF: thumbnails, contents, scrolling, zooming and searching. We also have an interview with one of the creators of KPDF, Albert Astals Cid. He tells us how KPDF got started, about Free Software use in Spain and where we should visit on our way to Málaga. Enjoy App of the Month in Dutch, English, French or German.


"What is missing is the possibility to edit a document, but this is very hard to implement. However I'm sure they are working on this"

Are they?

By Pat at Sun, 2005/05/08 - 5:00am

I highly doubt it. PDF like PS, DVI and some others is an output format, it's not ment to be edited.

By ac at Sun, 2005/05/08 - 5:00am

Not that I know of, however they are working on providing better text selection (sometimes text selection in PDFs doesn't work like you would expect). Also, I believe KWord has a PDF import filter; not sure how well it works.

By Spy Hunter at Sun, 2005/05/08 - 5:00am

Maybe they could provide a pop-up to replace simply the "selected text",
that would be a start.

But first they should make selection text a bit better. =)

By fprog26 at Mon, 2005/05/09 - 5:00am

I think that would be outside the scope of KPDF. Maybe improving the KWord import filter would be a better idea.
Anyway, I really do hope they add to KPDF Postscript support, so it can be THE universal viewer for KDE, and drop KGhostview which right now is a bit redundant.

By Anonymous at Sun, 2005/05/08 - 5:00am

There is currently work going on to give kpdf, kdvi and kghostview (?) a common framework so that they share all relevant code.

By Robert at Sun, 2005/05/08 - 5:00am

Tried Scribus?

By KDE User at Mon, 2005/05/09 - 5:00am

It' s great, but if you want to open quarkXPress-data, you better try out viva-designer...

By Volker at Wed, 2005/06/01 - 5:00am

I don't know, but if they aren't, I think it's the perfect troll with which to end that interview. :-)

By anon at Mon, 2005/05/09 - 5:00am

Depends what you mean by "editing."

I'm currently working on a (highly proprietary corporate internal) application that mangles PDFs in various ways. It's not technically difficult to modify the PDF document structure (a complete document structure parser which can read a PDF file, mangle its internal structure, and write a new PDF file is two weeks' effort and about 1300 lines of Perl). It is a little difficult to do this in open-source land while also respecting the egregious licensing terms of the PDF spec documents (most of which IMHO are probably unenforceable, but Adobe tries to enforce them anyway).

Most of the PDF document structure is above the page level. To PDF, the pages you can actually see are just leaf nodes in a big multiple overlapping tree structure. Most of the structure deals with page indexes, bookmarks, hyperlinks, annotations, fonts, images, and structural details to support incremental revision by appending to the file and efficient document loading over slow/high-latency links (but not both at the same time). Adobe has a number of patents on those topics.

I expect the first useful editing features to be rearranging pages, changing the bookmarks list, importing pages from other documents, adding annotations and hyperlinks, and limited graphics or text manipulation such as adding a page number, headers/footers, border, logo or watermark to pages--all easy features to implement on top of a working PDF parser/generator.

By Syg at Wed, 2005/05/11 - 5:00am


I believe the text-part of koffice can import pdf's. I don't know how good the support is ...

Kpdf is a nice application. I used it lately a bit. I hope that they can make the rendering go faster and that they test it on papers that contain mathematical expressions. For papers that contain mathematical expressions, I (sometimes) switch to xpdf since it renders the formulas well. Just searching for papers on or some other source that contain formulas may be a start ...

for the rest, nice work!!! I like the menu where you can choose between selecting character-data or image-data, ...


By Michel Brabants at Sun, 2005/05/08 - 5:00am

When can i used and fill pdf forms? With this feature, kpdf will be THE opensource pdf reader!

regards and keep on the good work!

By Francisco at Mon, 2005/05/09 - 5:00am

I always end up using acroread, since it lets me rotate the documents so that I can read them full screen on my tablet convertable acer travelmate. I would have guessed rotation to be a standard feature for such a program, but kpdf seems to lack it.

By Kolbjørn Barmen at Mon, 2005/05/09 - 5:00am

Have you tried krandrtray?

By anon at Mon, 2005/05/09 - 5:00am

Uhm, I just wanted to rotate the documents, not mess up my desktop. :)

Since there is no way to snapshot and restore icon locations on KDE, using xrandr is something I'd avoid. Also, it seems that the i810 xorg driver doesnt support rotation, only resize.

By Kolbjørn Barmen at Mon, 2005/05/09 - 5:00am

Looks like the devs are aware of this wish.

By Jeffrey M. Smith at Mon, 2005/05/09 - 5:00am

Three years later, the developers have not provided any rotation feature. Thanks for nothing, guys; acroread is still the only reader that's worth anything.

By liam at Wed, 2008/02/20 - 6:00am

Seconded. Today I had to read a document that is rotated 90 degrees. I just realized that neither kpdf nor evince provides rotation, so I had to install acroread. But to give credits where it's due, for regular PDFs I do use kpdf on a daily basis.

By David Garamond at Sun, 2008/09/07 - 5:00am

Actually, evince _does_ provide rotation. It is under the "Edit" menu, for some peculiar reason.
IMHO this non-feature in KPDF is one of the biggest mysteries in the history of software.

By raziv at Sat, 2008/09/13 - 5:00am

Of course, we're in 2008 now and shouldn't be talking about kdpf anymore, but okular, which actually _does_ provide rotation. And then... If using a convertible tablet is the reason one wants to rotate the display of a pdf, why not use xrandr to rotate the whole display?

By Boudewijn Rempt at Sat, 2008/09/13 - 5:00am


Just wanna say thanks a lot for adding search ability to KPDF. It seems to work sooo good. I have really missed this feature!


By perraw at Mon, 2005/05/09 - 5:00am

I agree, the search is amazing.

By superstoned at Mon, 2005/05/09 - 5:00am

I'm using it and just can say that it has all the capabilities I ever needed from a PDF reader and never found in Linux. Thanks for the guys that made it.

By Ivan Čukić at Mon, 2005/05/09 - 5:00am

First of all let me thank you for kpdf - it has really improved a lot with the latest release!

Now 2 questions I would like to have seen in the interview:
1. How is the collaboration with the poppler guys?
2. Do you plan on switching to poppler anytime soon?


By Michael Jahn at Mon, 2005/05/09 - 5:00am

1. How is the collaboration with the poppler guys?
- Mostly good

2. Do you plan on switching to poppler anytime soon?
- Depending of your definition of soon

By Albert Astals Cid at Mon, 2005/05/09 - 5:00am

Thank you for the answers.

Actually the question should have been posed without the "anytime soon"-part. I was just curious whether you intend to do this at all without any relation to _when_ this will happen.

By Michael Jahn at Mon, 2005/05/09 - 5:00am

Great going!
Once they add form fill support, its bye bye to Acroread.

By ashay at Tue, 2005/05/10 - 5:00am

Presentation View page counter increase is counter intuitive to web page and application scrolling.

The Logitech mouse scroller increases page count going counterclockwise (right-hand rule) (page up) instead of the commonly used (clockwise) (page down) scrolling of the wheel.

By Marc Driftmeyer at Tue, 2005/05/10 - 5:00am

Pity this gem isn't included in Mandriva LE download edition. Neither is KOffice. :(

By anon at Tue, 2005/05/10 - 5:00am

Mandriva advertizes to have KPDF of KDE 3.4 backported, and KOffice is also included - Kivio iirc even on one of the two first CDs.

By Anonymous at Tue, 2005/05/10 - 5:00am

I know they do. It's not on the CDs I downloaded, trust me. I looked carefully and urpmi does not find them either.

By anon at Tue, 2005/05/10 - 5:00am

You should use and setup "main" and "contrib" repositories. Then urpmi should find both.

By Mand* Rules at Tue, 2005/05/10 - 5:00am

While I like the overall feeling of kpdf I usually switch back to acroread for longer texts. Why? The fonts are a lot nicer and better to read. A closer look with xmag shows that compared to acroread the fonts are bold. Btw xpdf produces exactly the same results as kpdf.
Any chance that the fonts will be rendered more like acroread in future versions or is there a reason why its different?

By michael at Tue, 2005/05/10 - 5:00am

Would you please try this PDF and see if you have font problems with it:

People have reported similar problems, but I can't reproduce them.


By James Richard Tyrer at Thu, 2005/05/12 - 5:00am

I have no real need for editing of PDFs, but the ability to add annotations - underlines, marginal notes, highlighting - would be extremely useful. They could be added to the PDF itself, or stored as a separate "overlay" in whatever format.

I have looked for this feature in various applications, and the only programs that support it are scribus-like applications, which try to load the whole document at once, rendering them useless for documents that consist of (say) four hundred pages scanned at 600 DPI. (Of course, DjVu is a good format for this, but none of the programs supporting it permit annotations either.)

By Andrew at Thu, 2005/05/12 - 5:00am