• Skip to content
  • Skip to link menu
KDEPrint Homepage
  • KDEPrint Homepage / Developer Resources / Developer Tutorial
 
 

Developer Tutorial

Author: Michael Goffioul

Welcome to the KDEPrint tutorial for application developers. This tutorial is mainly intended for KDE application developers that want to learn about KDEPrint and what they can do with it. KDEPrint is an already well established technology in the KDE world but, with a few exceptions, KDE developers are not aware of all the KDEPrint's features and what they can expect from it. This tutorial explains some of the basic and advanced features of KDEPrint.

Each section of this tutorial explains one feature of KDEPrint, and illustrates it with code examples. Most of these code examples have been extracted from a small demo application developed in parallel with this text. The code can be found here. Remember that is only a demonstration application, a sandbox for showcasing key features of KDEPrint (Note: code examples given in this tutorial have been simplified for more clarity, compared to the real code, where necessary).

This tutorial is still Work-In-Progress and help to improve it will be much appreciated. So it would be nice if I could hear a little bit from you after reading this. Just tell me your impressions, if you found it useful, which parts were not clear enough, what should be reworked,... This tutorial was written by goffioul@imec.be but now it is better to bug me, Cristian Tibirna <tibirna@kde.org> about it.

Note also that this tutorial is far from complete, and does not cover all features of KDEPrint. Only the most important features are covered (I'll add probably some other sections later), but if you want a complete information about KDEPrint, I suggest you to have a look at the various installed headers: kprinter.h, kprintaction.h, kdeprint/*.h (note that some headers are only useful for plugin developers, which is not the goal here). You can also access the KDEPrint API online here. You will need KDE3 to build and run this demo application.

The different sections of this tutorial are the following, in order of increasing difficulty:

  • Basic usage
  • Advanced page selection
  • Customization of the print dialog
  • Automatic preview mechanism
  • Print actions (document exporting)

[ Edit ]

Inform

Skip menu "Inform"
  • Home
  • KDE Home
  • News
  • Information
  • People
  • Mailing Lists
  • In The Media
  • Get Involved

KDEPrint

Skip menu "KDEPrint"
  • Overview
  • Screenshots
  • Hacks

Documentation

Skip menu "Documentation"
  • FAQ
  • KDEPrint Handbook
  • Tutorials
  • User Contributions

Downloads

Skip menu "Downloads"
  • Downloads

Develop

Skip menu "Develop"
  • Developer Resources
    • Information
    • Overview
    • Developer Tutorial
    • Online API Reference
  • Work plan

Global navigation links

  • KDE Home
  • KDE Accessibility Home
  • Description of Access Keys
  • Back to content
  • Back to menu

Search:


Maintained by printing.kde.org Webmaster
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal