Tutorial code for generating PDFs with Apache FOP from scratch