3.1 How to open a document and render some pages

For a simple example of how to open a document and render some pages, see docs/example.c.

The concepts you meet in this example are explained and expanded upon in the following chapters. It may be useful to have this example to hand as you read on, to give you concrete illustrations of the ideas discussed.