PdfFileExporter refactored - 2nd try