add pdf generation functionality with WickedPDF