improve documentation of creating a pdf, and add a test pdf