rewrite using PdfExporterConfiguration to support pdf configuration.