Initial working test program based on mupdf example