added support for pdf print via middleware PDFKit