PdfGenerator: proper logging.