Fixed PDF generation

Signed-off-by: Malte Sussdorff <malte.sussdorff@cognovis.com>